diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-05 04:00:00 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-12-05 04:00:00 +0000 |
commit | bed73623cdfc21c3fb9742f47935598705860254 (patch) | |
tree | a5ad20c653f4c1887e4c478e5b4f325e92a6340a /options.h | |
parent | Patch to support --topology subnet on Mac OS X (Mathias Sundman). (diff) | |
download | openvpn-bed73623cdfc21c3fb9742f47935598705860254.tar.xz |
Fixed segfault that occurred if remote_cert_eku is undefined and no
server certificate verification method was enabled.
Don't declare pkcs11 variables in struct options unless pkcs11
support is enabled.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@833 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -396,6 +396,8 @@ struct options int ns_cert_type; /* set to 0, NS_SSL_SERVER, or NS_SSL_CLIENT */ unsigned remote_cert_ku[MAX_PARMS]; const char *remote_cert_eku; + +#ifdef ENABLE_PKCS11 const char *pkcs11_providers[MAX_PARMS]; const char *pkcs11_sign_mode[MAX_PARMS]; const char *pkcs11_slot_type; @@ -405,6 +407,8 @@ struct options int pkcs11_pin_cache_period; bool pkcs11_protected_authentication; bool pkcs11_cert_private; +#endif + #ifdef WIN32 const char *cryptoapi_cert; #endif |