summaryrefslogtreecommitdiffstats
path: root/M2Crypto_ext.i
blob: f538eedfd523b0944f4eec4d453fb89c08c365fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}
%}