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

@ -3,7 +3,7 @@
*
* \brief The RSA public-key cryptosystem
*
* Copyright (C) 2006-2010, Brainspark B.V.
* Copyright (C) 2006-2013, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
@ -59,6 +59,10 @@
#define RSA_SIGN 1
#define RSA_CRYPT 2
#ifdef __cplusplus
extern "C" {
#endif
/**
* \brief RSA context structure
*/
@ -90,10 +94,6 @@ typedef struct
}
rsa_context;
#ifdef __cplusplus
extern "C" {
#endif
/**
* \brief Initialize an RSA context
*