aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_ciphersuite.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-10-30 23:56:02 +0000
committerlloyd <[email protected]>2014-10-30 23:56:02 +0000
commit71e9b91eea49d53853250e56fcbc42c4ca59dd93 (patch)
treea04d985dc9721e0b9a3b71229da8b46e06cab44d /src/lib/tls/tls_ciphersuite.h
parent6c77c2fd9b59ad063a1ef6020ef5976647eab0f9 (diff)
If the server offers us a SCSV instead of a real ciphersuite send a fatal alert
Diffstat (limited to 'src/lib/tls/tls_ciphersuite.h')
-rw-r--r--src/lib/tls/tls_ciphersuite.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/tls/tls_ciphersuite.h b/src/lib/tls/tls_ciphersuite.h
index 865e66abb..f6f1f35f8 100644
--- a/src/lib/tls/tls_ciphersuite.h
+++ b/src/lib/tls/tls_ciphersuite.h
@@ -30,6 +30,11 @@ class BOTAN_DLL Ciphersuite
static Ciphersuite by_id(u16bit suite);
/**
+ * Returns true iff this suite is a known SCSV
+ */
+ static bool is_scsv(u16bit suite);
+
+ /**
* Lookup a ciphersuite by name
* @param name the name (eg TLS_RSA_WITH_RC4_128_SHA)
* @return ciphersuite object