forked from cwtch.im/cwtch
Changed capitalization of cwtchPeer (again) and updated LoadCwtchPeer to use the interface
This commit is contained in:
parent
67adc0fbce
commit
2b039b2e9f
|
@ -166,8 +166,8 @@ func (cp *cwtchPeer) Save(profilefile string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadCwtchPeer loads an existing CwtchPeer from a file.
|
// LoadCwtchPeer loads an existing cwtchPeer from a file.
|
||||||
func LoadCwtchPeer(profilefile string, password string) (*cwtchPeer, error) {
|
func LoadCwtchPeer(profilefile string, password string) (CwtchPeerInterface, error) {
|
||||||
encryptedbytes, _ := ioutil.ReadFile(profilefile)
|
encryptedbytes, _ := ioutil.ReadFile(profilefile)
|
||||||
|
|
||||||
//get the salt
|
//get the salt
|
||||||
|
|
Loading…
Reference in New Issue