resume-dtls.c | resume-dtls.c | |||
---|---|---|---|---|
skipping to change at line 123 | skipping to change at line 123 | |||
global_init(); | global_init(); | |||
gnutls_anon_allocate_client_credentials(&anoncred); | gnutls_anon_allocate_client_credentials(&anoncred); | |||
for (t = 0; t < SESSIONS; t++) { | for (t = 0; t < SESSIONS; t++) { | |||
int sd = sds[t]; | int sd = sds[t]; | |||
/* Initialize TLS session | /* Initialize TLS session | |||
*/ | */ | |||
gnutls_init(&session, | gnutls_init(&session, | |||
GNUTLS_CLIENT | GNUTLS_DATAGRAM | | GNUTLS_CLIENT | GNUTLS_DATAGRAM); | |||
GNUTLS_NO_EXTENSIONS); | ||||
/* Use default priorities */ | /* Use default priorities */ | |||
gnutls_priority_set_direct(session, | if (params->enable_session_ticket_client) | |||
gnutls_priority_set_direct(session, | ||||
"NONE:+VERS-DTLS1.0:+CIPHER-ALL:+ MAC-ALL:+SIGN-ALL:+COMP-ALL:+ANON-DH", | "NONE:+VERS-DTLS1.0:+CIPHER-ALL:+ MAC-ALL:+SIGN-ALL:+COMP-ALL:+ANON-DH", | |||
NULL); | NULL); | |||
else | ||||
gnutls_priority_set_direct(session, | ||||
"NONE:+VERS-DTLS1.0:+CIPHER-ALL:+ | ||||
MAC-ALL:+SIGN-ALL:+COMP-ALL:+ANON-DH:%NO_TICKETS", | ||||
NULL); | ||||
/* put the anonymous credentials to the current session | /* put the anonymous credentials to the current session | |||
*/ | */ | |||
gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred); | gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred); | |||
if (params->enable_session_ticket_client) | ||||
gnutls_session_ticket_enable_client(session); | ||||
if (t > 0) { | if (t > 0) { | |||
/* if this is not the first time we connect */ | /* if this is not the first time we connect */ | |||
gnutls_session_set_data(session, session_data.data, | gnutls_session_set_data(session, session_data.data, | |||
session_data.size); | session_data.size); | |||
gnutls_free(session_data.data); | gnutls_free(session_data.data); | |||
} | } | |||
gnutls_transport_set_int(session, sd); | gnutls_transport_set_int(session, sd); | |||
/* Perform the TLS handshake | /* Perform the TLS handshake | |||
End of changes. 4 change blocks. | ||||
6 lines changed or deleted | 8 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |