diff options
author | Jean-Paul Calderone <exarkun@divmod.com> | 2010-10-31 21:26:18 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@divmod.com> | 2010-10-31 21:26:18 -0400 |
commit | 1e9312e7c307a25ad6e5df5baccd3c942a7567dd (patch) | |
tree | 0bff16e13ff0f364c147ef27bccae51189f414c8 /OpenSSL/ssl/ssl.c | |
parent | d1ce64caa28d781072ba7a8cfe21029bc3146167 (diff) | |
download | pyopenssl-1e9312e7c307a25ad6e5df5baccd3c942a7567dd.tar.gz |
Apply that strategy to the two other functions
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 |