Update TLS 1.3

This commit is contained in:
Zhi Guan
2026-05-26 21:50:13 +08:00
parent 828a93e907
commit 931c5e39e8
12 changed files with 796 additions and 1080 deletions

View File

@@ -419,7 +419,7 @@ int tls_signature_algorithms_print(FILE *fp, int fmt, int ind, const uint8_t *d,
}
int tls_enable_signature_algorithms_cert(TLS_CONNECT *conn)
int tls_enable_signature_algorithms_cert(TLS_CONNECT *conn, int enable)
{
if (!conn) {
error_print();
@@ -429,7 +429,7 @@ int tls_enable_signature_algorithms_cert(TLS_CONNECT *conn)
error_print();
return -1;
}
conn->signature_algorithms_cert = 1;
conn->signature_algorithms_cert = enable ? 1 : 0;
return 1;
}