57
57
#if OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_1_1_0_RTM
58
58
59
59
// Remove problematic #defines
60
+ #undef BN_abs_is_word
61
+ #undef BN_is_odd
62
+ #undef BN_is_one
60
63
#undef BN_is_zero
61
64
#undef SSL_get_state
62
65
#undef SSL_is_init_finished
@@ -210,15 +213,28 @@ int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md, size_t len);
210
213
FALLBACK_FUNCTION(BIO_up_ref) \
211
214
REQUIRED_FUNCTION(BIO_s_mem) \
212
215
REQUIRED_FUNCTION(BIO_write) \
216
+ FALLBACK_FUNCTION(BN_abs_is_word) \
213
217
REQUIRED_FUNCTION(BN_bin2bn) \
214
218
REQUIRED_FUNCTION(BN_bn2bin) \
215
219
REQUIRED_FUNCTION(BN_clear_free) \
220
+ REQUIRED_FUNCTION(BN_cmp) \
221
+ REQUIRED_FUNCTION(BN_div) \
216
222
REQUIRED_FUNCTION(BN_dup) \
217
223
REQUIRED_FUNCTION(BN_free) \
224
+ REQUIRED_FUNCTION(BN_gcd) \
225
+ FALLBACK_FUNCTION(BN_is_odd) \
226
+ FALLBACK_FUNCTION(BN_is_one) \
218
227
FALLBACK_FUNCTION(BN_is_zero) \
228
+ REQUIRED_FUNCTION(BN_mod_inverse) \
229
+ REQUIRED_FUNCTION(BN_mod_mul) \
230
+ REQUIRED_FUNCTION(BN_mul) \
219
231
REQUIRED_FUNCTION(BN_new) \
220
232
REQUIRED_FUNCTION(BN_num_bits) \
221
233
REQUIRED_FUNCTION(BN_set_word) \
234
+ REQUIRED_FUNCTION(BN_sub) \
235
+ REQUIRED_FUNCTION(BN_value_one) \
236
+ REQUIRED_FUNCTION(BN_CTX_new) \
237
+ REQUIRED_FUNCTION(BN_CTX_free) \
222
238
LEGACY_FUNCTION(CRYPTO_add_lock) \
223
239
REQUIRED_FUNCTION(CRYPTO_free) \
224
240
REQUIRED_FUNCTION(CRYPTO_get_ex_new_index) \
@@ -496,6 +512,7 @@ int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md, size_t len);
496
512
REQUIRED_FUNCTION(RSA_free) \
497
513
REQUIRED_FUNCTION(RSA_generate_key_ex) \
498
514
REQUIRED_FUNCTION(RSA_get_method) \
515
+ FALLBACK_FUNCTION(RSA_get_multi_prime_extra_count) \
499
516
FALLBACK_FUNCTION(RSA_get0_crt_params) \
500
517
FALLBACK_FUNCTION(RSA_get0_factors) \
501
518
FALLBACK_FUNCTION(RSA_get0_key) \
@@ -722,15 +739,28 @@ FOR_ALL_OPENSSL_FUNCTIONS
722
739
#define BIO_up_ref BIO_up_ref_ptr
723
740
#define BIO_s_mem BIO_s_mem_ptr
724
741
#define BIO_write BIO_write_ptr
742
+ #define BN_abs_is_word BN_abs_is_word_ptr
725
743
#define BN_bin2bn BN_bin2bn_ptr
726
744
#define BN_bn2bin BN_bn2bin_ptr
727
745
#define BN_clear_free BN_clear_free_ptr
746
+ #define BN_cmp BN_cmp_ptr
747
+ #define BN_div BN_div_ptr
728
748
#define BN_dup BN_dup_ptr
729
749
#define BN_free BN_free_ptr
750
+ #define BN_gcd BN_gcd_ptr
751
+ #define BN_is_odd BN_is_odd_ptr
752
+ #define BN_is_one BN_is_one_ptr
730
753
#define BN_is_zero BN_is_zero_ptr
754
+ #define BN_mod_inverse BN_mod_inverse_ptr
755
+ #define BN_mod_mul BN_mod_mul_ptr
756
+ #define BN_mul BN_mul_ptr
731
757
#define BN_new BN_new_ptr
732
758
#define BN_num_bits BN_num_bits_ptr
733
759
#define BN_set_word BN_set_word_ptr
760
+ #define BN_sub BN_sub_ptr
761
+ #define BN_value_one BN_value_one_ptr
762
+ #define BN_CTX_free BN_CTX_free_ptr
763
+ #define BN_CTX_new BN_CTX_new_ptr
734
764
#define CRYPTO_add_lock CRYPTO_add_lock_ptr
735
765
#define CRYPTO_free CRYPTO_free_ptr
736
766
#define CRYPTO_get_ex_new_index CRYPTO_get_ex_new_index_ptr
@@ -1011,6 +1041,7 @@ FOR_ALL_OPENSSL_FUNCTIONS
1011
1041
#define RSA_get0_factors RSA_get0_factors_ptr
1012
1042
#define RSA_get0_key RSA_get0_key_ptr
1013
1043
#define RSA_get_method RSA_get_method_ptr
1044
+ #define RSA_get_multi_prime_extra_count RSA_get_multi_prime_extra_count_ptr
1014
1045
#define RSA_meth_get_flags RSA_meth_get_flags_ptr
1015
1046
#define RSA_new RSA_new_ptr
1016
1047
#define RSA_pkey_ctx_ctrl RSA_pkey_ctx_ctrl_ptr
@@ -1270,6 +1301,9 @@ FOR_ALL_OPENSSL_FUNCTIONS
1270
1301
1271
1302
// Alias "future" API to the local_ version.
1272
1303
#define ASN1_TIME_to_tm local_ASN1_TIME_to_tm
1304
+ #define BN_abs_is_word local_BN_abs_is_word
1305
+ #define BN_is_odd local_BN_is_odd
1306
+ #define BN_is_one local_BN_is_one
1273
1307
#define BN_is_zero local_BN_is_zero
1274
1308
#define BIO_up_ref local_BIO_up_ref
1275
1309
#define DSA_get0_key local_DSA_get0_key
@@ -1287,6 +1321,7 @@ FOR_ALL_OPENSSL_FUNCTIONS
1287
1321
#define HMAC_CTX_free local_HMAC_CTX_free
1288
1322
#define HMAC_CTX_new local_HMAC_CTX_new
1289
1323
#define OpenSSL_version_num local_OpenSSL_version_num
1324
+ #define RSA_get_multi_prime_extra_count local_RSA_get_multi_prime_extra_count
1290
1325
#define RSA_get0_crt_params local_RSA_get0_crt_params
1291
1326
#define RSA_get0_factors local_RSA_get0_factors
1292
1327
#define RSA_get0_key local_RSA_get0_key
0 commit comments