mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Add renegotiation_info and SCSV support
This commit is contained in:
@@ -901,6 +901,10 @@ typedef struct {
|
||||
// 66. client_id (TLCP only)
|
||||
int client_id;
|
||||
|
||||
// 65281. renegotiation_info (TLS 1.2 only)
|
||||
int renegotiation_info;
|
||||
int empty_renegotiation_info_scsv;
|
||||
|
||||
} TLS_CTX;
|
||||
|
||||
|
||||
@@ -1264,6 +1268,9 @@ typedef struct {
|
||||
// 66. client_id (TLCP only)
|
||||
int client_id;
|
||||
|
||||
// 65281. renegotiation_info (TLS 1.2 only)
|
||||
int secure_renegotiation;
|
||||
|
||||
} TLS_CONNECT;
|
||||
|
||||
|
||||
@@ -1782,6 +1789,10 @@ int tls_server_name_from_bytes(const uint8_t **host_name, size_t *host_name_len,
|
||||
const uint8_t *ext_data, size_t ext_datalen);
|
||||
int tls_server_name_print(FILE *fp, int fmt, int ind, const uint8_t *ext_data, size_t ext_datalen);
|
||||
|
||||
// 65281. renegotiation_info (TLS 1.2 only)
|
||||
int tls12_ctx_set_renegotiation_info(TLS_CTX *ctx, int enable);
|
||||
int tls12_ctx_set_empty_renegotiation_info_scsv(TLS_CTX *ctx, int enable);
|
||||
|
||||
// 16. application_layer_protocol_negotiation
|
||||
int tls_ctx_set_application_layer_protocol_negotiation(TLS_CTX *ctx,
|
||||
char *protocols[], size_t protocols_cnt);
|
||||
|
||||
Reference in New Issue
Block a user