mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:55:40 +01:00
- Updated strerror codes for SSL Compression and Blowfish
This commit is contained in:
parent
a9379c0ed1
commit
83f00bba9c
@ -39,6 +39,10 @@
|
|||||||
#include "polarssl/bignum.h"
|
#include "polarssl/bignum.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_BLOWFISH_C)
|
||||||
|
#include "polarssl/blowfish.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_CAMELLIA_C)
|
#if defined(POLARSSL_CAMELLIA_C)
|
||||||
#include "polarssl/camellia.h"
|
#include "polarssl/camellia.h"
|
||||||
#endif
|
#endif
|
||||||
@ -293,6 +297,8 @@ void error_strerror( int ret, char *buf, size_t buflen )
|
|||||||
snprintf( buf, buflen, "SSL - Hardware acceleration function returned with error" );
|
snprintf( buf, buflen, "SSL - Hardware acceleration function returned with error" );
|
||||||
if( use_ret == -(POLARSSL_ERR_SSL_HW_ACCEL_FALLTHROUGH) )
|
if( use_ret == -(POLARSSL_ERR_SSL_HW_ACCEL_FALLTHROUGH) )
|
||||||
snprintf( buf, buflen, "SSL - Hardware acceleration function skipped / left alone data" );
|
snprintf( buf, buflen, "SSL - Hardware acceleration function skipped / left alone data" );
|
||||||
|
if( use_ret == -(POLARSSL_ERR_SSL_COMPRESSION_FAILED) )
|
||||||
|
snprintf( buf, buflen, "SSL - Processing of the compression / decompression failed" );
|
||||||
#endif /* POLARSSL_SSL_TLS_C */
|
#endif /* POLARSSL_SSL_TLS_C */
|
||||||
|
|
||||||
#if defined(POLARSSL_X509_PARSE_C)
|
#if defined(POLARSSL_X509_PARSE_C)
|
||||||
@ -419,6 +425,13 @@ void error_strerror( int ret, char *buf, size_t buflen )
|
|||||||
snprintf( buf, buflen, "BIGNUM - Memory allocation failed" );
|
snprintf( buf, buflen, "BIGNUM - Memory allocation failed" );
|
||||||
#endif /* POLARSSL_BIGNUM_C */
|
#endif /* POLARSSL_BIGNUM_C */
|
||||||
|
|
||||||
|
#if defined(POLARSSL_BLOWFISH_C)
|
||||||
|
if( use_ret == -(POLARSSL_ERR_BLOWFISH_INVALID_KEY_LENGTH) )
|
||||||
|
snprintf( buf, buflen, "BLOWFISH - Invalid key length" );
|
||||||
|
if( use_ret == -(POLARSSL_ERR_BLOWFISH_INVALID_INPUT_LENGTH) )
|
||||||
|
snprintf( buf, buflen, "BLOWFISH - Invalid data input length" );
|
||||||
|
#endif /* POLARSSL_BLOWFISH_C */
|
||||||
|
|
||||||
#if defined(POLARSSL_CAMELLIA_C)
|
#if defined(POLARSSL_CAMELLIA_C)
|
||||||
if( use_ret == -(POLARSSL_ERR_CAMELLIA_INVALID_KEY_LENGTH) )
|
if( use_ret == -(POLARSSL_ERR_CAMELLIA_INVALID_KEY_LENGTH) )
|
||||||
snprintf( buf, buflen, "CAMELLIA - Invalid key length" );
|
snprintf( buf, buflen, "CAMELLIA - Invalid key length" );
|
||||||
|
@ -8,7 +8,8 @@ my $data_dir = shift or die "Missing data directory";
|
|||||||
my $error_file = shift or die "Missing destination file";
|
my $error_file = shift or die "Missing destination file";
|
||||||
my $error_format_file = $data_dir.'/error.fmt';
|
my $error_format_file = $data_dir.'/error.fmt';
|
||||||
|
|
||||||
my @low_level_modules = ( "AES", "ASN1", "CAMELLIA", "BIGNUM", "BASE64", "XTEA",
|
my @low_level_modules = ( "AES", "ASN1", "BLOWFISH", "CAMELLIA", "BIGNUM",
|
||||||
|
"BASE64", "XTEA",
|
||||||
"PADLOCK", "DES", "NET", "CTR_DRBG", "ENTROPY",
|
"PADLOCK", "DES", "NET", "CTR_DRBG", "ENTROPY",
|
||||||
"MD2", "MD4", "MD5", "SHA1", "SHA2", "SHA4", "GCM" );
|
"MD2", "MD4", "MD5", "SHA1", "SHA2", "SHA4", "GCM" );
|
||||||
my @high_level_modules = ( "PEM", "X509", "DHM", "RSA", "MD", "CIPHER", "SSL" );
|
my @high_level_modules = ( "PEM", "X509", "DHM", "RSA", "MD", "CIPHER", "SSL" );
|
||||||
|
Loading…
Reference in New Issue
Block a user