Moved __cplusplus extern statement to include struct definitions as well.

This commit is contained in:
Paul Bakker 2013-06-27 14:29:21 +02:00
parent c5a79cca53
commit 407a0da160
30 changed files with 144 additions and 113 deletions

View file

@ -254,6 +254,10 @@
#define POLARSSL_PREMASTER_SIZE POLARSSL_MPI_MAX_SIZE
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generic function pointers for allowing external RSA private key
* implementations.
@ -547,10 +551,6 @@ struct _ssl_context
char peer_verify_data[36]; /*!< previous handshake verify data */
};
#ifdef __cplusplus
extern "C" {
#endif
#if defined(POLARSSL_SSL_HW_RECORD_ACCEL)
#define SSL_CHANNEL_OUTBOUND 0