comparison common/certhelp.h @ 1264:3cd8dd706aaa

Add possibility to build with CLANG and document it. This only works for now with the c parts of the code.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 26 Sep 2014 17:59:49 +0200
parents 17e1c8f37d72
children 265583011f24
comparison
equal deleted inserted replaced
1263:827abc0923a8 1264:3cd8dd706aaa
7 */ 7 */
8 #ifndef CERTHELP_H 8 #ifndef CERTHELP_H
9 #define CERTHELP_H 9 #define CERTHELP_H
10 10
11 /* Polarssl mh.h contains a conversion which gcc warns about */ 11 /* Polarssl mh.h contains a conversion which gcc warns about */
12 #ifndef __clang__
12 #pragma GCC diagnostic ignored "-Wsign-conversion" 13 #pragma GCC diagnostic ignored "-Wsign-conversion"
13 #pragma GCC diagnostic ignored "-Wconversion" 14 #pragma GCC diagnostic ignored "-Wconversion"
15 #endif
14 #include <polarssl/oid.h> 16 #include <polarssl/oid.h>
15 #include <polarssl/x509_crt.h> 17 #include <polarssl/x509_crt.h>
18 #ifndef __clang__
16 #pragma GCC diagnostic pop 19 #pragma GCC diagnostic pop
17 #pragma GCC diagnostic pop 20 #pragma GCC diagnostic pop
21 #endif
18 22
19 #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0" 23 #define CERT_OID_CN (unsigned char *)OID_AT_CN "\0"
20 #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0" 24 #define CERT_OID_O (unsigned char *)OID_AT_ORGANIZATION "\0"
21 #define CERT_OID_OU (unsigned char *)OID_AT_ORG_UNIT "\0" 25 #define CERT_OID_OU (unsigned char *)OID_AT_ORG_UNIT "\0"
22 #define CERT_OID_SN (unsigned char *)OID_AT_SERIAL_NUMBER "\0" 26 #define CERT_OID_SN (unsigned char *)OID_AT_SERIAL_NUMBER "\0"

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