Mercurial > trustbridge
comparison common/certhelp.h @ 337:2207e94a0cc3
Add some more oid's for data and enable c++ linkage
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 09 Apr 2014 14:25:54 +0000 |
parents | 20d515604daa |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
336:26817025351f | 337:2207e94a0cc3 |
---|---|
9 #pragma GCC diagnostic pop | 9 #pragma GCC diagnostic pop |
10 #pragma GCC diagnostic pop | 10 #pragma GCC diagnostic pop |
11 | 11 |
12 #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0" | 12 #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0" |
13 #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0" | 13 #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0" |
14 #define CERT_OID_OU (unsigned char *)OID_AT_ORG_UNIT "\0" | |
15 #define CERT_OID_SN (unsigned char *)OID_AT_SERIAL_NUMBER "\0" | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
14 | 19 |
15 /** | 20 /** |
16 * @file | 21 * @file |
17 * @brief Helper functinos to handle and parse X.509 certificates. | 22 * @brief Helper functinos to handle and parse X.509 certificates. |
18 * | 23 * |
40 * @param[in] oid the OID to search for. | 45 * @param[in] oid the OID to search for. |
41 * @returns the extracted String, or NULL in failure. | 46 * @returns the extracted String, or NULL in failure. |
42 */ | 47 */ |
43 char *x509_parse_subject(unsigned char *derdata, size_t derlen, | 48 char *x509_parse_subject(unsigned char *derdata, size_t derlen, |
44 unsigned char *oid); | 49 unsigned char *oid); |
50 #ifdef __cplusplus | |
51 } | |
52 #endif | |
45 | 53 |
46 #endif | 54 #endif |