diff --git a/Qt-5.12.4_5.13.0/arm/libcrypto.so b/Qt-5.12.4_5.13.0/arm/libcrypto.so index d505809..86e4e88 100755 Binary files a/Qt-5.12.4_5.13.0/arm/libcrypto.so and b/Qt-5.12.4_5.13.0/arm/libcrypto.so differ diff --git a/Qt-5.12.4_5.13.0/arm/libssl.so b/Qt-5.12.4_5.13.0/arm/libssl.so index dd5456b..4c565aa 100755 Binary files a/Qt-5.12.4_5.13.0/arm/libssl.so and b/Qt-5.12.4_5.13.0/arm/libssl.so differ diff --git a/Qt-5.12.4_5.13.0/arm64/libcrypto.so b/Qt-5.12.4_5.13.0/arm64/libcrypto.so index dd75c5f..80afb57 100755 Binary files a/Qt-5.12.4_5.13.0/arm64/libcrypto.so and b/Qt-5.12.4_5.13.0/arm64/libcrypto.so differ diff --git a/Qt-5.12.4_5.13.0/arm64/libssl.so b/Qt-5.12.4_5.13.0/arm64/libssl.so index 717ade4..8d98ccc 100755 Binary files a/Qt-5.12.4_5.13.0/arm64/libssl.so and b/Qt-5.12.4_5.13.0/arm64/libssl.so differ diff --git a/Qt-5.12.4_5.13.0/x86/libcrypto.so b/Qt-5.12.4_5.13.0/x86/libcrypto.so index 9298d0f..1d8218e 100755 Binary files a/Qt-5.12.4_5.13.0/x86/libcrypto.so and b/Qt-5.12.4_5.13.0/x86/libcrypto.so differ diff --git a/Qt-5.12.4_5.13.0/x86/libssl.so b/Qt-5.12.4_5.13.0/x86/libssl.so index a11f67f..57ef94d 100755 Binary files a/Qt-5.12.4_5.13.0/x86/libssl.so and b/Qt-5.12.4_5.13.0/x86/libssl.so differ diff --git a/Qt-5.12.4_5.13.0/x86_64/libcrypto.so b/Qt-5.12.4_5.13.0/x86_64/libcrypto.so index 3e9d8ff..115f3b8 100755 Binary files a/Qt-5.12.4_5.13.0/x86_64/libcrypto.so and b/Qt-5.12.4_5.13.0/x86_64/libcrypto.so differ diff --git a/Qt-5.12.4_5.13.0/x86_64/libssl.so b/Qt-5.12.4_5.13.0/x86_64/libssl.so index 0f0e83b..687fa0f 100755 Binary files a/Qt-5.12.4_5.13.0/x86_64/libssl.so and b/Qt-5.12.4_5.13.0/x86_64/libssl.so differ diff --git a/build_ssl.sh b/build_ssl.sh index 9280d2a..a439fe3 100755 --- a/build_ssl.sh +++ b/build_ssl.sh @@ -4,7 +4,7 @@ BUILD_DIR=$(pwd) DEFAULT_PATH=$PATH declare -a params=( 'no-asm' '' ) -declare -A ssl_versions=( ["1.1.1g"]=~/android/ndk-bundle ["1.0.2u"]=~/android/android-ndk-r10e ) +declare -A ssl_versions=( ["1.1.1k"]=~/android/ndk/21.4.7075529 ["1.0.2u"]=~/android/android-ndk-r10e ) # Qt up to Qt-5.12.3 are using openssl 1.0.x # Qt 5.12.4 and 5.13.0 are using 1.1.x without any suffix, this will make he andorid linker to load system libs on Andorid 5 which will make Qt SSL support unusable in this combination @@ -31,7 +31,7 @@ do if [ ! -f "openssl-$ssl_version.tar.gz" ]; then wget https://www.openssl.org/source/openssl-$ssl_version.tar.gz fi - export ANDROID_NDK_HOME=${ssl_versions[$ssl_version]} + export ANDROID_NDK_HOME="${ssl_versions[$ssl_version]}" for qt_version in ${!qt_versions[@]} do diff --git a/latest/arm/libcrypto_1_1.so b/latest/arm/libcrypto_1_1.so index 46f83df..79dc83d 100755 Binary files a/latest/arm/libcrypto_1_1.so and b/latest/arm/libcrypto_1_1.so differ diff --git a/latest/arm/libssl_1_1.so b/latest/arm/libssl_1_1.so index ae9ff52..f92e4f1 100755 Binary files a/latest/arm/libssl_1_1.so and b/latest/arm/libssl_1_1.so differ diff --git a/latest/arm64/libcrypto_1_1.so b/latest/arm64/libcrypto_1_1.so index 664494d..0474aea 100755 Binary files a/latest/arm64/libcrypto_1_1.so and b/latest/arm64/libcrypto_1_1.so differ diff --git a/latest/arm64/libssl_1_1.so b/latest/arm64/libssl_1_1.so index d603b4e..6a41e67 100755 Binary files a/latest/arm64/libssl_1_1.so and b/latest/arm64/libssl_1_1.so differ diff --git a/latest/x86/libcrypto_1_1.so b/latest/x86/libcrypto_1_1.so index 2a211fc..8ca40db 100755 Binary files a/latest/x86/libcrypto_1_1.so and b/latest/x86/libcrypto_1_1.so differ diff --git a/latest/x86/libssl_1_1.so b/latest/x86/libssl_1_1.so index 3c6933b..37bf9f3 100755 Binary files a/latest/x86/libssl_1_1.so and b/latest/x86/libssl_1_1.so differ diff --git a/latest/x86_64/libcrypto_1_1.so b/latest/x86_64/libcrypto_1_1.so index 44b146a..8bb559a 100755 Binary files a/latest/x86_64/libcrypto_1_1.so and b/latest/x86_64/libcrypto_1_1.so differ diff --git a/latest/x86_64/libssl_1_1.so b/latest/x86_64/libssl_1_1.so index 1753066..f8ae9b0 100755 Binary files a/latest/x86_64/libssl_1_1.so and b/latest/x86_64/libssl_1_1.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/arm/libcrypto.so b/no-asm/Qt-5.12.4_5.13.0/arm/libcrypto.so index 30f898f..0446425 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/arm/libcrypto.so and b/no-asm/Qt-5.12.4_5.13.0/arm/libcrypto.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/arm/libssl.so b/no-asm/Qt-5.12.4_5.13.0/arm/libssl.so index db06ab9..501a4aa 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/arm/libssl.so and b/no-asm/Qt-5.12.4_5.13.0/arm/libssl.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/arm64/libcrypto.so b/no-asm/Qt-5.12.4_5.13.0/arm64/libcrypto.so index 647d3f7..0b1f950 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/arm64/libcrypto.so and b/no-asm/Qt-5.12.4_5.13.0/arm64/libcrypto.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/arm64/libssl.so b/no-asm/Qt-5.12.4_5.13.0/arm64/libssl.so index 7bdc452..4fead34 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/arm64/libssl.so and b/no-asm/Qt-5.12.4_5.13.0/arm64/libssl.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/x86/libcrypto.so b/no-asm/Qt-5.12.4_5.13.0/x86/libcrypto.so index 9ef9c2d..c023012 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/x86/libcrypto.so and b/no-asm/Qt-5.12.4_5.13.0/x86/libcrypto.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/x86/libssl.so b/no-asm/Qt-5.12.4_5.13.0/x86/libssl.so index c2deaf9..a32f9f2 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/x86/libssl.so and b/no-asm/Qt-5.12.4_5.13.0/x86/libssl.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/x86_64/libcrypto.so b/no-asm/Qt-5.12.4_5.13.0/x86_64/libcrypto.so index dfba178..8f9a1f5 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/x86_64/libcrypto.so and b/no-asm/Qt-5.12.4_5.13.0/x86_64/libcrypto.so differ diff --git a/no-asm/Qt-5.12.4_5.13.0/x86_64/libssl.so b/no-asm/Qt-5.12.4_5.13.0/x86_64/libssl.so index 0850d8d..414cfe1 100755 Binary files a/no-asm/Qt-5.12.4_5.13.0/x86_64/libssl.so and b/no-asm/Qt-5.12.4_5.13.0/x86_64/libssl.so differ diff --git a/no-asm/latest/arm/libcrypto_1_1.so b/no-asm/latest/arm/libcrypto_1_1.so index 4e3a21d..9acc08a 100755 Binary files a/no-asm/latest/arm/libcrypto_1_1.so and b/no-asm/latest/arm/libcrypto_1_1.so differ diff --git a/no-asm/latest/arm/libssl_1_1.so b/no-asm/latest/arm/libssl_1_1.so index a7cd768..bb26af8 100755 Binary files a/no-asm/latest/arm/libssl_1_1.so and b/no-asm/latest/arm/libssl_1_1.so differ diff --git a/no-asm/latest/arm64/libcrypto_1_1.so b/no-asm/latest/arm64/libcrypto_1_1.so index 991edae..d6fcb5f 100755 Binary files a/no-asm/latest/arm64/libcrypto_1_1.so and b/no-asm/latest/arm64/libcrypto_1_1.so differ diff --git a/no-asm/latest/arm64/libssl_1_1.so b/no-asm/latest/arm64/libssl_1_1.so index 5c7765d..25467cf 100755 Binary files a/no-asm/latest/arm64/libssl_1_1.so and b/no-asm/latest/arm64/libssl_1_1.so differ diff --git a/no-asm/latest/x86/libcrypto_1_1.so b/no-asm/latest/x86/libcrypto_1_1.so index 8203b64..1b26b0f 100755 Binary files a/no-asm/latest/x86/libcrypto_1_1.so and b/no-asm/latest/x86/libcrypto_1_1.so differ diff --git a/no-asm/latest/x86/libssl_1_1.so b/no-asm/latest/x86/libssl_1_1.so index d99a858..673d1ff 100755 Binary files a/no-asm/latest/x86/libssl_1_1.so and b/no-asm/latest/x86/libssl_1_1.so differ diff --git a/no-asm/latest/x86_64/libcrypto_1_1.so b/no-asm/latest/x86_64/libcrypto_1_1.so index 64fdb58..1db9764 100755 Binary files a/no-asm/latest/x86_64/libcrypto_1_1.so and b/no-asm/latest/x86_64/libcrypto_1_1.so differ diff --git a/no-asm/latest/x86_64/libssl_1_1.so b/no-asm/latest/x86_64/libssl_1_1.so index ab83698..5e25e21 100755 Binary files a/no-asm/latest/x86_64/libssl_1_1.so and b/no-asm/latest/x86_64/libssl_1_1.so differ diff --git a/no-asm/static/include/openssl/asn1err.h b/no-asm/static/include/openssl/asn1err.h index faed5a5..e1ad1fe 100644 --- a/no-asm/static/include/openssl/asn1err.h +++ b/no-asm/static/include/openssl/asn1err.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_ASN1ERR_H # define HEADER_ASN1ERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -53,6 +51,7 @@ int ERR_load_ASN1_strings(void); # define ASN1_F_ASN1_ITEM_DUP 191 # define ASN1_F_ASN1_ITEM_EMBED_D2I 120 # define ASN1_F_ASN1_ITEM_EMBED_NEW 121 +# define ASN1_F_ASN1_ITEM_EX_I2D 144 # define ASN1_F_ASN1_ITEM_FLAGS_I2D 118 # define ASN1_F_ASN1_ITEM_I2D_BIO 192 # define ASN1_F_ASN1_ITEM_I2D_FP 193 @@ -145,6 +144,7 @@ int ERR_load_ASN1_strings(void); # define ASN1_R_ASN1_SIG_PARSE_ERROR 204 # define ASN1_R_AUX_ERROR 100 # define ASN1_R_BAD_OBJECT_HEADER 102 +# define ASN1_R_BAD_TEMPLATE 230 # define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 214 # define ASN1_R_BN_LIB 105 # define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106 diff --git a/no-asm/static/include/openssl/bn.h b/no-asm/static/include/openssl/bn.h index 8af05d0..d877660 100644 --- a/no-asm/static/include/openssl/bn.h +++ b/no-asm/static/include/openssl/bn.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -56,7 +56,7 @@ extern "C" { * avoid leaking exponent information through timing, * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, * BN_div() will call BN_div_no_branch, - * BN_mod_inverse() will call BN_mod_inverse_no_branch. + * BN_mod_inverse() will call bn_mod_inverse_no_branch. */ # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 diff --git a/no-asm/static/include/openssl/e_os2.h b/no-asm/static/include/openssl/e_os2.h index 97a776c..cf308ee 100644 --- a/no-asm/static/include/openssl/e_os2.h +++ b/no-asm/static/include/openssl/e_os2.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -241,7 +241,7 @@ typedef UINT64 uint64_t; defined(__osf__) || defined(__sgi) || defined(__hpux) || \ defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__) # include -# elif defined(_MSC_VER) && _MSC_VER<=1500 +# elif defined(_MSC_VER) && _MSC_VER<1600 /* * minimally required typdefs for systems not supporting inttypes.h or * stdint.h: currently just older VC++ diff --git a/no-asm/static/include/openssl/ec.h b/no-asm/static/include/openssl/ec.h index 5af9ebd..44cc139 100644 --- a/no-asm/static/include/openssl/ec.h +++ b/no-asm/static/include/openssl/ec.h @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -829,6 +829,8 @@ void EC_KEY_set_flags(EC_KEY *key, int flags); void EC_KEY_clear_flags(EC_KEY *key, int flags); +int EC_KEY_decoded_from_explicit_params(const EC_KEY *key); + /** Creates a new EC_KEY object using a named curve as underlying * EC_GROUP object. * \param nid NID of the named curve. diff --git a/no-asm/static/include/openssl/ecerr.h b/no-asm/static/include/openssl/ecerr.h index f7b9183..5173811 100644 --- a/no-asm/static/include/openssl/ecerr.h +++ b/no-asm/static/include/openssl/ecerr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -243,6 +243,7 @@ int ERR_load_EC_strings(void); # define EC_R_LADDER_POST_FAILURE 136 # define EC_R_LADDER_PRE_FAILURE 153 # define EC_R_LADDER_STEP_FAILURE 162 +# define EC_R_MISSING_OID 167 # define EC_R_MISSING_PARAMETERS 124 # define EC_R_MISSING_PRIVATE_KEY 125 # define EC_R_NEED_NEW_SETUP_VALUES 157 diff --git a/no-asm/static/include/openssl/evperr.h b/no-asm/static/include/openssl/evperr.h index d2b26ea..b4ea90a 100644 --- a/no-asm/static/include/openssl/evperr.h +++ b/no-asm/static/include/openssl/evperr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_EVPERR_H # define HEADER_EVPERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -179,6 +177,7 @@ int ERR_load_EVP_strings(void); # define EVP_R_ONLY_ONESHOT_SUPPORTED 177 # define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150 # define EVP_R_OPERATON_NOT_INITIALIZED 151 +# define EVP_R_OUTPUT_WOULD_OVERFLOW 184 # define EVP_R_PARTIALLY_OVERLAPPING 162 # define EVP_R_PBKDF2_ERROR 181 # define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179 diff --git a/no-asm/static/include/openssl/obj_mac.h b/no-asm/static/include/openssl/obj_mac.h index 483fc05..eb812ed 100644 --- a/no-asm/static/include/openssl/obj_mac.h +++ b/no-asm/static/include/openssl/obj_mac.h @@ -2,7 +2,7 @@ * WARNING: do not edit! * Generated by crypto/objects/objects.pl * - * Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. * Licensed under the OpenSSL license (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 diff --git a/no-asm/static/include/openssl/opensslconf.h b/no-asm/static/include/openssl/opensslconf.h index 4185a04..57c2274 100644 --- a/no-asm/static/include/openssl/opensslconf.h +++ b/no-asm/static/include/openssl/opensslconf.h @@ -2,7 +2,7 @@ * WARNING: do not edit! * Generated by Makefile from include/openssl/opensslconf.h.in * - * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -120,6 +120,11 @@ extern "C" { # undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); # endif +# elif defined(__SUNPRO_C) +# if (__SUNPRO_C >= 0x5130) +# undef DECLARE_DEPRECATED +# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); +# endif # endif #endif @@ -184,14 +189,14 @@ extern "C" { * The following are cipher-specific, but are part of the public API. */ #if !defined(OPENSSL_SYS_UEFI) -# undef BN_LLONG +# define BN_LLONG /* Only one for the following should be defined */ -# define SIXTY_FOUR_BIT_LONG +# undef SIXTY_FOUR_BIT_LONG # undef SIXTY_FOUR_BIT -# undef THIRTY_TWO_BIT +# define THIRTY_TWO_BIT #endif -#define RC4_INT unsigned char +#define RC4_INT unsigned int #ifdef __cplusplus } diff --git a/no-asm/static/include/openssl/opensslconf.h.in b/no-asm/static/include/openssl/opensslconf.h.in index bc98cad..0627092 100644 --- a/no-asm/static/include/openssl/opensslconf.h.in +++ b/no-asm/static/include/openssl/opensslconf.h.in @@ -1,7 +1,7 @@ /* * {- join("\n * ", @autowarntext) -} * - * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -77,6 +77,11 @@ extern "C" { # undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); # endif +# elif defined(__SUNPRO_C) +# if (__SUNPRO_C >= 0x5130) +# undef DECLARE_DEPRECATED +# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); +# endif # endif #endif diff --git a/no-asm/static/include/openssl/opensslv.h b/no-asm/static/include/openssl/opensslv.h index 17d271f..0cd6b2f 100644 --- a/no-asm/static/include/openssl/opensslv.h +++ b/no-asm/static/include/openssl/opensslv.h @@ -1,5 +1,5 @@ /* - * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -39,8 +39,8 @@ extern "C" { * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for * major minor fix final patch/beta) */ -# define OPENSSL_VERSION_NUMBER 0x1010107fL -# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1g 21 Apr 2020" +# define OPENSSL_VERSION_NUMBER 0x101010bfL +# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1k 25 Mar 2021" /*- * The macros below are to be used for shared library (.so, .dll, ...) diff --git a/no-asm/static/include/openssl/pemerr.h b/no-asm/static/include/openssl/pemerr.h index 0c45918..4f7e357 100644 --- a/no-asm/static/include/openssl/pemerr.h +++ b/no-asm/static/include/openssl/pemerr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -61,6 +61,7 @@ int ERR_load_PEM_strings(void); # define PEM_F_PEM_SIGNFINAL 112 # define PEM_F_PEM_WRITE 113 # define PEM_F_PEM_WRITE_BIO 114 +# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL 147 # define PEM_F_PEM_WRITE_PRIVATEKEY 139 # define PEM_F_PEM_X509_INFO_READ 115 # define PEM_F_PEM_X509_INFO_READ_BIO 116 @@ -99,5 +100,6 @@ int ERR_load_PEM_strings(void); # define PEM_R_UNSUPPORTED_CIPHER 113 # define PEM_R_UNSUPPORTED_ENCRYPTION 114 # define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126 +# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE 110 #endif diff --git a/no-asm/static/include/openssl/ssl.h b/no-asm/static/include/openssl/ssl.h index 6724ccf..fd0c5a9 100644 --- a/no-asm/static/include/openssl/ssl.h +++ b/no-asm/static/include/openssl/ssl.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * Copyright 2005 Nokia. All rights reserved. * @@ -1393,7 +1393,7 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) # define SSL_get1_groups(s, glist) \ SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist)) # define SSL_CTX_set1_groups(ctx, glist, glistlen) \ - SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) + SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist)) # define SSL_CTX_set1_groups_list(ctx, s) \ SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s)) # define SSL_set1_groups(s, glist, glistlen) \ diff --git a/no-asm/static/include/openssl/ssl3.h b/no-asm/static/include/openssl/ssl3.h index 8d01fcc..07effba 100644 --- a/no-asm/static/include/openssl/ssl3.h +++ b/no-asm/static/include/openssl/ssl3.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -292,6 +292,9 @@ extern "C" { # define TLS1_FLAGS_STATELESS 0x0800 +/* Set if extended master secret extension required on renegotiation */ +# define TLS1_FLAGS_REQUIRED_EXTMS 0x1000 + # define SSL3_MT_HELLO_REQUEST 0 # define SSL3_MT_CLIENT_HELLO 1 # define SSL3_MT_SERVER_HELLO 2 diff --git a/no-asm/static/include/openssl/x509.h b/no-asm/static/include/openssl/x509.h index 39ca0ba..3ff86ec 100644 --- a/no-asm/static/include/openssl/x509.h +++ b/no-asm/static/include/openssl/x509.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -478,6 +478,7 @@ void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype, const void **ppval, const X509_ALGOR *algor); void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md); int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b); +int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src); X509_NAME *X509_NAME_dup(X509_NAME *xn); X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne); @@ -679,6 +680,8 @@ X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req); int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name); void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, const X509_ALGOR **palg); +void X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig); +int X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg); int X509_REQ_get_signature_nid(const X509_REQ *req); int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp); int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); @@ -930,7 +933,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) int type, const unsigned char *bytes, int len); -void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, +void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x, const ASN1_OBJECT *obj, int lastpos, int type); X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int atrtype, const void *data, diff --git a/no-asm/static/include/openssl/x509_vfy.h b/no-asm/static/include/openssl/x509_vfy.h index adb8bce..25c79f1 100644 --- a/no-asm/static/include/openssl/x509_vfy.h +++ b/no-asm/static/include/openssl/x509_vfy.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -184,6 +184,10 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth); # define X509_V_ERR_OCSP_VERIFY_NEEDED 73 /* Need OCSP verification */ # define X509_V_ERR_OCSP_VERIFY_FAILED 74 /* Couldn't verify cert through OCSP */ # define X509_V_ERR_OCSP_CERT_UNKNOWN 75 /* Certificate wasn't recognized by the OCSP responder */ +# define X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH 76 +# define X509_V_ERR_NO_ISSUER_PUBLIC_KEY 77 +# define X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM 78 +# define X509_V_ERR_EC_KEY_EXPLICIT_PARAMS 79 /* Certificate verify flags */ diff --git a/no-asm/static/include/openssl/x509err.h b/no-asm/static/include/openssl/x509err.h index 0273853..cd08673 100644 --- a/no-asm/static/include/openssl/x509err.h +++ b/no-asm/static/include/openssl/x509err.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_X509ERR_H # define HEADER_X509ERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -65,6 +63,7 @@ int ERR_load_X509_strings(void); # define X509_F_X509_OBJECT_NEW 150 # define X509_F_X509_PRINT_EX_FP 118 # define X509_F_X509_PUBKEY_DECODE 148 +# define X509_F_X509_PUBKEY_GET 161 # define X509_F_X509_PUBKEY_GET0 119 # define X509_F_X509_PUBKEY_SET 120 # define X509_F_X509_REQ_CHECK_PRIVATE_KEY 144 diff --git a/no-asm/static/include/openssl/x509v3.h b/no-asm/static/include/openssl/x509v3.h index 6c6eca3..90fa359 100644 --- a/no-asm/static/include/openssl/x509v3.h +++ b/no-asm/static/include/openssl/x509v3.h @@ -1,5 +1,5 @@ /* - * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -364,8 +364,9 @@ struct ISSUING_DIST_POINT_st { # define EXFLAG_INVALID_POLICY 0x800 # define EXFLAG_FRESHEST 0x1000 -/* Self signed */ -# define EXFLAG_SS 0x2000 +# define EXFLAG_SS 0x2000 /* cert is apparently self-signed */ + +# define EXFLAG_NO_FINGERPRINT 0x100000 # define KU_DIGITAL_SIGNATURE 0x0080 # define KU_NON_REPUDIATION 0x0040 diff --git a/no-asm/static/lib/arm/libcrypto.a b/no-asm/static/lib/arm/libcrypto.a index 16e05a8..d383f2f 100644 Binary files a/no-asm/static/lib/arm/libcrypto.a and b/no-asm/static/lib/arm/libcrypto.a differ diff --git a/no-asm/static/lib/arm/libssl.a b/no-asm/static/lib/arm/libssl.a index a645aae..bd8be82 100644 Binary files a/no-asm/static/lib/arm/libssl.a and b/no-asm/static/lib/arm/libssl.a differ diff --git a/no-asm/static/lib/arm64/libcrypto.a b/no-asm/static/lib/arm64/libcrypto.a index 0ba74bf..64175cf 100644 Binary files a/no-asm/static/lib/arm64/libcrypto.a and b/no-asm/static/lib/arm64/libcrypto.a differ diff --git a/no-asm/static/lib/arm64/libssl.a b/no-asm/static/lib/arm64/libssl.a index 2ab2683..ffcd1b6 100644 Binary files a/no-asm/static/lib/arm64/libssl.a and b/no-asm/static/lib/arm64/libssl.a differ diff --git a/no-asm/static/lib/multiabi/libcrypto_arm64-v8a.a b/no-asm/static/lib/multiabi/libcrypto_arm64-v8a.a index 0ba74bf..64175cf 100644 Binary files a/no-asm/static/lib/multiabi/libcrypto_arm64-v8a.a and b/no-asm/static/lib/multiabi/libcrypto_arm64-v8a.a differ diff --git a/no-asm/static/lib/multiabi/libcrypto_armeabi-v7a.a b/no-asm/static/lib/multiabi/libcrypto_armeabi-v7a.a index 16e05a8..d383f2f 100644 Binary files a/no-asm/static/lib/multiabi/libcrypto_armeabi-v7a.a and b/no-asm/static/lib/multiabi/libcrypto_armeabi-v7a.a differ diff --git a/no-asm/static/lib/multiabi/libcrypto_x86.a b/no-asm/static/lib/multiabi/libcrypto_x86.a index 4996867..86acddb 100644 Binary files a/no-asm/static/lib/multiabi/libcrypto_x86.a and b/no-asm/static/lib/multiabi/libcrypto_x86.a differ diff --git a/no-asm/static/lib/multiabi/libcrypto_x86_64.a b/no-asm/static/lib/multiabi/libcrypto_x86_64.a index f58cd74..1393bff 100644 Binary files a/no-asm/static/lib/multiabi/libcrypto_x86_64.a and b/no-asm/static/lib/multiabi/libcrypto_x86_64.a differ diff --git a/no-asm/static/lib/multiabi/libssl_arm64-v8a.a b/no-asm/static/lib/multiabi/libssl_arm64-v8a.a index 2ab2683..ffcd1b6 100644 Binary files a/no-asm/static/lib/multiabi/libssl_arm64-v8a.a and b/no-asm/static/lib/multiabi/libssl_arm64-v8a.a differ diff --git a/no-asm/static/lib/multiabi/libssl_armeabi-v7a.a b/no-asm/static/lib/multiabi/libssl_armeabi-v7a.a index a645aae..bd8be82 100644 Binary files a/no-asm/static/lib/multiabi/libssl_armeabi-v7a.a and b/no-asm/static/lib/multiabi/libssl_armeabi-v7a.a differ diff --git a/no-asm/static/lib/multiabi/libssl_x86.a b/no-asm/static/lib/multiabi/libssl_x86.a index 29a00dc..cd64fac 100644 Binary files a/no-asm/static/lib/multiabi/libssl_x86.a and b/no-asm/static/lib/multiabi/libssl_x86.a differ diff --git a/no-asm/static/lib/multiabi/libssl_x86_64.a b/no-asm/static/lib/multiabi/libssl_x86_64.a index e15ab1d..360b1fe 100644 Binary files a/no-asm/static/lib/multiabi/libssl_x86_64.a and b/no-asm/static/lib/multiabi/libssl_x86_64.a differ diff --git a/no-asm/static/lib/x86/libcrypto.a b/no-asm/static/lib/x86/libcrypto.a index 4996867..86acddb 100644 Binary files a/no-asm/static/lib/x86/libcrypto.a and b/no-asm/static/lib/x86/libcrypto.a differ diff --git a/no-asm/static/lib/x86/libssl.a b/no-asm/static/lib/x86/libssl.a index 29a00dc..cd64fac 100644 Binary files a/no-asm/static/lib/x86/libssl.a and b/no-asm/static/lib/x86/libssl.a differ diff --git a/no-asm/static/lib/x86_64/libcrypto.a b/no-asm/static/lib/x86_64/libcrypto.a index f58cd74..1393bff 100644 Binary files a/no-asm/static/lib/x86_64/libcrypto.a and b/no-asm/static/lib/x86_64/libcrypto.a differ diff --git a/no-asm/static/lib/x86_64/libssl.a b/no-asm/static/lib/x86_64/libssl.a index e15ab1d..360b1fe 100644 Binary files a/no-asm/static/lib/x86_64/libssl.a and b/no-asm/static/lib/x86_64/libssl.a differ diff --git a/static/include/openssl/asn1err.h b/static/include/openssl/asn1err.h index faed5a5..e1ad1fe 100644 --- a/static/include/openssl/asn1err.h +++ b/static/include/openssl/asn1err.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_ASN1ERR_H # define HEADER_ASN1ERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -53,6 +51,7 @@ int ERR_load_ASN1_strings(void); # define ASN1_F_ASN1_ITEM_DUP 191 # define ASN1_F_ASN1_ITEM_EMBED_D2I 120 # define ASN1_F_ASN1_ITEM_EMBED_NEW 121 +# define ASN1_F_ASN1_ITEM_EX_I2D 144 # define ASN1_F_ASN1_ITEM_FLAGS_I2D 118 # define ASN1_F_ASN1_ITEM_I2D_BIO 192 # define ASN1_F_ASN1_ITEM_I2D_FP 193 @@ -145,6 +144,7 @@ int ERR_load_ASN1_strings(void); # define ASN1_R_ASN1_SIG_PARSE_ERROR 204 # define ASN1_R_AUX_ERROR 100 # define ASN1_R_BAD_OBJECT_HEADER 102 +# define ASN1_R_BAD_TEMPLATE 230 # define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 214 # define ASN1_R_BN_LIB 105 # define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106 diff --git a/static/include/openssl/bn.h b/static/include/openssl/bn.h index 8af05d0..d877660 100644 --- a/static/include/openssl/bn.h +++ b/static/include/openssl/bn.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -56,7 +56,7 @@ extern "C" { * avoid leaking exponent information through timing, * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, * BN_div() will call BN_div_no_branch, - * BN_mod_inverse() will call BN_mod_inverse_no_branch. + * BN_mod_inverse() will call bn_mod_inverse_no_branch. */ # define BN_FLG_CONSTTIME 0x04 # define BN_FLG_SECURE 0x08 diff --git a/static/include/openssl/e_os2.h b/static/include/openssl/e_os2.h index 97a776c..cf308ee 100644 --- a/static/include/openssl/e_os2.h +++ b/static/include/openssl/e_os2.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -241,7 +241,7 @@ typedef UINT64 uint64_t; defined(__osf__) || defined(__sgi) || defined(__hpux) || \ defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__) # include -# elif defined(_MSC_VER) && _MSC_VER<=1500 +# elif defined(_MSC_VER) && _MSC_VER<1600 /* * minimally required typdefs for systems not supporting inttypes.h or * stdint.h: currently just older VC++ diff --git a/static/include/openssl/ec.h b/static/include/openssl/ec.h index 5af9ebd..44cc139 100644 --- a/static/include/openssl/ec.h +++ b/static/include/openssl/ec.h @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -829,6 +829,8 @@ void EC_KEY_set_flags(EC_KEY *key, int flags); void EC_KEY_clear_flags(EC_KEY *key, int flags); +int EC_KEY_decoded_from_explicit_params(const EC_KEY *key); + /** Creates a new EC_KEY object using a named curve as underlying * EC_GROUP object. * \param nid NID of the named curve. diff --git a/static/include/openssl/ecerr.h b/static/include/openssl/ecerr.h index f7b9183..5173811 100644 --- a/static/include/openssl/ecerr.h +++ b/static/include/openssl/ecerr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -243,6 +243,7 @@ int ERR_load_EC_strings(void); # define EC_R_LADDER_POST_FAILURE 136 # define EC_R_LADDER_PRE_FAILURE 153 # define EC_R_LADDER_STEP_FAILURE 162 +# define EC_R_MISSING_OID 167 # define EC_R_MISSING_PARAMETERS 124 # define EC_R_MISSING_PRIVATE_KEY 125 # define EC_R_NEED_NEW_SETUP_VALUES 157 diff --git a/static/include/openssl/evperr.h b/static/include/openssl/evperr.h index d2b26ea..b4ea90a 100644 --- a/static/include/openssl/evperr.h +++ b/static/include/openssl/evperr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_EVPERR_H # define HEADER_EVPERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -179,6 +177,7 @@ int ERR_load_EVP_strings(void); # define EVP_R_ONLY_ONESHOT_SUPPORTED 177 # define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150 # define EVP_R_OPERATON_NOT_INITIALIZED 151 +# define EVP_R_OUTPUT_WOULD_OVERFLOW 184 # define EVP_R_PARTIALLY_OVERLAPPING 162 # define EVP_R_PBKDF2_ERROR 181 # define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179 diff --git a/static/include/openssl/obj_mac.h b/static/include/openssl/obj_mac.h index 483fc05..eb812ed 100644 --- a/static/include/openssl/obj_mac.h +++ b/static/include/openssl/obj_mac.h @@ -2,7 +2,7 @@ * WARNING: do not edit! * Generated by crypto/objects/objects.pl * - * Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. * Licensed under the OpenSSL license (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 diff --git a/static/include/openssl/opensslconf.h b/static/include/openssl/opensslconf.h index 1b0705d..e028cde 100644 --- a/static/include/openssl/opensslconf.h +++ b/static/include/openssl/opensslconf.h @@ -2,7 +2,7 @@ * WARNING: do not edit! * Generated by Makefile from include/openssl/opensslconf.h.in * - * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -117,6 +117,11 @@ extern "C" { # undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); # endif +# elif defined(__SUNPRO_C) +# if (__SUNPRO_C >= 0x5130) +# undef DECLARE_DEPRECATED +# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); +# endif # endif #endif @@ -181,14 +186,14 @@ extern "C" { * The following are cipher-specific, but are part of the public API. */ #if !defined(OPENSSL_SYS_UEFI) -# undef BN_LLONG +# define BN_LLONG /* Only one for the following should be defined */ -# define SIXTY_FOUR_BIT_LONG +# undef SIXTY_FOUR_BIT_LONG # undef SIXTY_FOUR_BIT -# undef THIRTY_TWO_BIT +# define THIRTY_TWO_BIT #endif -#define RC4_INT unsigned char +#define RC4_INT unsigned int #ifdef __cplusplus } diff --git a/static/include/openssl/opensslconf.h.in b/static/include/openssl/opensslconf.h.in index bc98cad..0627092 100644 --- a/static/include/openssl/opensslconf.h.in +++ b/static/include/openssl/opensslconf.h.in @@ -1,7 +1,7 @@ /* * {- join("\n * ", @autowarntext) -} * - * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -77,6 +77,11 @@ extern "C" { # undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); # endif +# elif defined(__SUNPRO_C) +# if (__SUNPRO_C >= 0x5130) +# undef DECLARE_DEPRECATED +# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); +# endif # endif #endif diff --git a/static/include/openssl/opensslv.h b/static/include/openssl/opensslv.h index 17d271f..0cd6b2f 100644 --- a/static/include/openssl/opensslv.h +++ b/static/include/openssl/opensslv.h @@ -1,5 +1,5 @@ /* - * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -39,8 +39,8 @@ extern "C" { * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for * major minor fix final patch/beta) */ -# define OPENSSL_VERSION_NUMBER 0x1010107fL -# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1g 21 Apr 2020" +# define OPENSSL_VERSION_NUMBER 0x101010bfL +# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1k 25 Mar 2021" /*- * The macros below are to be used for shared library (.so, .dll, ...) diff --git a/static/include/openssl/pemerr.h b/static/include/openssl/pemerr.h index 0c45918..4f7e357 100644 --- a/static/include/openssl/pemerr.h +++ b/static/include/openssl/pemerr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -61,6 +61,7 @@ int ERR_load_PEM_strings(void); # define PEM_F_PEM_SIGNFINAL 112 # define PEM_F_PEM_WRITE 113 # define PEM_F_PEM_WRITE_BIO 114 +# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL 147 # define PEM_F_PEM_WRITE_PRIVATEKEY 139 # define PEM_F_PEM_X509_INFO_READ 115 # define PEM_F_PEM_X509_INFO_READ_BIO 116 @@ -99,5 +100,6 @@ int ERR_load_PEM_strings(void); # define PEM_R_UNSUPPORTED_CIPHER 113 # define PEM_R_UNSUPPORTED_ENCRYPTION 114 # define PEM_R_UNSUPPORTED_KEY_COMPONENTS 126 +# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE 110 #endif diff --git a/static/include/openssl/ssl.h b/static/include/openssl/ssl.h index 6724ccf..fd0c5a9 100644 --- a/static/include/openssl/ssl.h +++ b/static/include/openssl/ssl.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * Copyright 2005 Nokia. All rights reserved. * @@ -1393,7 +1393,7 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) # define SSL_get1_groups(s, glist) \ SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist)) # define SSL_CTX_set1_groups(ctx, glist, glistlen) \ - SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist)) + SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist)) # define SSL_CTX_set1_groups_list(ctx, s) \ SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s)) # define SSL_set1_groups(s, glist, glistlen) \ diff --git a/static/include/openssl/ssl3.h b/static/include/openssl/ssl3.h index 8d01fcc..07effba 100644 --- a/static/include/openssl/ssl3.h +++ b/static/include/openssl/ssl3.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -292,6 +292,9 @@ extern "C" { # define TLS1_FLAGS_STATELESS 0x0800 +/* Set if extended master secret extension required on renegotiation */ +# define TLS1_FLAGS_REQUIRED_EXTMS 0x1000 + # define SSL3_MT_HELLO_REQUEST 0 # define SSL3_MT_CLIENT_HELLO 1 # define SSL3_MT_SERVER_HELLO 2 diff --git a/static/include/openssl/x509.h b/static/include/openssl/x509.h index 39ca0ba..3ff86ec 100644 --- a/static/include/openssl/x509.h +++ b/static/include/openssl/x509.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * * Licensed under the OpenSSL license (the "License"). You may not use @@ -478,6 +478,7 @@ void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype, const void **ppval, const X509_ALGOR *algor); void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md); int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b); +int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src); X509_NAME *X509_NAME_dup(X509_NAME *xn); X509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne); @@ -679,6 +680,8 @@ X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req); int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name); void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig, const X509_ALGOR **palg); +void X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig); +int X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg); int X509_REQ_get_signature_nid(const X509_REQ *req); int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp); int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); @@ -930,7 +933,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) int type, const unsigned char *bytes, int len); -void *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, +void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x, const ASN1_OBJECT *obj, int lastpos, int type); X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int atrtype, const void *data, diff --git a/static/include/openssl/x509_vfy.h b/static/include/openssl/x509_vfy.h index adb8bce..25c79f1 100644 --- a/static/include/openssl/x509_vfy.h +++ b/static/include/openssl/x509_vfy.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -184,6 +184,10 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth); # define X509_V_ERR_OCSP_VERIFY_NEEDED 73 /* Need OCSP verification */ # define X509_V_ERR_OCSP_VERIFY_FAILED 74 /* Couldn't verify cert through OCSP */ # define X509_V_ERR_OCSP_CERT_UNKNOWN 75 /* Certificate wasn't recognized by the OCSP responder */ +# define X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH 76 +# define X509_V_ERR_NO_ISSUER_PUBLIC_KEY 77 +# define X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM 78 +# define X509_V_ERR_EC_KEY_EXPLICIT_PARAMS 79 /* Certificate verify flags */ diff --git a/static/include/openssl/x509err.h b/static/include/openssl/x509err.h index 0273853..cd08673 100644 --- a/static/include/openssl/x509err.h +++ b/static/include/openssl/x509err.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -11,9 +11,7 @@ #ifndef HEADER_X509ERR_H # define HEADER_X509ERR_H -# ifndef HEADER_SYMHACKS_H -# include -# endif +# include # ifdef __cplusplus extern "C" @@ -65,6 +63,7 @@ int ERR_load_X509_strings(void); # define X509_F_X509_OBJECT_NEW 150 # define X509_F_X509_PRINT_EX_FP 118 # define X509_F_X509_PUBKEY_DECODE 148 +# define X509_F_X509_PUBKEY_GET 161 # define X509_F_X509_PUBKEY_GET0 119 # define X509_F_X509_PUBKEY_SET 120 # define X509_F_X509_REQ_CHECK_PRIVATE_KEY 144 diff --git a/static/include/openssl/x509v3.h b/static/include/openssl/x509v3.h index 6c6eca3..90fa359 100644 --- a/static/include/openssl/x509v3.h +++ b/static/include/openssl/x509v3.h @@ -1,5 +1,5 @@ /* - * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -364,8 +364,9 @@ struct ISSUING_DIST_POINT_st { # define EXFLAG_INVALID_POLICY 0x800 # define EXFLAG_FRESHEST 0x1000 -/* Self signed */ -# define EXFLAG_SS 0x2000 +# define EXFLAG_SS 0x2000 /* cert is apparently self-signed */ + +# define EXFLAG_NO_FINGERPRINT 0x100000 # define KU_DIGITAL_SIGNATURE 0x0080 # define KU_NON_REPUDIATION 0x0040 diff --git a/static/lib/arm/libcrypto.a b/static/lib/arm/libcrypto.a index 5268b1b..60fca06 100644 Binary files a/static/lib/arm/libcrypto.a and b/static/lib/arm/libcrypto.a differ diff --git a/static/lib/arm/libssl.a b/static/lib/arm/libssl.a index 2404968..0698640 100644 Binary files a/static/lib/arm/libssl.a and b/static/lib/arm/libssl.a differ diff --git a/static/lib/arm64/libcrypto.a b/static/lib/arm64/libcrypto.a index 6f7a65c..0b5fb5e 100644 Binary files a/static/lib/arm64/libcrypto.a and b/static/lib/arm64/libcrypto.a differ diff --git a/static/lib/arm64/libssl.a b/static/lib/arm64/libssl.a index a7d5caf..c15c6a0 100644 Binary files a/static/lib/arm64/libssl.a and b/static/lib/arm64/libssl.a differ diff --git a/static/lib/multiabi/libcrypto_arm64-v8a.a b/static/lib/multiabi/libcrypto_arm64-v8a.a index 6f7a65c..0b5fb5e 100644 Binary files a/static/lib/multiabi/libcrypto_arm64-v8a.a and b/static/lib/multiabi/libcrypto_arm64-v8a.a differ diff --git a/static/lib/multiabi/libcrypto_armeabi-v7a.a b/static/lib/multiabi/libcrypto_armeabi-v7a.a index 5268b1b..60fca06 100644 Binary files a/static/lib/multiabi/libcrypto_armeabi-v7a.a and b/static/lib/multiabi/libcrypto_armeabi-v7a.a differ diff --git a/static/lib/multiabi/libcrypto_x86.a b/static/lib/multiabi/libcrypto_x86.a index 9e22473..a620ec8 100644 Binary files a/static/lib/multiabi/libcrypto_x86.a and b/static/lib/multiabi/libcrypto_x86.a differ diff --git a/static/lib/multiabi/libcrypto_x86_64.a b/static/lib/multiabi/libcrypto_x86_64.a index adbcaff..21fac25 100644 Binary files a/static/lib/multiabi/libcrypto_x86_64.a and b/static/lib/multiabi/libcrypto_x86_64.a differ diff --git a/static/lib/multiabi/libssl_arm64-v8a.a b/static/lib/multiabi/libssl_arm64-v8a.a index a7d5caf..c15c6a0 100644 Binary files a/static/lib/multiabi/libssl_arm64-v8a.a and b/static/lib/multiabi/libssl_arm64-v8a.a differ diff --git a/static/lib/multiabi/libssl_armeabi-v7a.a b/static/lib/multiabi/libssl_armeabi-v7a.a index 2404968..0698640 100644 Binary files a/static/lib/multiabi/libssl_armeabi-v7a.a and b/static/lib/multiabi/libssl_armeabi-v7a.a differ diff --git a/static/lib/multiabi/libssl_x86.a b/static/lib/multiabi/libssl_x86.a index 335c219..6508ace 100644 Binary files a/static/lib/multiabi/libssl_x86.a and b/static/lib/multiabi/libssl_x86.a differ diff --git a/static/lib/multiabi/libssl_x86_64.a b/static/lib/multiabi/libssl_x86_64.a index 412c1db..2c371f4 100644 Binary files a/static/lib/multiabi/libssl_x86_64.a and b/static/lib/multiabi/libssl_x86_64.a differ diff --git a/static/lib/x86/libcrypto.a b/static/lib/x86/libcrypto.a index 9e22473..a620ec8 100644 Binary files a/static/lib/x86/libcrypto.a and b/static/lib/x86/libcrypto.a differ diff --git a/static/lib/x86/libssl.a b/static/lib/x86/libssl.a index 335c219..6508ace 100644 Binary files a/static/lib/x86/libssl.a and b/static/lib/x86/libssl.a differ diff --git a/static/lib/x86_64/libcrypto.a b/static/lib/x86_64/libcrypto.a index adbcaff..21fac25 100644 Binary files a/static/lib/x86_64/libcrypto.a and b/static/lib/x86_64/libcrypto.a differ diff --git a/static/lib/x86_64/libssl.a b/static/lib/x86_64/libssl.a index 412c1db..2c371f4 100644 Binary files a/static/lib/x86_64/libssl.a and b/static/lib/x86_64/libssl.a differ