# HG changeset patch # User Andre Heinecke # Date 1397053554 0 # Node ID 2207e94a0cc3ff5672f31979528ffe01f68c7abd # Parent 26817025351f5d0391ac65208d188031be000401 Add some more oid's for data and enable c++ linkage diff -r 26817025351f -r 2207e94a0cc3 common/certhelp.h --- a/common/certhelp.h Wed Apr 09 13:49:59 2014 +0000 +++ b/common/certhelp.h Wed Apr 09 14:25:54 2014 +0000 @@ -11,6 +11,11 @@ #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0" #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0" +#define CERT_OID_OU (unsigned char *)OID_AT_ORG_UNIT "\0" +#define CERT_OID_SN (unsigned char *)OID_AT_SERIAL_NUMBER "\0" +#ifdef __cplusplus +extern "C" { +#endif /** * @file @@ -42,5 +47,8 @@ */ char *x509_parse_subject(unsigned char *derdata, size_t derlen, unsigned char *oid); +#ifdef __cplusplus +} +#endif #endif