diff options
Diffstat (limited to 'M2Crypto_ext.i')
-rw-r--r-- | M2Crypto_ext.i | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/M2Crypto_ext.i b/M2Crypto_ext.i new file mode 100644 index 0000000..f538eed --- /dev/null +++ b/M2Crypto_ext.i @@ -0,0 +1,17 @@ +%module M2Crypto_ext + +%{ +#include <openssl/x509.h> +#include <openssl/x509v3.h> +%} + +%include <openssl/safestack.h> +%include "constraints.i" + +%apply Pointer NONNULL { X509_REQ * }; + +%inline %{ +STACK_OF(X509_EXTENSIO) *x509_req_get_extensions(X509_REQ *req) { + return X509_REQ_get_extensions(req); +} +%} |