Clean up unneeded things
This commit is contained in:
parent
4063ceb281
commit
a77edade0c
2 changed files with 0 additions and 13 deletions
library
|
@ -204,8 +204,6 @@ int md_init_ctx( md_context_t *ctx, const md_info_t *md_info, int hmac )
|
|||
if( md_info == NULL || ctx == NULL )
|
||||
return( POLARSSL_ERR_MD_BAD_INPUT_DATA );
|
||||
|
||||
memset( ctx, 0, sizeof( md_context_t ) );
|
||||
|
||||
if( ( ctx->md_ctx = md_info->ctx_alloc_func() ) == NULL )
|
||||
return( POLARSSL_ERR_MD_ALLOC_FAILED );
|
||||
|
||||
|
@ -221,8 +219,6 @@ int md_init_ctx( md_context_t *ctx, const md_info_t *md_info, int hmac )
|
|||
|
||||
ctx->md_info = md_info;
|
||||
|
||||
md_info->starts_func( ctx->md_ctx );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue