commit | 0148875cfc0d528c3c11b0162ffa5046560055f1 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Apr 03 22:09:18 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Apr 04 17:46:46 2014 +0200 |
tree | cf2f880674c63fd7c71b61a013ab8f081344e589 | |
parent | 79e58421be7222ca7d1df824571eb05749f5cfda [diff] [blame] |
Add tests and fix bugs for RSA-alt contexts
diff --git a/library/pk.c b/library/pk.c index 80eccc9..cfde265 100644 --- a/library/pk.c +++ b/library/pk.c
@@ -258,6 +258,9 @@ if( ctx == NULL || ctx->pk_info == NULL ) return( POLARSSL_ERR_PK_BAD_INPUT_DATA ); + if( ctx->pk_info->debug_func == NULL ) + return( POLARSSL_ERR_PK_TYPE_MISMATCH ); + ctx->pk_info->debug_func( ctx->pk_ctx, items ); return( 0 ); }