forked from wolfSSL/wolfssl
1. SetName() should return error if country code isn't 2 bytes.
2. MakeCert() was not checking return codes correctly for the SetFoo()
functions.
3. Added error code for invalid country code length.
This commit is contained in:
@@ -380,6 +380,9 @@ const char* wc_GetErrorString(int error)
|
||||
case WC_KEY_SIZE_E:
|
||||
return "Key size error, either too small or large";
|
||||
|
||||
case ASN_COUNTRY_SIZE_E:
|
||||
return "Country code size error, either too small or large";
|
||||
|
||||
default:
|
||||
return "unknown error number";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user