mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-26 01:01:04 +00:00
- Cleaner return value (for C++)
This commit is contained in:
parent
b68cad6cc7
commit
894dece46c
|
@ -320,7 +320,7 @@ static inline int cipher_get_iv_size( const cipher_context_t *ctx )
|
||||||
static inline cipher_type_t cipher_get_type( const cipher_context_t *ctx )
|
static inline cipher_type_t cipher_get_type( const cipher_context_t *ctx )
|
||||||
{
|
{
|
||||||
if( NULL == ctx || NULL == ctx->cipher_info )
|
if( NULL == ctx || NULL == ctx->cipher_info )
|
||||||
return 0;
|
return POLARSSL_CIPHER_NONE;
|
||||||
|
|
||||||
return ctx->cipher_info->type;
|
return ctx->cipher_info->type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue