Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dovecot23 for openSUSE:Factory 
checked in at 2023-02-07 18:50:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dovecot23 (Old)
 and      /work/SRC/openSUSE:Factory/.dovecot23.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dovecot23"

Tue Feb  7 18:50:04 2023 rev:50 rq:1063605 version:2.3.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/dovecot23/dovecot23.changes      2022-12-24 
14:53:05.111909445 +0100
+++ /work/SRC/openSUSE:Factory/.dovecot23.new.4462/dovecot23.changes    
2023-02-07 18:50:05.483456186 +0100
@@ -1,0 +2,6 @@
+Sun Feb  5 16:07:02 UTC 2023 - Arjen de Korte <suse+bu...@de-korte.org>
+
+- Add patch to fix building with OpenSSL-3 (boo#1207958)
+  + fix-build-with-openssl-3.patch
+
+-------------------------------------------------------------------

New:
----
  fix-build-with-openssl-3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dovecot23.spec ++++++
--- /var/tmp/diff_new_pack.5EkJm5/_old  2023-02-07 18:50:06.167459862 +0100
+++ /var/tmp/diff_new_pack.5EkJm5/_new  2023-02-07 18:50:06.175459905 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dovecot23
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -158,8 +158,12 @@
 Source10:       
https://www.dovecot.org/releases/%{dovecot_branch}/%{pkg_name}-%{dovecot_version}.tar.gz.sig
 Source11:       
https://pigeonhole.dovecot.org/releases/%{dovecot_branch}/%{dovecot_pigeonhole_source_dir}.tar.gz.sig
 Source12:       dovecot23.keyring
+# PATCH-FIX-OPENSUSE - boo#932386
 Patch:          dovecot-2.3.0-dont_use_etc_ssl_certs.patch
+# PATCH-FIX-SLE - boo#854512
 Patch1:         dovecot-2.3.0-better_ssl_defaults.patch
+# PATCH-FIX-OPENSUSE - boo#1207958
+Patch2:         fix-build-with-openssl-3.patch
 Summary:        IMAP and POP3 Server Written Primarily with Security in Mind
 License:        BSD-3-Clause AND LGPL-2.1-or-later AND MIT
 Group:          Productivity/Networking/Email/Servers




++++++ fix-build-with-openssl-3.patch ++++++
diff -up dovecot-2.3.14/src/lib-dcrypt/dcrypt-openssl.c.opensslv3 
dovecot-2.3.14/src/lib-dcrypt/dcrypt-openssl.c
--- dovecot-2.3.14/src/lib-dcrypt/dcrypt-openssl.c.opensslv3    2021-06-03 
18:56:52.573174433 +0200
+++ dovecot-2.3.14/src/lib-dcrypt/dcrypt-openssl.c      2021-06-03 
18:56:52.585174274 +0200
@@ -73,10 +73,30 @@
   2<tab>key algo oid<tab>1<tab>symmetric algo name<tab>salt<tab>hash 
algo<tab>rounds<tab>E(RSA = i2d_PrivateKey, EC=Private Point)<tab>key id
 **/
 
+#if OPENSSL_VERSION_MAJOR == 3
+static EC_KEY *EVP_PKEY_get0_EC_KEYv3(EVP_PKEY *key)
+{
+  EC_KEY *eck = EVP_PKEY_get1_EC_KEY(key);
+  EVP_PKEY_set1_EC_KEY(key, eck);
+  EC_KEY_free(eck);
+  return eck;
+}
+
+static EC_KEY *EVP_PKEY_get1_EC_KEYv3(EVP_PKEY *key)
+{
+  EC_KEY *eck = EVP_PKEY_get1_EC_KEY(key);
+  EVP_PKEY_set1_EC_KEY(key, eck);
+  return eck;
+}
+
+#define EVP_PKEY_get0_EC_KEY EVP_PKEY_get0_EC_KEYv3 
+#define EVP_PKEY_get1_EC_KEY EVP_PKEY_get1_EC_KEYv3
+#else
 #ifndef HAVE_EVP_PKEY_get0
 #define EVP_PKEY_get0_EC_KEY(x) x->pkey.ec
 #define EVP_PKEY_get0_RSA(x) x->pkey.rsa
 #endif
+#endif
 
 #ifndef HAVE_OBJ_LENGTH
 #define OBJ_length(o) ((o)->length)

Reply via email to