]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Set RC4 defines on libcrypto/liblegacy
authorTomas Mraz <tomas@openssl.org>
Thu, 8 Jun 2023 08:50:52 +0000 (10:50 +0200)
committerTomas Mraz <tomas@openssl.org>
Sat, 10 Jun 2023 11:01:58 +0000 (13:01 +0200)
Also add missing prototype for rc4_md5_enc.

Fixes #21150

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21153)

(cherry picked from commit 58e8af4cecd23dbea2e6b061ab68190b38d64145)

crypto/rc4/build.info
providers/implementations/ciphers/cipher_rc4_hmac_md5.h

index 68b3c73f55b04feb339a4e137602f447372d10d7..c9c81f87dabf8afda56e2dc80f9526c83fe79c72 100644 (file)
@@ -21,10 +21,15 @@ SOURCE[../../libcrypto]=$RC4ASM
 
 # When all deprecated symbols are removed, libcrypto doesn't export the
 # rc4 functions, so we must include them directly in liblegacy.a
-IF[{- $disabled{'deprecated-3.0'} && !$disabled{module} && !$disabled{shared} -}]
+IF[{- !$disabled{module} && !$disabled{shared} -}]
   SOURCE[../../providers/liblegacy.a]=$RC4ASM
 ENDIF
 
+# Implementations are now spread across several libraries, so the defines
+# need to be applied to all affected libraries and modules.
+DEFINE[../../libcrypto]=$RC4DEF
+DEFINE[../../providers/liblegacy.a]=$RC4DEF
+
 GENERATE[rc4-586.S]=asm/rc4-586.pl
 DEPEND[rc4-586.S]=../perlasm/x86asm.pl
 
index 1697aabbf39bcba8d074c54ae4c75b392114d2f6..c79e5ad6dfb0f3c57d5fcd6c2e057874f9832dae 100644 (file)
@@ -31,3 +31,6 @@ typedef struct prov_cipher_hw_rc4_hmac_md5_st {
 } PROV_CIPHER_HW_RC4_HMAC_MD5;
 
 const PROV_CIPHER_HW *ossl_prov_cipher_hw_rc4_hmac_md5(size_t keybits);
+
+void rc4_md5_enc(RC4_KEY *key, const void *in0, void *out,
+                 MD5_CTX *ctx, const void *inp, size_t blocks);