summaryrefslogtreecommitdiffstats
path: root/M2Crypto_ext.i
blob: 6ae8b4494f9b4e3aeabc829dea01fbf0233f0a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%module M2Crypto_ext

%include <openssl/safestack.h>
%include "constraints.i"

%{
#include <openssl/x509.h>
%}

%apply Pointer NONNULL { X509_REQ * };

%inline %{
STACK_OF(X509_EXTENSION) *x509_req_get_extensions(X509_REQ *req) {
    return X509_REQ_get_extensions(req);
}
%}