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

%inline %{
ASN1_OCTET_STRING *x509_extension_get_data(X509_EXTENSION *ext) {
    return X509_EXTENSION_get_data(ext);
}
%}