summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2019-03-30 03:21:54 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2019-03-30 03:55:01 +0100
commit1851abc4e3f6adeaa1d41168a75b1a87f763c0eb (patch)
tree0f4187b9d6965134667079a98750b6013c575abf
parentfe1db17c2f5395b8a53814dda3ab586d2a53fa99 (diff)
downloadm2crypto_ext-1851abc4e3f6adeaa1d41168a75b1a87f763c0eb.tar.gz
m2crypto_ext-1851abc4e3f6adeaa1d41168a75b1a87f763c0eb.tar.bz2
m2crypto_ext-1851abc4e3f6adeaa1d41168a75b1a87f763c0eb.zip
Update for OpenSSL 1.1
OpenSSL 1.1 is handling the STACK_OF macro in a different way and we need a workaround so that we do not need to include safestack.h during code generation with swig.
-rw-r--r--M2Crypto_ext.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/M2Crypto_ext.i b/M2Crypto_ext.i
index afacb0a..fb4565c 100644
--- a/M2Crypto_ext.i
+++ b/M2Crypto_ext.i
@@ -1,16 +1,16 @@
%module M2Crypto_ext
-%include <openssl/safestack.h>
%include "constraints.i"
%{
#include <openssl/x509.h>
+typedef STACK_OF(X509_EXTENSION) X509_EXTENSION_STACK;
%}
%apply Pointer NONNULL { X509_REQ * };
%inline %{
-STACK_OF(X509_EXTENSION) *x509_req_get_extensions(X509_REQ *req) {
+X509_EXTENSION_STACK *x509_req_get_extensions(X509_REQ *req) {
return X509_REQ_get_extensions(req);
}
%}