Update to go 1.24 and add some logging.
Signed-off-by: Mariano Uvalle <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
7ddf1162c7
commit
c041a5feee
13 changed files with 187 additions and 30 deletions
|
|
@ -55,12 +55,12 @@ func Write(c ConfigFile) error {
|
|||
|
||||
func LoadPrivateKey() (*ecdh.PrivateKey, error) {
|
||||
fp := path.Join(Path, PrivateKeyFileName)
|
||||
return crypto.LoadPrivateKeyFromFile(fp)
|
||||
return crypto.LoadPrivateKeyFromFile(fp), nil
|
||||
}
|
||||
|
||||
func LoadPublicKey() (*ecdh.PublicKey, error) {
|
||||
fp := path.Join(Path, PublicKeyFileName)
|
||||
return crypto.LoadPublicKeyFromFile(fp)
|
||||
return crypto.LoadPublicKeyFromFile(fp), nil
|
||||
}
|
||||
|
||||
func SavePrivateKey(k *ecdh.PrivateKey) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue