Ticket #574: passwd_daemon-fail-2.3.7.patch

File passwd_daemon-fail-2.3.7.patch, 1.6 KB (added by breakfastfish, 9 years ago)

patch file

  • src/openvpn/init.c

    diff -ur a/src/openvpn/init.c b/src/openvpn/init.c
    a b  
    407407/*
    408408 * Query for private key and auth-user-pass username/passwords
    409409 */
    410 static void
    411 init_query_passwords (struct context *c)
     410void
     411init_query_passwords (const struct context *c)
    412412{
    413413#ifdef ENABLE_CRYPTO
    414414  /* Certificate password input */
     
    502502
    503503  init_connection_list (c);
    504504
    505   init_query_passwords (c);
    506 
    507505#if defined(ENABLE_PKCS11)
    508506  if (c->first_time) {
    509507    int i;
  • src/openvpn/init.h

    diff -ur a/src/openvpn/init.h b/src/openvpn/init.h
    a b  
    6262void init_instance_handle_signals (struct context *c, const struct env_set *env, const unsigned int flags);
    6363
    6464void 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 */
     68void init_query_passwords (const struct context *c);
    6569
    6670void do_route (const struct options *options,
    6771               struct route_list *route_list,
  • src/openvpn/openvpn.c

    diff -ur a/src/openvpn/openvpn.c b/src/openvpn/openvpn.c
    a b  
    229229          if (do_test_crypto (&c.options))
    230230            break;
    231231         
     232          /* Query passwords before becoming a daemon */
     233          init_query_passwords (&c);
     234
    232235          /* become a daemon if --daemon */
    233236          if (c.first_time)
    234237            {