/*
GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if err != nil {
log.Fatalln("Can not decode verifier", err)
}
+ if v.Pub == nil {
+ log.Fatalln("Verifier does not contain public key")
+ }
pub := *v.Pub
v.PasswordApply(govpn.StringFromFile(*keyPath))
fmt.Println(subtle.ConstantTimeCompare(v.Pub[:], pub[:]) == 1)