Add tests and fix bugs for RSA-alt contexts

This commit is contained in:
Manuel Pégourié-Gonnard 2014-04-03 22:09:18 +02:00
parent 79e58421be
commit 0148875cfc
6 changed files with 111 additions and 3 deletions

View file

@ -258,6 +258,9 @@ int pk_debug( const pk_context *ctx, pk_debug_item *items )
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 );
}