summaryrefslogtreecommitdiff
path: root/lib/x509/pkcs7.h
blob: 64a8f4b7d1af3ae9a6cb540d6f0a41a8a2b255b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

typedef struct gnutls_pkcs7_int {
	ASN1_TYPE pkcs7;
} gnutls_pkcs7_int;

typedef struct gnutls_pkcs7_int *gnutls_pkcs7;

int gnutls_pkcs7_init(gnutls_pkcs7 * pkcs7);
void gnutls_pkcs7_deinit(gnutls_pkcs7 pkcs7);
int gnutls_pkcs7_import(gnutls_pkcs7 pkcs7, const gnutls_datum * data,
	gnutls_x509_crt_fmt format);
int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7 pkcs7, 
	int indx, void* certificate, size_t* certificate_size);
int gnutls_pkcs7_get_crt_count(gnutls_pkcs7 pkcs7);