diff --git a/0001-Define-OPENSSL_API_COMPAT-to-0x10101000L.patch b/0001-Define-OPENSSL_API_COMPAT-to-0x10101000L.patch new file mode 100644 index 0000000..5a6278d --- /dev/null +++ b/0001-Define-OPENSSL_API_COMPAT-to-0x10101000L.patch @@ -0,0 +1,53 @@ +From b339a18aa06c78d64ac33d891d400eac7b86fff3 Mon Sep 17 00:00:00 2001 +From: Jakub Hrozek +Date: Mon, 17 May 2021 13:30:24 +0200 +Subject: [PATCH] Define OPENSSL_API_COMPAT to 0x10101000L + +--- + src/jwe.c | 2 ++ + src/jwk.c | 2 ++ + src/jws.c | 2 ++ + 3 files changed, 6 insertions(+) + +diff --git a/src/jwe.c b/src/jwe.c +index 822d408..d6f3149 100644 +--- a/src/jwe.c ++++ b/src/jwe.c +@@ -5,6 +5,8 @@ + * Copyright (c) 2014-2016 Cisco Systems, Inc. All Rights Reserved. + */ + ++#define OPENSSL_API_COMPAT 0x10101000L ++ + #include + #include + #include +diff --git a/src/jwk.c b/src/jwk.c +index 860f0e7..87408e9 100644 +--- a/src/jwk.c ++++ b/src/jwk.c +@@ -5,6 +5,8 @@ + * Copyright (c) 2014-2016 Cisco Systems, Inc. All Rights Reserved. + */ + ++#define OPENSSL_API_COMPAT 0x10101000L ++ + #include "include/jwk_int.h" + #include "include/util_int.h" + +diff --git a/src/jws.c b/src/jws.c +index 4e03554..9d682a0 100644 +--- a/src/jws.c ++++ b/src/jws.c +@@ -5,6 +5,8 @@ + * Copyright (c) 2014-2016 Cisco Systems, Inc. All Rights Reserved. + */ + ++#define OPENSSL_API_COMPAT 0x10101000L ++ + #include + #include + #include +-- +2.31.1 + diff --git a/cjose.spec b/cjose.spec index c31db6c..7548d68 100644 --- a/cjose.spec +++ b/cjose.spec @@ -1,6 +1,6 @@ Name: cjose Version: 0.6.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: C library implementing the Javascript Object Signing and Encryption (JOSE) License: MIT @@ -8,6 +8,7 @@ URL: https://github.com/cisco/cjose Source0: https://github.com/cisco/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Patch1: concatkdf.patch +Patch2: 0001-Define-OPENSSL_API_COMPAT-to-0x10101000L.patch BuildRequires: gcc BuildRequires: doxygen @@ -63,6 +64,10 @@ make check || (cat test/test-suite.log; exit 1) %changelog +* Mon May 17 2021 Jakub Hrozek - 0.6.1-9 +- enable build with openssl 3.0 +- Resolves: rhbz#1958026 + * Thu Apr 15 2021 Mohan Boddu - 0.6.1-8 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937