diff options
Diffstat (limited to 'OpenSSL/ssl/ssl.c')
-rw-r--r-- | OpenSSL/ssl/ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSSL/ssl/ssl.c b/OpenSSL/ssl/ssl.c index efc6310..9e7d6f1 100644 --- a/OpenSSL/ssl/ssl.c +++ b/OpenSSL/ssl/ssl.c @@ -81,9 +81,13 @@ PyOpenSSL_MODINIT(SSL) { PyOpenSSL_MODRETURN(NULL); } + new_x509 = (crypto_X509NameObj* (*)(X509*, int))GetProcAddress(crypto, "crypto_X509_New"); new_x509name = (crypto_X509NameObj* (*)(X509_NAME*, int))GetProcAddress(crypto, "crypto_X509Name_New"); + new_x509store = (crypto_X509NameObj* (*)(X509_STORE*, int))GetProcAddress(crypto, "crypto_X509Store_New"); # else + new_x509 = crypto_X509_New; new_x509name = crypto_X509Name_New; + new_x509store = crypto_X509Store_New; # endif #endif |