Treat base64 key EOF as successful decode
This commit is contained in:
committed by
Mario Fetka
parent
b02c348124
commit
a8f9e7e9ab
@@ -1539,7 +1539,15 @@ RCODE F_CCS::setKeyFromStore(
|
||||
if( RC_BAD( rc = B64Decoder.read(
|
||||
(void *)pucKeyBuf, ui32BufLen, &uiLength)))
|
||||
{
|
||||
goto Exit;
|
||||
if( rc != FERR_EOF_HIT)
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
// F_Base64DecoderIStream signals end-of-stream with EOF after
|
||||
// returning the decoded bytes. In this path EOF is a successful
|
||||
// completion, not a failed key decode.
|
||||
rc = FERR_OK;
|
||||
}
|
||||
pucTmp = pucKeyBuf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user