From 894dece46cdef3c5de67b82420a931f571bcfc41 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 23 Aug 2012 08:34:32 +0000 Subject: [PATCH] - Cleaner return value (for C++) --- include/polarssl/cipher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/polarssl/cipher.h b/include/polarssl/cipher.h index 02003e8cd..8224128e3 100644 --- a/include/polarssl/cipher.h +++ b/include/polarssl/cipher.h @@ -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 ) { if( NULL == ctx || NULL == ctx->cipher_info ) - return 0; + return POLARSSL_CIPHER_NONE; return ctx->cipher_info->type; }