mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 21:55:41 +01:00
- Updated error.c to include GCM errors
This commit is contained in:
parent
13ed9ab921
commit
030277ab1e
@ -63,6 +63,10 @@
|
|||||||
#include "polarssl/entropy.h"
|
#include "polarssl/entropy.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_GCM_C)
|
||||||
|
#include "polarssl/gcm.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_MD_C)
|
#if defined(POLARSSL_MD_C)
|
||||||
#include "polarssl/md.h"
|
#include "polarssl/md.h"
|
||||||
#endif
|
#endif
|
||||||
@ -440,6 +444,11 @@ void error_strerror( int ret, char *buf, size_t buflen )
|
|||||||
snprintf( buf, buflen, "ENTROPY - No sources have been added to poll" );
|
snprintf( buf, buflen, "ENTROPY - No sources have been added to poll" );
|
||||||
#endif /* POLARSSL_ENTROPY_C */
|
#endif /* POLARSSL_ENTROPY_C */
|
||||||
|
|
||||||
|
#if defined(POLARSSL_GCM_C)
|
||||||
|
if( use_ret == -(POLARSSL_ERR_GCM_AUTH_FAILED) )
|
||||||
|
snprintf( buf, buflen, "GCM - Authenticated decryption failed" );
|
||||||
|
#endif /* POLARSSL_GCM_C */
|
||||||
|
|
||||||
#if defined(POLARSSL_MD2_C)
|
#if defined(POLARSSL_MD2_C)
|
||||||
if( use_ret == -(POLARSSL_ERR_MD2_FILE_IO_ERROR) )
|
if( use_ret == -(POLARSSL_ERR_MD2_FILE_IO_ERROR) )
|
||||||
snprintf( buf, buflen, "MD2 - Read/write error in file" );
|
snprintf( buf, buflen, "MD2 - Read/write error in file" );
|
||||||
|
Loading…
Reference in New Issue
Block a user