mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-29 19:56:16 +08:00
first step of v2 final release
This commit is contained in:
@@ -1314,7 +1314,7 @@ int ssl3_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
|
||||
if (s->server &&
|
||||
SSL_is_init_finished(s) &&
|
||||
!s->s3->send_connection_binding &&
|
||||
(s->version > SSL3_VERSION) &&
|
||||
(s->version > SSL3_VERSION) &&
|
||||
(s->rlayer.handshake_fragment_len >= 4) &&
|
||||
(s->rlayer.handshake_fragment[0] == SSL3_MT_CLIENT_HELLO) &&
|
||||
(s->session != NULL) && (s->session->cipher != NULL) &&
|
||||
|
||||
@@ -228,6 +228,11 @@ int ssl3_get_record(SSL *s)
|
||||
goto f_err;
|
||||
}
|
||||
|
||||
#ifndef OPENSSL_NO_GMTLS_METHOD
|
||||
if (version == GMTLS_VERSION) {
|
||||
/* do nothing */
|
||||
} else
|
||||
#endif
|
||||
if ((version >> 8) != SSL3_VERSION_MAJOR) {
|
||||
if (RECORD_LAYER_is_first_record(&s->rlayer)) {
|
||||
/* Go back to start of packet, look at the five bytes
|
||||
|
||||
Reference in New Issue
Block a user