X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fopenssl%2Ftls1.h;h=e13b5dd4bc65b5ef72bf04098f6a0d18c71a5d23;hb=25ccb5896bbf28b74d4d72010948b0ac7d141622;hp=37bdc7da435ef5124035618afd4a894d8b2949d7;hpb=73cc84a132a08a02253ae168600fc4d16cd400d8;p=oweals%2Fopenssl.git diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index 37bdc7da43..e13b5dd4bc 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -30,14 +30,6 @@ extern "C" { # define TLS1_3_VERSION 0x0304 # define TLS_MAX_VERSION TLS1_3_VERSION -/* TODO(TLS1.3) REMOVE ME: Version indicators for draft version */ -# define TLS1_3_VERSION_DRAFT_26 0x7f1a -# define TLS1_3_VERSION_DRAFT_27 0x7f1b -# define TLS1_3_VERSION_DRAFT 0x7f1c -# define TLS1_3_VERSION_DRAFT_TXT_26 "TLS 1.3 (draft 26)" -# define TLS1_3_VERSION_DRAFT_TXT_27 "TLS 1.3 (draft 27)" -# define TLS1_3_VERSION_DRAFT_TXT "TLS 1.3 (draft 28)" - /* Special value for method supporting multiple versions */ # define TLS_ANY_VERSION 0x10000 @@ -70,7 +62,6 @@ extern "C" { # define TLS1_AD_USER_CANCELLED 90 # define TLS1_AD_NO_RENEGOTIATION 100 /* TLSv1.3 alerts */ -# define TLS13_AD_END_OF_EARLY_DATA 1 # define TLS13_AD_MISSING_EXTENSION 109 /* fatal */ # define TLS13_AD_CERTIFICATE_REQUIRED 116 /* fatal */ /* codes 110-114 are from RFC3546 */ @@ -250,6 +241,7 @@ __owur int SSL_export_keying_material_early(SSL *s, unsigned char *out, size_t contextlen); int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid); +int SSL_get_signature_type_nid(const SSL *s, int *pnid); int SSL_get_sigalgs(SSL *s, int idx, int *psign, int *phash, int *psignandhash, @@ -1150,7 +1142,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