tests.c | tests.c | |||
---|---|---|---|---|
skipping to change at line 231 | skipping to change at line 231 | |||
ret = do_handshake(session); | ret = do_handshake(session); | |||
if (ret < 0) | if (ret < 0) | |||
return TEST_FAILED; | return TEST_FAILED; | |||
curve = gnutls_ecc_curve_get(session); | curve = gnutls_ecc_curve_get(session); | |||
return ret; | return ret; | |||
} | } | |||
test_code_t test_rfc7507(gnutls_session_t session) | ||||
{ | ||||
int ret; | ||||
const char *pstr = NULL; | ||||
if (tls1_2_ok && tls1_1_ok) | ||||
pstr = "-VERS-TLS-ALL:+VERS-TLS1.1:%FALLBACK_SCSV"; | ||||
else if (tls1_1_ok && tls1_ok) | ||||
pstr = "-VERS-TLS-ALL:+VERS-TLS1.0:%FALLBACK_SCSV"; | ||||
else if (tls1_ok && ssl3_ok) | ||||
pstr = "-VERS-TLS-ALL:+VERS-SSL3.0:%FALLBACK_SCSV"; | ||||
else | ||||
return TEST_IGNORE; | ||||
sprintf(prio_str, INIT_STR | ||||
ALL_CIPHERS ":" ALL_COMP ":%s:" ALL_MACS | ||||
":"ALL_KX":%s", pstr, rest); | ||||
_gnutls_priority_set_direct(session, prio_str); | ||||
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred); | ||||
ret = do_handshake(session); | ||||
if (ret < 0) | ||||
return TEST_IGNORE; | ||||
if (handshake_output < 0) | ||||
return TEST_SUCCEED; | ||||
return TEST_FAILED; | ||||
} | ||||
test_code_t test_safe_renegotiation(gnutls_session_t session) | test_code_t test_safe_renegotiation(gnutls_session_t session) | |||
{ | { | |||
int ret; | int ret; | |||
if (tls_ext_ok == 0) | if (tls_ext_ok == 0) | |||
return TEST_IGNORE; | return TEST_IGNORE; | |||
sprintf(prio_str, INIT_STR | sprintf(prio_str, INIT_STR | |||
ALL_CIPHERS ":" ALL_COMP ":" ALL_CERTTYPES ":%s:" ALL_MACS | ALL_CIPHERS ":" ALL_COMP ":" ALL_CERTTYPES ":%s:" ALL_MACS | |||
":" ALL_KX ":%s:%%SAFE_RENEGOTIATION", rest, protocol_str); | ":" ALL_KX ":%s:%%SAFE_RENEGOTIATION", rest, protocol_str); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 31 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/ |