Fix some more ifdef's RSA/EC, in pk and debug

This commit is contained in:
Manuel Pégourié-Gonnard 2013-07-11 16:39:05 +02:00 committed by Paul Bakker
parent ab2d9836b4
commit fd5164e283
3 changed files with 43 additions and 59 deletions

View file

@ -44,7 +44,7 @@
* before using this macro!
*/
#define pk_rsa( pk ) ( (rsa_context *) (pk).data )
#endif
#endif /* POLARSSL_RSA_C */
#if defined(POLARSSL_ECP_C)
/**
@ -54,7 +54,7 @@
* before using this macro!
*/
#define pk_ec( pk ) ( (ecp_keypair *) (pk).data )
#endif
#endif /* POLARSSL_ECP_C */
#ifdef __cplusplus
@ -120,7 +120,7 @@ int pk_set_type( pk_context *ctx, pk_type_t type );
* POLARSSL_ERR_PK_TYPE_MISMATCH if ctx was not empty.
*/
int pk_wrap_rsa( pk_context *ctx, const rsa_context *rsa);
#endif
#endif /* POLARSSL_RSA_C */
#ifdef __cplusplus
}