X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fopenssl%2Ftls1.h;h=166f15ad5cdeecdc0af23b4690af2578a8fb8c81;hb=c3a261f8d31c1d04db01de36eccfe001b4ca0368;hp=2f19ccf2298fbed0fc81845432e5266b7d761d53;hpb=b5ee517794cf546dc7e3d5a82b400955a7381053;p=oweals%2Fopenssl.git diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index 2f19ccf229..166f15ad5c 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -3,7 +3,7 @@ * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * Copyright 2005 Nokia. All rights reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html @@ -28,15 +28,9 @@ extern "C" { # define TLS1_1_VERSION 0x0302 # define TLS1_2_VERSION 0x0303 # 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)" +# if !OPENSSL_API_3 +# define TLS_MAX_VERSION TLS1_3_VERSION +# endif /* Special value for method supporting multiple versions */ # define TLS_ANY_VERSION 0x10000 @@ -249,6 +243,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, @@ -342,7 +337,7 @@ __owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain) # define SSL_set_dtlsext_heartbeat_no_requests(ssl, arg) \ SSL_ctrl(ssl,SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS,arg,NULL) -# if OPENSSL_API_COMPAT < 0x10100000L +# if !OPENSSL_API_1_1_0 # define SSL_CTRL_TLS_EXT_SEND_HEARTBEAT \ SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT # define SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING \