From 5634f22d2b3423b7988d7ca932846d8daa5e34f2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 19 May 2017 17:24:22 +0200 Subject: [PATCH] TT#12308 Do not access the OpenSSL BIO struct directly This has become an opaque struct in latest versions, use instead the accessor that is available already in Debian jessie. Change-Id: I2a5e17f91707871343b0b358fd195db507d7e43b --- .../fix-build-with-newer-openssl.patch | 19 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 20 insertions(+) create mode 100644 debian/patches/fix-build-with-newer-openssl.patch diff --git a/debian/patches/fix-build-with-newer-openssl.patch b/debian/patches/fix-build-with-newer-openssl.patch new file mode 100644 index 00000000..e2bc32ea --- /dev/null +++ b/debian/patches/fix-build-with-newer-openssl.patch @@ -0,0 +1,19 @@ +Author: Guillem Jover +Description: Use a proper accessor instead of messing with the struc directly + which has become opaque in latest OpenSSL versions. + +--- + apps/diameter_client/lib_dbase/tcp_comm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/apps/diameter_client/lib_dbase/tcp_comm.c ++++ b/apps/diameter_client/lib_dbase/tcp_comm.c +@@ -74,7 +74,7 @@ long tcp_ssl_dbg_cb(BIO *bio, int oper, + switch (oper) { + case BIO_CB_WRITE: { + char buf[256]; +- snprintf(buf, 256, "%s: %s", argp, bio->method->name); ++ snprintf(buf, 256, "%s: %s", argp, BIO_method_name(bio)); + INFO("%s", buf); + } break; + diff --git a/debian/patches/series b/debian/patches/series index fd9d222c..c3d0c81a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -25,3 +25,4 @@ build-fix-bit-rot.patch build-fix-pie.patch build-fix-excludes.patch build-system-revamp.patch +fix-build-with-newer-openssl.patch