add error return for unsuported version

pull/1564/head
Jacob Barthelmeh 2018-05-15 22:51:11 -06:00
parent 7a4da340d4
commit 1ca62ee0a1
1 changed files with 1 additions and 0 deletions

View File

@ -2600,6 +2600,7 @@ int UnTraditionalEnc(byte* key, word32 keySz, byte* out, word32* outSz,
if (version == PKCS5v2) {
WOLFSSL_MSG("PKCS5v2 Not supported yet\n");
return ASN_VERSION_E;
}
if (salt == NULL || saltSz <= 0) {