|
|
@ -52,7 +52,8 @@ var config *Config
|
|
|
|
var store *sessions.CookieStore
|
|
|
|
var store *sessions.CookieStore
|
|
|
|
var csrfKey []byte
|
|
|
|
var csrfKey []byte
|
|
|
|
var version = "undefined"
|
|
|
|
var version = "undefined"
|
|
|
|
var build = "undefined"
|
|
|
|
var commit = "undefined"
|
|
|
|
|
|
|
|
var date = "undefined"
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
cookieSecretMinLen = 32
|
|
|
|
cookieSecretMinLen = 32
|
|
|
@ -1014,7 +1015,7 @@ func setupTLSConfig() (tlsConfig *tls.Config) {
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
|
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
|
|
|
|
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
|
|
|
|
log.Infof("CAcert Board Voting version %s, build %s", version, build)
|
|
|
|
log.Infof("CAcert Board Voting version %s, commit %s built at %s", version, commit, date)
|
|
|
|
|
|
|
|
|
|
|
|
flag.StringVar(
|
|
|
|
flag.StringVar(
|
|
|
|
&configFile, "config", "config.yaml", "Configuration file name")
|
|
|
|
&configFile, "config", "config.yaml", "Configuration file name")
|
|
|
|