diff 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
line wrap: on
line diff
--- 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

http://wald.intevation.org/projects/trustbridge/