From dc0e9a35fa89c262833d6b498108acc58a70bdcb Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 8 Dec 2014 14:19:26 +0000 Subject: [PATCH] Fix no-ocb for Windows Reviewed-by: Tim Hudson --- util/libeay.num | 26 +++++++++++++------------- util/mk1mf.pl | 1 + util/mkdef.pl | 8 ++++++-- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/util/libeay.num b/util/libeay.num index 6859081164..03f0d39c06 100755 --- a/util/libeay.num +++ b/util/libeay.num @@ -4515,21 +4515,21 @@ i2s_ASN1_IA5STRING 4874 EXIST::FUNCTION: s2i_ASN1_IA5STRING 4875 EXIST::FUNCTION: FIPS_dsa_sign_ctx 4876 NOEXIST::FUNCTION: CRYPTO_ocb128_release 4878 NOEXIST::FUNCTION: -CRYPTO_ocb128_new 4879 EXIST::FUNCTION: -CRYPTO_ocb128_finish 4880 EXIST::FUNCTION: -EVP_aes_256_ocb 4881 EXIST::FUNCTION:AES -CRYPTO_ocb128_setiv 4882 EXIST::FUNCTION: -CRYPTO_ocb128_aad 4883 EXIST::FUNCTION: -CRYPTO_ocb128_decrypt 4884 EXIST::FUNCTION: -CRYPTO_ocb128_tag 4885 EXIST::FUNCTION: -EVP_aes_192_ocb 4886 EXIST::FUNCTION:AES -EVP_aes_128_ocb 4887 EXIST::FUNCTION:AES -CRYPTO_ocb128_init 4888 EXIST::FUNCTION: -CRYPTO_ocb128_encrypt 4889 EXIST::FUNCTION: -CRYPTO_ocb128_copy_ctx 4890 EXIST::FUNCTION: +CRYPTO_ocb128_new 4879 EXIST::FUNCTION:OCB +CRYPTO_ocb128_finish 4880 EXIST::FUNCTION:OCB +EVP_aes_256_ocb 4881 EXIST::FUNCTION:AES,OCB +CRYPTO_ocb128_setiv 4882 EXIST::FUNCTION:OCB +CRYPTO_ocb128_aad 4883 EXIST::FUNCTION:OCB +CRYPTO_ocb128_decrypt 4884 EXIST::FUNCTION:OCB +CRYPTO_ocb128_tag 4885 EXIST::FUNCTION:OCB +EVP_aes_192_ocb 4886 EXIST::FUNCTION:AES,OCB +EVP_aes_128_ocb 4887 EXIST::FUNCTION:AES,OCB +CRYPTO_ocb128_init 4888 EXIST::FUNCTION:OCB +CRYPTO_ocb128_encrypt 4889 EXIST::FUNCTION:OCB +CRYPTO_ocb128_copy_ctx 4890 EXIST::FUNCTION:OCB BN_is_word 4891 EXIST::FUNCTION: BN_GENCB_set 4892 EXIST::FUNCTION: -CRYPTO_ocb128_cleanup 4893 EXIST::FUNCTION: +CRYPTO_ocb128_cleanup 4893 EXIST::FUNCTION:OCB BN_GENCB_set_old 4894 EXIST::FUNCTION: BN_is_zero 4895 EXIST::FUNCTION: BN_with_flags 4896 EXIST::FUNCTION: diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 5424ed543c..01329b74ef 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1457,6 +1457,7 @@ sub read_options "no-ssl-trace" => 0, "no-unit-test" => 0, "no-deprecated" => 0, + "no-ocb" => 0, "fips" => \$fips, "fipscanisterbuild" => [\$fips, \$fipscanisterbuild], "fipscanisteronly" => [\$fips, \$fipscanisterbuild, \$fipscanisteronly], diff --git a/util/mkdef.pl b/util/mkdef.pl index 1dbd555797..b67d14be57 100755 --- a/util/mkdef.pl +++ b/util/mkdef.pl @@ -120,7 +120,9 @@ my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF", # SSL TRACE "SSL_TRACE", # Unit testing - "UNIT_TEST"); + "UNIT_TEST", + # OCB mode + "OCB"); my $options=""; open(IN,"