mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +08:00
Update t1_lib.c
if not process the ext block in the end of server hello data, jump over it.
This commit is contained in:
@@ -2982,8 +2982,11 @@ int ssl_parse_serverhello_tlsext(SSL *s, PACKET *pkt)
|
|||||||
{
|
{
|
||||||
int al = -1;
|
int al = -1;
|
||||||
|
|
||||||
if (s->version < SSL3_VERSION)
|
if (s->version < SSL3_VERSION){
|
||||||
|
// jump over the ext block
|
||||||
|
packet_forward(pkt, pkt->remaining);
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (ssl_scan_serverhello_tlsext(s, pkt, &al) <= 0) {
|
if (ssl_scan_serverhello_tlsext(s, pkt, &al) <= 0) {
|
||||||
ssl3_send_alert(s, SSL3_AL_FATAL, al);
|
ssl3_send_alert(s, SSL3_AL_FATAL, al);
|
||||||
|
|||||||
Reference in New Issue
Block a user