mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
removed session ticket support
This commit is contained in:
@@ -550,9 +550,6 @@ const char* perr;
|
||||
mslog(s, NULL, LOG_ERR, "error in TLS priority string: %s", perr);
|
||||
GNUTLS_FATAL_ERR(ret);
|
||||
|
||||
ret = gnutls_session_ticket_key_generate(&s->creds.ticket_key);
|
||||
GNUTLS_FATAL_ERR(ret);
|
||||
|
||||
if (s->config->ocsp_response != NULL) {
|
||||
ret = gnutls_certificate_set_ocsp_status_request_file(s->creds.xcred,
|
||||
s->config->ocsp_response, 0);
|
||||
|
||||
@@ -54,7 +54,6 @@ struct tls_st {
|
||||
gnutls_certificate_credentials_t xcred;
|
||||
gnutls_priority_t cprio;
|
||||
gnutls_dh_params_t dh_params;
|
||||
gnutls_datum_t ticket_key;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -503,8 +503,6 @@ void vpn_server(struct worker_st* ws)
|
||||
ret = gnutls_init(&session, GNUTLS_SERVER);
|
||||
GNUTLS_FATAL_ERR(ret);
|
||||
|
||||
gnutls_session_ticket_enable_server(session, &ws->creds->ticket_key);
|
||||
|
||||
ret = gnutls_priority_set(session, ws->creds->cprio);
|
||||
GNUTLS_FATAL_ERR(ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user