Ticket #538: openvpn-2.4-work-around-for-bug538.patch

File openvpn-2.4-work-around-for-bug538.patch, 571 bytes (added by Bjoern Voigt, 7 years ago)

Patch for OpenVPN 2.4 disables SystemD PIN prompt and enables fall-back to query_user_exec_builtin()

  • openvpn-2.4.2/src/openvpn/console_systemd.c

    Workaround for OpenVPN 2.4 and
    no PIN prompt with PKCS11 when systemd is enabled
    https://community.openvpn.net/openvpn/ticket/538
    
    old new  
    102102    int i;
    103103
    104104    /* If systemd is not available, use the default built-in mechanism */
    105     if (!check_systemd_running())
     105    if (1 /* always use built-in */ || !check_systemd_running())
    106106    {
    107107        return query_user_exec_builtin();
    108108    }