]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/govpn/conf.go
Use Argon2d PHC winner instead of PBKDF2
[govpn.git] / src / govpn / conf.go
index 0eff5909fa75c7cc6f243acde2e42a0523e3fd01..d9e74813a058a56dedb05bbd065245aef47ec36c 100644 (file)
@@ -25,18 +25,18 @@ import (
 )
 
 type PeerConf struct {
-       Id         *PeerId       `json:"-"`
-       Name       string        `json:"name"`
-       Up         string        `json:"up"`
-       Down       string        `json:"down"`
-       TimeoutInt int           `json:"timeout"`
-       Timeout    time.Duration `json:"-"`
-       Noise      bool          `json:"noise"`
-       CPR        int           `json:"cpr"`
-       Verifier   string        `json:"verifier"`
+       Id          *PeerId       `json:"-"`
+       Name        string        `json:"name"`
+       Up          string        `json:"up"`
+       Down        string        `json:"down"`
+       TimeoutInt  int           `json:"timeout"`
+       Timeout     time.Duration `json:"-"`
+       Noise       bool          `json:"noise"`
+       CPR         int           `json:"cpr"`
+       VerifierRaw string        `json:"verifier"`
 
        // This is passphrase verifier
-       DSAPub *[ed25519.PublicKeySize]byte `json:"-"`
+       Verifier *Verifier
        // This field exists only on client's side
        DSAPriv *[ed25519.PrivateKeySize]byte `json:"-"`
 }