dd_rescue/dd_rescue-ossl3-evpcipherctx.diff
Kurt Garloff 2f1bd26104 Accepting request 1195603 from home:garloff:branches:Base:System
- Avoid setting _FORTIFY_SOURCE in configure script, it may
  conflict with flags passed in otherwise (e.g. rpmbuild).
- Update to dd_rescue-1.99.14:
  * Drop patches dd_rescue-u-emptyout-segfault.diff:,
    dd_rescue-fuzz-test-more-err.diff:,
    dd_rescue-md5-unaligned-armv7.diff:,
    dd_rescue-ossl3-evpcipherctx.diff: All integrated upstream.
  * Fix detection of LFS function availability for musl.
  * Include headers and settings to make it work on musl.
  * Replaced basename() with mybasename.h.
  * Prefetch lookup table for sha hashing. 
  * Fix verbose output when falling back to small blocksize.
  * Fix clearing of errno (unaligned writes at EOF on musl)
- Final tarball with fixes for Android Makefiles.

OBS-URL: https://build.opensuse.org/request/show/1195603
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=80
2024-08-30 19:31:38 +00:00

27 lines
1020 B
Diff

commit ce925927fdcc5e41f1a8975f31405f913a6583d1
Author: Kurt Garloff <kurt@garloff.de>
Date: Wed Feb 28 22:49:18 2024 +0100
Adjust struct _evp_cipher_ctx_st to openssl-3.0.6+.
This is only done if the version is indeed >= 3.0.6.
It's only relevant on 32bit, as the alignment rules on 64bit
do hide this difference.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
diff --git a/aes_ossl11.c b/aes_ossl11.c
index 2fa4468..e450f4e 100644
--- a/aes_ossl11.c
+++ b/aes_ossl11.c
@@ -45,6 +45,9 @@ struct _evp_cipher_ctx_st {
/* FIXME: Should this even exist? It appears unused */
void *app_data; /* application stuff */
int key_len; /* May change for variable length cipher */
+#if OPENSSL_VERSION_MAJOR >= 3 && (OPENSSL_VERSION_MINOR > 0 || OPENSSL_VERSION_PATCH >= 6)
+ int iv_len; /* IV length */
+#endif
unsigned long flags; /* Various flags */
void *cipher_data; /* per EVP data */
int final_used;