2013-10-30 21:19:48 +08:00
|
|
|
--- a/src/internal.c
|
|
|
|
+++ b/src/internal.c
|
2014-05-01 22:04:15 +08:00
|
|
|
@@ -5063,6 +5063,10 @@ int ProcessReply(CYASSL* ssl)
|
2013-10-29 17:53:48 +08:00
|
|
|
b1 =
|
|
|
|
ssl->buffers.inputBuffer.buffer[ssl->buffers.inputBuffer.idx++];
|
2014-05-01 22:04:15 +08:00
|
|
|
ssl->curSize = (word16)(((b0 & 0x7f) << 8) | b1);
|
2013-10-29 17:53:48 +08:00
|
|
|
+
|
|
|
|
+ /* does not appear to a be a SSLv2 client hello */
|
|
|
|
+ if ( ssl->buffers.inputBuffer.buffer[ssl->buffers.inputBuffer.idx] != 1 )
|
|
|
|
+ return UNKNOWN_HANDSHAKE_TYPE;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
ssl->options.processReply = getRecordLayerHeader;
|