summaryrefslogtreecommitdiff
path: root/lib/gnutls_priority.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-21 23:30:16 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-21 23:30:16 +0100
commit250e4ddf478910a645c70235c6e06d76f1b1ea73 (patch)
tree177761594dc3297ba8569093df034956d7e4ca13 /lib/gnutls_priority.c
parent6ded62d3cf180b8905075770916836e00552fb1c (diff)
downloadgnutls-250e4ddf478910a645c70235c6e06d76f1b1ea73.tar.gz
Added safe renegotiation test cases. Added priority string option to
completely disable renegotiation to assist in testing more cases.
Diffstat (limited to 'lib/gnutls_priority.c')
-rw-r--r--lib/gnutls_priority.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c
index f12660b562..a489166caf 100644
--- a/lib/gnutls_priority.c
+++ b/lib/gnutls_priority.c
@@ -526,6 +526,9 @@ gnutls_priority_set (gnutls_session_t session, gnutls_priority_t priority)
*
* "%INITIAL_SAFE_RENEGOTIATION" will force initial safe negotiation even if renegotiation wasn't requested.
*
+ * "%DISABLE_SAFE_RENEGOTIATION" will disable safe renegotiation completely. Do not use
+ * unless you know what you are doing. Testing purposes only.
+ *
* "%SSL3_RECORD_VERSION" will use SSL3.0 record version in client hello.
*
* "%VERIFY_ALLOW_SIGN_RSA_MD5" will allow RSA-MD5 signatures in
@@ -721,6 +724,9 @@ gnutls_priority_init (gnutls_priority_t * priority_cache,
else if (strcasecmp (&broken_list[i][1],
"INITIAL_SAFE_RENEGOTIATION") == 0)
(*priority_cache)->initial_safe_renegotiation = 1;
+ else if (strcasecmp (&broken_list[i][1],
+ "DISABLE_SAFE_RENEGOTIATION") == 0)
+ (*priority_cache)->disable_safe_renegotiation = 1;
else
goto error;
}