mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-24 14:23:47 +08:00
remove warnings
This commit is contained in:
@@ -4221,7 +4221,7 @@ long ssl_get_algorithm2(SSL *s)
|
||||
return SSL_HANDSHAKE_MAC_DEFAULT | TLS1_PRF;
|
||||
} else{
|
||||
// in the end of finish msg of gmssl handshake, to get the correct hash algo
|
||||
printf("ssl_get_algorithm2=0x08x\n", ssl_get_algorithm2);
|
||||
printf("ssl_get_algorithm2=%0x08x\n", ssl_get_algorithm2);
|
||||
if (alg2 == 0x909){
|
||||
return SSL_HANDSHAKE_MAC_SM3 | TLS1_PRF_SM3;
|
||||
}
|
||||
|
||||
@@ -2982,11 +2982,11 @@ int ssl_parse_serverhello_tlsext(SSL *s, PACKET *pkt)
|
||||
{
|
||||
int al = -1;
|
||||
|
||||
if (s->version < SSL3_VERSION){
|
||||
// jump over the ext block
|
||||
if (s->version < SSL2_VERSION){
|
||||
/* jump over the ext block */
|
||||
packet_forward(pkt, pkt->remaining);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ssl_scan_serverhello_tlsext(s, pkt, &al) <= 0) {
|
||||
ssl3_send_alert(s, SSL3_AL_FATAL, al);
|
||||
|
||||
Reference in New Issue
Block a user