From 1851abc4e3f6adeaa1d41168a75b1a87f763c0eb Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 30 Mar 2019 03:21:54 +0100 Subject: 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. --- M2Crypto_ext.i | 4 ++-- 1 file 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 %include "constraints.i" %{ #include +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); } %} -- cgit v1.2.3-1-g7c22