aboutsummaryrefslogtreecommitdiff
path: root/include/openssl/tls1.h
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2018-08-07 15:28:59 -0400
committerRich Salz <rsalz@openssl.org>2018-08-07 15:28:59 -0400
commitb5ee517794cf546dc7e3d5a82b400955a7381053 (patch)
tree73f94c0e5bcf42baf4560d9012357ff7b44d606c /include/openssl/tls1.h
parent10281e83eac0fb96de3f14855154197aa33bb800 (diff)
downloadopenssl-b5ee517794cf546dc7e3d5a82b400955a7381053.zip
openssl-b5ee517794cf546dc7e3d5a82b400955a7381053.tar.gz
openssl-b5ee517794cf546dc7e3d5a82b400955a7381053.tar.bz2
Increase CT_NUMBER values
Also add build-time errors to keep them in sync. Thanks to GitHub user YuDudysheva for reporting this. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6874)
Diffstat (limited to 'include/openssl/tls1.h')
-rw-r--r--include/openssl/tls1.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h
index 761a86a..2f19ccf 100644
--- a/include/openssl/tls1.h
+++ b/include/openssl/tls1.h
@@ -1149,7 +1149,13 @@ __owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain)
* when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see
* comment there)
*/
-# define TLS_CT_NUMBER 9
+# define TLS_CT_NUMBER 10
+
+# if defined(SSL3_CT_NUMBER)
+# if TLS_CT_NUMBER != SSL3_CT_NUMBER
+# error "SSL/TLS CT_NUMBER values do not match"
+# endif
+# endif
# define TLS1_FINISH_MAC_LENGTH 12