handle bunlded scr messages

This commit is contained in:
toddouska 2014-09-30 11:52:21 -07:00
parent a937040087
commit 29d4148637

View File

@ -6384,6 +6384,12 @@ int ProcessReply(CYASSL* ssl)
}
#endif
ssl->options.processReply = runProcessingOneMessage;
if (ssl->keys.encryptionOn) {
CYASSL_MSG("Bundled encrypted messages, remove middle pad");
ssl->buffers.inputBuffer.idx -= ssl->keys.padSz;
}
continue;
}
/* more records */
@ -9161,6 +9167,9 @@ static void PickHashSigAlgo(CYASSL* ssl,
else if (IsTLS(ssl))
ssl->options.sendVerify = SEND_BLANK_CERT;
if (ssl->keys.encryptionOn)
*inOutIdx += ssl->keys.padSz;
return 0;
}
#endif /* !NO_CERTS */