Added more helpful error messages for TLS

This commit is contained in:
Gordon Williams 2016-11-21 17:03:11 +00:00 committed by Rhys.Williams
parent 9274c88f38
commit d541b87bd1
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
1v90 : Fixes for Promise.all (passing in non-promises, pre-resolved, and ordering) (fix #976)
Fix arrow function bug when parsing multiple arguments
Added more helpful error messages for TLS
1v89 : Allow entering of multi-line Templated Literals on the command-line (fix #970)
Make lexer fail when parsing non-templated strings with newlines in

View File

@ -70,6 +70,8 @@ const char *jswrap_crypto_error_to_str(int err) {
case MBEDTLS_ERR_X509_INVALID_FORMAT:
case MBEDTLS_ERR_PK_KEY_INVALID_FORMAT:
return "Invalid format";
case MBEDTLS_ERR_SSL_PK_TYPE_MISMATCH:
return "Public key type mismatch";
case MBEDTLS_ERR_X509_ALLOC_FAILED:
case MBEDTLS_ERR_SSL_ALLOC_FAILED:
case MBEDTLS_ERR_PK_ALLOC_FAILED: