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:
John Safranek
2016-05-18 15:04:40 -07:00
parent 03e6f7cca3
commit 5c8daa0ac6
3 changed files with 29 additions and 25 deletions

View File

@@ -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";