X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fgovpn%2Fconf.go;h=d9e74813a058a56dedb05bbd065245aef47ec36c;hb=9364defa689e91c6fb54651876fbf2d02eec35ec;hp=0eff5909fa75c7cc6f243acde2e42a0523e3fd01;hpb=17c2f7327a0178dd61a8a2afa26a0dda383154a9;p=govpn.git diff --git a/src/govpn/conf.go b/src/govpn/conf.go index 0eff590..d9e7481 100644 --- a/src/govpn/conf.go +++ b/src/govpn/conf.go @@ -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:"-"` }