diff -ur a/src/openvpn/init.c b/src/openvpn/init.c
a
|
b
|
|
407 | 407 | /* |
408 | 408 | * Query for private key and auth-user-pass username/passwords |
409 | 409 | */ |
410 | | static void |
411 | | init_query_passwords (struct context *c) |
| 410 | void |
| 411 | init_query_passwords (const struct context *c) |
412 | 412 | { |
413 | 413 | #ifdef ENABLE_CRYPTO |
414 | 414 | /* Certificate password input */ |
… |
… |
|
502 | 502 | |
503 | 503 | init_connection_list (c); |
504 | 504 | |
505 | | init_query_passwords (c); |
506 | | |
507 | 505 | #if defined(ENABLE_PKCS11) |
508 | 506 | if (c->first_time) { |
509 | 507 | int i; |
diff -ur a/src/openvpn/init.h b/src/openvpn/init.h
a
|
b
|
|
62 | 62 | void init_instance_handle_signals (struct context *c, const struct env_set *env, const unsigned int flags); |
63 | 63 | |
64 | 64 | void init_instance (struct context *c, const struct env_set *env, const unsigned int flags); |
| 65 | /** |
| 66 | * Query for private key and auth-user-pass username/passwords. |
| 67 | */ |
| 68 | void init_query_passwords (const struct context *c); |
65 | 69 | |
66 | 70 | void do_route (const struct options *options, |
67 | 71 | struct route_list *route_list, |
diff -ur a/src/openvpn/openvpn.c b/src/openvpn/openvpn.c
a
|
b
|
|
229 | 229 | if (do_test_crypto (&c.options)) |
230 | 230 | break; |
231 | 231 | |
| 232 | /* Query passwords before becoming a daemon */ |
| 233 | init_query_passwords (&c); |
| 234 | |
232 | 235 | /* become a daemon if --daemon */ |
233 | 236 | if (c.first_time) |
234 | 237 | { |