Fixed cplusplus extern defines in header files

This commit is contained in:
Paul Bakker 2013-10-01 10:09:06 +02:00
parent ed3cce46e9
commit 30b95fa921
3 changed files with 10 additions and 5 deletions

View File

@ -176,10 +176,6 @@ ecp_keypair;
*/ */
#define POLARSSL_ECP_TLS_NAMED_CURVE 3 /**< ECCurveType's named_curve */ #define POLARSSL_ECP_TLS_NAMED_CURVE 3 /**< ECCurveType's named_curve */
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* \brief Return the list of supported curves with associated info * \brief Return the list of supported curves with associated info
* *

View File

@ -62,6 +62,10 @@
#define AES_cbc_encrypt( INPUT, OUTPUT, LEN, CTX, IV, MODE ) \ #define AES_cbc_encrypt( INPUT, OUTPUT, LEN, CTX, IV, MODE ) \
aes_crypt_cbc( (CTX), (MODE), (LEN), (IV), (INPUT), (OUTPUT) ) aes_crypt_cbc( (CTX), (MODE), (LEN), (IV), (INPUT), (OUTPUT) )
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* RSA stuff follows. TODO: needs cleanup * RSA stuff follows. TODO: needs cleanup
*/ */

View File

@ -274,4 +274,9 @@ int x509_write_names( unsigned char **p, unsigned char *start,
int x509_write_sig( unsigned char **p, unsigned char *start, int x509_write_sig( unsigned char **p, unsigned char *start,
const char *oid, size_t oid_len, const char *oid, size_t oid_len,
unsigned char *sig, size_t size ); unsigned char *sig, size_t size );
#ifdef __cplusplus
}
#endif
#endif /* x509.h */ #endif /* x509.h */