Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gpgme for openSUSE:Factory checked 
in at 2026-11-23 12:19:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gpgme (Old)
 and      /work/SRC/openSUSE:Factory/.gpgme.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gpgme"

Mon Nov 23 12:19:38 2026 rev:122 rq:1399469 version:2.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gpgme/gpgme.changes      2026-09-04 
12:37:20.405114687 +0200
+++ /work/SRC/openSUSE:Factory/.gpgme.new.1340718/gpgme.changes 2026-11-23 
12:19:58.499058150 +0100
@@ -1,0 +2,11 @@
+Fri Nov 20 15:56:20 UTC 2026 - Andreas Stieger <[email protected]>
+
+- Update to 2.3.1:
+  * Fix a regression in 2.3.0
+- includes changes from 2.3.0:
+  * New constants GPGME_PK_MLKEM, GPGME_PK_MLDSA, and
+    GPGME_PK_DLTHM. Add mappings for algos used by backends
+  * Fix a double free in the status line read code
+    CVE-2026-129975 boo#1291147
+
+-------------------------------------------------------------------

Old:
----
  gpgme-2.2.0.tar.bz2
  gpgme-2.2.0.tar.bz2.sig

New:
----
  gpgme-2.3.1.tar.bz2
  gpgme-2.3.1.tar.bz2.sig

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

Other differences:
------------------
++++++ gpgme.spec ++++++
--- /var/tmp/diff_new_pack.6uNou7/_old  2026-11-23 12:19:59.626105527 +0100
+++ /var/tmp/diff_new_pack.6uNou7/_new  2026-11-23 12:19:59.628105611 +0100
@@ -19,7 +19,7 @@
 
 %define sover 45
 Name:           gpgme
-Version:        2.2.0
+Version:        2.3.1
 Release:        0
 Summary:        Programmatic library interface to GnuPG
 License:        GPL-3.0-or-later AND LGPL-2.1-or-later

++++++ gpgme-2.2.0.tar.bz2 -> gpgme-2.3.1.tar.bz2 ++++++
++++ 9448 lines of diff (skipped)
++++    retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/ChangeLog new/gpgme-2.3.1/ChangeLog
--- old/gpgme-2.2.0/ChangeLog   2026-08-31 14:53:45.000000000 +0200
+++ new/gpgme-2.3.1/ChangeLog   2026-11-19 18:09:38.000000000 +0100
@@ -1,5 +1,66 @@
+2026-11-19  Werner Koch  <[email protected]>
+
+       Release 2.3.1.
+       + commit c7cbb9a4bf254a9bfcc51c90baeea7cc19349445
+
+
+       Fix a stupid regression.
+       + commit b283b2901ff8edb2dce1e01cae28b09f5cf02c08
+       * src/engine-gpg.c (read_status,read_colon_line): Init err.
+
+2026-11-18  Werner Koch  <[email protected]>
+
+       Release 2.3.0.
+       + commit 9d5cd51e492d429c6d36a1a33dbcbf9f80071e0e
+
+
+2026-11-17  Werner Koch  <[email protected]>
+
+       Prepare for Dilithium support in gpg.
+       + commit d3ed1d6763b9559421b6023e7520458ec7b1fbef
+       * src/gpgme.h.in (GPGME_PK_DLTHM): New.
+       * src/gpgme.c (gpgme_pubkey_algo_string): Add mapping.
+       (gpgme_pubkey_algo_name): Add name.
+
+2026-11-15  Werner Koch  <[email protected]>
+
+       Improve code in engine-gpg for easier debugging.
+       + commit 4254af7dafdb263aaa5cbddf3ce00ecfb61630ed
+       * src/engine-gpg.c (read_status): Always jump to the leave label
+         instead of using a direct return.
+       (read_colon_line): Ditto.
+       (start): Ditto.  Also rename RC to ERR.
+
+       Fix a double free in the status line read code.
+       + commit 14499348b966cd7b3d72afee15a5cd51cdd0a727
+       * src/engine-gpg.c (read_status): Immediately assign the realloced
+       buffer to the context and not just at the end.
+       (read_colon_line): Ditto.
+
+2026-11-13  NIIBE Yutaka  <[email protected]>
+
+       tests:gpgsm: Fix for fallback hash algorithm change in gpgsm.
+       + commit 813658fc5f755641fc578e9a6ff2c8326679d17d
+       * tests/gpgsm/t-sign.c (check_result): Change possible valid hash
+       algorithms.
+
+2026-10-13  Werner Koch  <[email protected]>
+
+       Add the Kyber variant GPGME_PK_MLKEM and MLDSA from RFC9980.
+       + commit a85fa492369c5f65918cb37fc6d24d473237f838
+       * src/gpgme.h.in (GPGME_PK_MLKEM, GPGME_PK_MLDSA): New.
+       * src/conversion.c (_gpgme_map_pk_algo): Map the new MLDSA, MLKEM, and
+         RFC9580 algo variants.
+       * src/gpgme.c (gpgme_pubkey_algo_string): Mark MLDSA and MLKEM as
+         composite.
+       (gpgme_pubkey_algo_name): Add re-mapping.
+
 2026-08-31  Werner Koch  <[email protected]>
 
+       build: Adjust online target for the new server.
+       + commit f89319fbc8d0c2b68051a64a9b4d5424db2fa044
+       * doc/Makefile.am (online): Chnage server URL
+
        Release 2.2.0.
        + commit 5c2e9553adda72753d7edc4d755814689968f88e
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/NEWS new/gpgme-2.3.1/NEWS
--- old/gpgme-2.2.0/NEWS        2026-08-31 14:44:43.000000000 +0200
+++ new/gpgme-2.3.1/NEWS        2026-11-19 18:04:56.000000000 +0100
@@ -1,3 +1,29 @@
+Noteworthy changes in version 2.3.1 (2026-11-19)   [C48/A3/R1]
+------------------------------------------------
+
+ * Fix a regression in 2.3.0
+
+ Release-info: https://dev.gnupg.org/T8427
+
+
+Noteworthy changes in version 2.3.0 (2026-11-18)   [C48/A3/R0]
+------------------------------------------------
+
+ * New constants GPGME_PK_MLKEM, GPGME_PK_MLDSA, and GPGME_PK_DLTHM.
+   Add mappings for algos used bei backends.   [rMa85fa49236]
+
+ * Fix a double free in the status line read code.
+   [T8557,CVE-2026-129975]
+
+ * Interface changes relative to the 2.2.0 release:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ GPGME_PK_DLTHM                NEW.
+ GPGME_PK_MLKEM                NEW.
+ GPGME_PK_MLDSA                NEW.
+
+ Release-info: https://dev.gnupg.org/T8427
+
+
 Noteworthy changes in version 2.2.0 (2026-08-31)   [C47/A2/R0]
 ------------------------------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/README new/gpgme-2.3.1/README
--- old/gpgme-2.2.0/README      2026-06-25 16:04:19.000000000 +0200
+++ new/gpgme-2.3.1/README      2026-11-18 09:50:36.000000000 +0100
@@ -41,11 +41,11 @@
 Check that you have unmodified sources.  See below on how to do this.
 Don't skip it - this is an important step!
 
-To build GPGME, you need to install libgpg-error (>= 1.36) and
+To build GPGME, you need to install libgpg-error (>= 1.47) and
 Libassuan (>= 2.4.2).
 
 For support of the OpenPGP and the CMS protocols, you should use at
-least GnuPG version 2.2.41 or 2.4.3, available at:
+least GnuPG version 2.2.41 or 2.5.0, available at:
 https://gnupg.org/ftp/gcrypt/gnupg/.
 
 For building the Git version of GPGME please see the file README.GIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/VERSION new/gpgme-2.3.1/VERSION
--- old/gpgme-2.2.0/VERSION     2026-08-31 14:53:35.000000000 +0200
+++ new/gpgme-2.3.1/VERSION     2026-11-19 18:09:26.000000000 +0100
@@ -1,2 +1,2 @@
-2.2.0
-5c2e9553adda72753d7edc4d755814689968f88e
+2.3.1
+c7cbb9a4bf254a9bfcc51c90baeea7cc19349445
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/conf/config.h.in new/gpgme-2.3.1/conf/config.h.in
--- old/gpgme-2.2.0/conf/config.h.in    2026-08-31 14:53:43.000000000 +0200
+++ new/gpgme-2.3.1/conf/config.h.in    2026-11-19 18:09:36.000000000 +0100
@@ -16,7 +16,7 @@
 #undef FIXED_SEARCH_PATH
 
 /* Define to nothing if C supports flexible array members, and to 1 if it does
-   not. That way, with a declaration like `struct s { int n; double
+   not. That way, with a declaration like 'struct s { int n; double
    d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
    compilers. When computing the size of such an object, don't use 'sizeof
    (struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
@@ -39,10 +39,10 @@
 /* Define if ttyname_r is does not work with small buffers */
 #undef HAVE_BROKEN_TTYNAME_R
 
-/* Define to 1 if you have the `closefrom' function. */
+/* Define to 1 if you have the 'closefrom' function. */
 #undef HAVE_CLOSEFROM
 
-/* Define to 1 if you have the declaration of `ttyname_r', and to 0 if you
+/* Define to 1 if you have the declaration of 'ttyname_r', and to 0 if you
    don't. */
 #undef HAVE_DECL_TTYNAME_R
 
@@ -53,19 +53,19 @@
    with special properties like no file modes */
 #undef HAVE_DOSISH_SYSTEM
 
-/* Define to 1 if the system has the type `error_t'. */
+/* Define to 1 if the system has the type 'error_t'. */
 #undef HAVE_ERROR_T
 
-/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
+/* Define to 1 if fseeko (and ftello) are declared in stdio.h. */
 #undef HAVE_FSEEKO
 
-/* Define to 1 if you have the `getegid' function. */
+/* Define to 1 if you have the 'getegid' function. */
 #undef HAVE_GETEGID
 
-/* Define to 1 if you have the `getenv_r' function. */
+/* Define to 1 if you have the 'getenv_r' function. */
 #undef HAVE_GETENV_R
 
-/* Define to 1 if you have the `getgid' function. */
+/* Define to 1 if you have the 'getgid' function. */
 #undef HAVE_GETGID
 
 /* Defined if gettid is available. */
@@ -83,7 +83,7 @@
 /* Define to 1 if you have the <minix/config.h> header file. */
 #undef HAVE_MINIX_CONFIG_H
 
-/* Define to 1 if you have the `nanosleep' function. */
+/* Define to 1 if you have the 'nanosleep' function. */
 #undef HAVE_NANOSLEEP
 
 /* Define to 1 if you have the <poll.h> header file. */
@@ -92,10 +92,10 @@
 /* Define if the ttyname_r function has a POSIX compliant declaration. */
 #undef HAVE_POSIXDECL_TTYNAME_R
 
-/* Define to 1 if you have the `setenv' function. */
+/* Define to 1 if you have the 'setenv' function. */
 #undef HAVE_SETENV
 
-/* Define to 1 if you have the `setlocale' function. */
+/* Define to 1 if you have the 'setlocale' function. */
 #undef HAVE_SETLOCALE
 
 /* Define to 1 if you have the <stdint.h> header file. */
@@ -107,7 +107,7 @@
 /* Define to 1 if you have the <stdlib.h> header file. */
 #undef HAVE_STDLIB_H
 
-/* Define to 1 if you have the `stpcpy' function. */
+/* Define to 1 if you have the 'stpcpy' function. */
 #undef HAVE_STPCPY
 
 /* Define to 1 if you have the <strings.h> header file. */
@@ -137,16 +137,16 @@
 /* Define if getenv() is thread-safe */
 #undef HAVE_THREAD_SAFE_GETENV
 
-/* Define to 1 if you have the `timegm' function. */
+/* Define to 1 if you have the 'timegm' function. */
 #undef HAVE_TIMEGM
 
 /* Define if __thread is supported */
 #undef HAVE_TLS
 
-/* Define to 1 if you have the `ttyname_r' function. */
+/* Define to 1 if you have the 'ttyname_r' function. */
 #undef HAVE_TTYNAME_R
 
-/* Define to 1 if the system has the type `uintptr_t'. */
+/* Define to 1 if the system has the type 'uintptr_t'. */
 #undef HAVE_UINTPTR_T
 
 /* Define to 1 if you have the <unistd.h> header file. */
@@ -204,10 +204,10 @@
 #endif
 
 
-/* The size of `unsigned int', as computed by sizeof. */
+/* The size of 'unsigned int', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_INT
 
-/* Define to 1 if all of the C90 standard headers exist (not just the ones
+/* Define to 1 if all of the C89 standard headers exist (not just the ones
    required in a freestanding environment). This macro is provided for
    backward compatibility; new code need not use it. */
 #undef STDC_HEADERS
@@ -218,7 +218,7 @@
 /* Defined if SYS_getdents can be used on Linux */
 #undef USE_LINUX_GETDENTS
 
-/* Enable extensions on AIX 3, Interix.  */
+/* Enable extensions on AIX, Interix, z/OS.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
@@ -279,11 +279,15 @@
 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
 # undef __STDC_WANT_IEC_60559_DFP_EXT__
 #endif
+/* Enable extensions specified by C23 Annex F.  */
+#ifndef __STDC_WANT_IEC_60559_EXT__
+# undef __STDC_WANT_IEC_60559_EXT__
+#endif
 /* Enable extensions specified by ISO/IEC TS 18661-4:2015.  */
 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
 #endif
-/* Enable extensions specified by ISO/IEC TS 18661-3:2015.  */
+/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015.  */
 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
 #endif
@@ -315,10 +319,10 @@
 /* Number of bits in a file offset, on hosts where this is settable. */
 #undef _FILE_OFFSET_BITS
 
-/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
+/* Define to 1 if necessary to make fseeko visible. */
 #undef _LARGEFILE_SOURCE
 
-/* Define for large files, on AIX-style hosts. */
+/* Define to 1 on platforms where this makes off_t a 64-bit type. */
 #undef _LARGE_FILES
 
 /* To allow the use of GPGME in multithreaded programs we have to use
@@ -329,19 +333,25 @@
 # define _REENTRANT 1
 #endif
 
+/* Number of bits in time_t, on hosts where this is settable. */
+#undef _TIME_BITS
+
 /* Activate POSIX interface on MacOS X */
 #undef _XOPEN_SOURCE
 
+/* Define to 1 on platforms where this makes time_t a 64-bit type. */
+#undef __MINGW_USE_VC2005_COMPAT
+
 /* Define to a type to use for `error_t' if it is not otherwise available. */
 #undef error_t
 
-/* Define to `__inline__' or `__inline' if that's what the C compiler
+/* Define to '__inline__' or '__inline' if that's what the C compiler
    calls it, or to nothing if 'inline' is not supported under any name.  */
 #ifndef __cplusplus
 #undef inline
 #endif
 
-/* Define to `long int' if <sys/types.h> does not define. */
+/* Define to 'long int' if <sys/types.h> does not define. */
 #undef off_t
 
 /* Define to the type of an unsigned integer type wide enough to hold a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/configure.ac new/gpgme-2.3.1/configure.ac
--- old/gpgme-2.2.0/configure.ac        2026-08-31 14:44:27.000000000 +0200
+++ new/gpgme-2.3.1/configure.ac        2026-11-19 18:05:26.000000000 +0100
@@ -31,8 +31,8 @@
 # for the LT versions.
 m4_define([mym4_package],[gpgme])
 m4_define([mym4_major], [2])
-m4_define([mym4_minor], [2])
-m4_define([mym4_micro], [0])
+m4_define([mym4_minor], [3])
+m4_define([mym4_micro], [1])
 
 # Below is m4 magic to extract and compute the git revision number,
 # the decimalized short revision number, a beta version string and a
@@ -55,9 +55,9 @@
 #   (Interfaces added:                 AGE++)
 #   (Interfaces removed:               AGE=0)
 #
-LIBGPGME_LT_CURRENT=47
-LIBGPGME_LT_AGE=2
-LIBGPGME_LT_REVISION=0
+LIBGPGME_LT_CURRENT=48
+LIBGPGME_LT_AGE=3
+LIBGPGME_LT_REVISION=1
 ################################################
 
 AC_SUBST(LIBGPGME_LT_CURRENT)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/doc/Makefile.am new/gpgme-2.3.1/doc/Makefile.am
--- old/gpgme-2.2.0/doc/Makefile.am     2025-05-05 16:32:11.000000000 +0200
+++ new/gpgme-2.3.1/doc/Makefile.am     2026-11-14 14:12:37.000000000 +0100
@@ -89,7 +89,6 @@
 online: gpgme.html gpgme.pdf
        set -e; \
        echo "Uploading current manuals to www.gnupg.org ..."; \
-        user=werner ; \
        (cd gpgme.html && rsync -vr --exclude='.svn' .  \
-         $${user}@ftp.gnupg.org:webspace/manuals/gpgme/ ); \
-        rsync -v gpgme.pdf $${user}@ftp.gnupg.org:webspace/manuals/
+           gnupg.org:webspace/documentation/manuals/gpgme/ ); \
+        rsync -v gpgme.pdf gnupg.org:webspace/documentation/manuals/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/gpgme.spec new/gpgme-2.3.1/gpgme.spec
--- old/gpgme-2.2.0/gpgme.spec  2026-08-31 14:53:45.000000000 +0200
+++ new/gpgme-2.3.1/gpgme.spec  2026-11-19 18:09:38.000000000 +0100
@@ -1,7 +1,7 @@
 # This is a template.  The dist target uses it to create the real file.
 Summary: GPGME - GnuPG Made Easy
 Name: gpgme
-Version: 2.2.0
+Version: 2.3.1
 Release: 1
 URL: https://gnupg.org/gpgme.html
 Source: https://www.gnupg.org/ftp/gcrypt/gpgme/%{name}-%{version}.tar.gz
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/lang/cl/gpgme.asd new/gpgme-2.3.1/lang/cl/gpgme.asd
--- old/gpgme-2.2.0/lang/cl/gpgme.asd   2026-08-31 14:53:42.000000000 +0200
+++ new/gpgme-2.3.1/lang/cl/gpgme.asd   2026-11-19 18:09:35.000000000 +0100
@@ -27,7 +27,7 @@
 (defsystem gpgme
   :description "GnuPG Made Easy."
   :author "g10 Code GmbH"
-  :version "2.2.0"
+  :version "2.3.1"
   :licence "GPL"
   :defsystem-depends-on ("cffi-grovel")
   :depends-on ("cffi" "gpg-error" "trivial-garbage")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/lang/js/src/Helpers.js new/gpgme-2.3.1/lang/js/src/Helpers.js
--- old/gpgme-2.2.0/lang/js/src/Helpers.js      2018-12-03 10:37:25.000000000 
+0100
+++ new/gpgme-2.3.1/lang/js/src/Helpers.js      2026-11-14 14:12:37.000000000 
+0100
@@ -156,7 +156,7 @@
     if (typeof (base64) !== 'string'){
         throw gpgme_error('DECODE_FAIL');
     }
-    const raw = window.atob(base64);
+    const raw = atob(base64);
     const rawLength = raw.length;
     let array = new Uint8Array(new ArrayBuffer(rawLength));
     for (let i = 0; i < rawLength; i++) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/src/conversion.c new/gpgme-2.3.1/src/conversion.c
--- old/gpgme-2.2.0/src/conversion.c    2026-08-31 14:25:10.000000000 +0200
+++ new/gpgme-2.3.1/src/conversion.c    2026-11-14 14:12:37.000000000 +0100
@@ -693,6 +693,24 @@
         case 19: algo = GPGME_PK_ECDSA; break;
         case 20: break;
         case 22: algo = GPGME_PK_EDDSA; break;
+
+        case 25: algo = GPGME_PK_ECDH;  break;  /* X25519 (RFC9580).  */
+        case 27: algo = GPGME_PK_EDDSA; break;  /* Ed25519 (RFC9580). */
+
+        case 30: /* ML-DSA-65+Ed25519 (RFC9980)      */
+        case 31: /* ML-DSA-87+Ed448 (RFC9980)        */
+          algo = GPGME_PK_MLDSA;
+          break;
+
+        case 35: /* ML-KEM-768+X25519 (RFC9980)      */
+        case 36: /* ML-KEM-1024+X448 (RFC9980)       */
+        case 37: /* ML-KEM-768+ECDH-NIST-P-384       */
+        case 38: /* ML-KEM-1024+ECDH-NIST-P-521      */
+        case 39: /* ML-KEM-768+ECDH-brainpoolP384r1  */
+        case 40: /* ML-KEM-1024+ECDH-brainpoolP512r1 */
+          algo = GPGME_PK_MLKEM;
+          break;
+
         default: algo = 0; break; /* Unknown.  */
         }
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/src/engine-gpg.c new/gpgme-2.3.1/src/engine-gpg.c
--- old/gpgme-2.2.0/src/engine-gpg.c    2026-06-23 09:50:48.000000000 +0200
+++ new/gpgme-2.3.1/src/engine-gpg.c    2026-11-19 17:51:46.000000000 +0100
@@ -1479,12 +1479,12 @@
 static gpgme_error_t
 read_status (engine_gpg_t gpg)
 {
+  gpgme_error_t err = 0;
   char *p;
   int nread;
   size_t bufsize = gpg->status.bufsize;
   char *buffer = gpg->status.buffer;
   size_t readpos = gpg->status.readpos;
-  gpgme_error_t err;
 
   assert (buffer);
   if (bufsize - readpos < 256)
@@ -1493,17 +1493,24 @@
       bufsize += 1024;
       buffer = realloc (buffer, bufsize);
       if (!buffer)
-       return gpg_error_from_syserror ();
-    }
+       {
+          err = gpg_error_from_syserror ();
+          goto leave;
+        }
+      gpg->status.bufsize = bufsize;
+      gpg->status.buffer = buffer;
+   }
 
   nread = _gpgme_io_read (gpg->status.fd[0],
                          buffer + readpos, bufsize-readpos);
   if (nread == -1)
-    return gpg_error_from_syserror ();
+    {
+      err = gpg_error_from_syserror ();
+      goto leave;
+    }
 
   if (!nread)
     {
-      err = 0;
       gpg->status.eof = 1;
       if (gpg->status.mon_cb)
         err = gpg->status.mon_cb (gpg->status.mon_cb_value, "", "");
@@ -1515,8 +1522,7 @@
           if (gpg_err_code (err) == GPG_ERR_FALSE)
             err = 0; /* Drop special error code.  */
         }
-
-      return err;
+      goto leave;
     }
 
   while (nread > 0)
@@ -1549,7 +1555,7 @@
                       err = gpg->status.mon_cb (gpg->status.mon_cb_value,
                                                 buffer + 9, rest);
                       if (err)
-                        return err;
+                        goto leave;
                     }
                  if (r >= 0)
                    {
@@ -1563,7 +1569,10 @@
                            free (gpg->cmd.keyword);
                          gpg->cmd.keyword = strdup (rest);
                          if (!gpg->cmd.keyword)
-                           return gpg_error_from_syserror ();
+                           {
+                              err = gpg_error_from_syserror ();
+                              goto leave;
+                            }
                          /* This should be the last thing we have
                             received and the next thing will be that
                             the command handler does its action.  */
@@ -1584,7 +1593,7 @@
                           if (gpg_err_code (err) == GPG_ERR_FALSE)
                             err = 0; /* Drop special error code.  */
                          if (err)
-                           return err;
+                           goto leave;
                         }
                     }
                 }
@@ -1605,11 +1614,10 @@
         }
     }
 
+ leave:
   /* Update the gpg object.  */
-  gpg->status.bufsize = bufsize;
-  gpg->status.buffer = buffer;
   gpg->status.readpos = readpos;
-  return 0;
+  return err;
 }
 
 
@@ -1633,6 +1641,7 @@
 static gpgme_error_t
 read_colon_line (engine_gpg_t gpg)
 {
+  gpg_error_t err = 0;
   char *p;
   int nread;
   size_t bufsize = gpg->colon.bufsize;
@@ -1646,19 +1655,28 @@
       bufsize += 1024;
       buffer = realloc (buffer, bufsize);
       if (!buffer)
-       return gpg_error_from_syserror ();
+       {
+          err = gpg_error_from_syserror ();
+          goto leave;
+        }
+      gpg->colon.bufsize = bufsize;
+      gpg->colon.buffer  = buffer;
     }
 
   nread = _gpgme_io_read (gpg->colon.fd[0], buffer+readpos, bufsize-readpos);
   if (nread == -1)
-    return gpg_error_from_syserror ();
+    {
+      err = gpg_error_from_syserror ();
+      goto leave;
+    }
 
   if (!nread)
     {
       gpg->colon.eof = 1;
       assert (gpg->colon.fnc);
       gpg->colon.fnc (gpg->colon.fnc_value, NULL);
-      return 0;
+      err = 0;
+      goto leave;
     }
 
   while (nread > 0)
@@ -1679,11 +1697,9 @@
 
                  if (gpg->colon.preprocess_fnc)
                    {
-                     gpgme_error_t err;
-
                      err = gpg->colon.preprocess_fnc (buffer, &line);
                      if (err)
-                       return err;
+                       goto leave;
                    }
 
                  assert (gpg->colon.fnc);
@@ -1725,11 +1741,10 @@
         }
     }
 
+ leave:
   /* Update the gpg object.  */
-  gpg->colon.bufsize = bufsize;
-  gpg->colon.buffer  = buffer;
   gpg->colon.readpos = readpos;
-  return 0;
+  return err;
 }
 
 
@@ -1757,7 +1772,7 @@
 static gpgme_error_t
 start (engine_gpg_t gpg)
 {
-  gpgme_error_t rc;
+  gpg_error_t err;
   int i, n;
   int status;
   struct spawn_fd_item_s *fd_list;
@@ -1773,57 +1788,57 @@
   if (!pgmname)
     return trace_gpg_error (GPG_ERR_INV_ENGINE);
 
-  rc = gpgme_data_new (&gpg->diagnostics);
-  if (rc)
-    return rc;
+  err = gpgme_data_new (&gpg->diagnostics);
+  if (err)
+    goto leave;
 
   if (gpg->flags.use_gpgtar)
     {
       /* Read the diagnostics output from gpgtar's stderr. */
-      rc = add_data (gpg, gpg->diagnostics, 2, 1);
-      if (rc)
-        return rc;
+      err = add_data (gpg, gpg->diagnostics, 2, 1);
+      if (err)
+        goto leave;
     }
   else
     {
-      rc = add_data_ext (gpg, gpg->diagnostics, -2, 1, 1);
-      if (rc)
-        return rc;
-
-      rc = add_arg_ext (gpg, "--logger-fd", 1);
-      if (rc)
-        return rc;
+      err = add_data_ext (gpg, gpg->diagnostics, -2, 1, 1);
+      if (err)
+        goto leave;
+
+      err = add_arg_ext (gpg, "--logger-fd", 1);
+      if (err)
+        goto leave;
     }
 
   {
     char buf[25];
     _gpgme_io_fd2str (buf, sizeof (buf), gpg->status.fd[1]);
-    rc = add_arg_with_locp (gpg, buf, &gpg->status.arg_loc, 1);
-    if (rc)
-      return rc;
+    err = add_arg_with_locp (gpg, buf, &gpg->status.arg_loc, 1);
+    if (err)
+      goto leave;
   }
 
-  rc = add_arg_ext (gpg, "--status-fd", 1);
-  if (rc)
-    return rc;
+  err = add_arg_ext (gpg, "--status-fd", 1);
+  if (err)
+    goto leave;
 
   if (gpg->lc_ctype)
     {
-      rc = add_gpg_arg_with_value (gpg, "--lc-ctype=", gpg->lc_ctype, 1);
-      if (rc)
-       return rc;
+      err = add_gpg_arg_with_value (gpg, "--lc-ctype=", gpg->lc_ctype, 1);
+      if (err)
+       goto leave;
     }
 
   if (gpg->lc_messages)
     {
-      rc = add_gpg_arg_with_value (gpg, "--lc-messages=", gpg->lc_messages, 1);
-      if (rc)
-       return rc;
+      err = add_gpg_arg_with_value (gpg, "--lc-messages=", gpg->lc_messages, 
1);
+      if (err)
+       goto leave;
     }
 
-  rc = build_argv (gpg, pgmname);
-  if (rc)
-    return rc;
+  err = build_argv (gpg, pgmname);
+  if (err)
+    goto leave;
 
   /* status_fd, colon_fd and end of list.  */
   n = 3;
@@ -1831,7 +1846,10 @@
     n++;
   fd_list = calloc (n, sizeof *fd_list);
   if (! fd_list)
-    return gpg_error_from_syserror ();
+    {
+      err = gpg_error_from_syserror ();
+      goto leave;
+    }
 
   /* Build the fd list for the child.  */
   n = 0;
@@ -1859,28 +1877,28 @@
                             (IOSPAWN_FLAG_DETACHED |IOSPAWN_FLAG_ALLOW_SET_FG),
                             fd_list, NULL, NULL, NULL);
   {
-    int saved_err = gpg_error_from_syserror ();
+    err = gpg_error_from_syserror ();
     free (fd_list);
     if (status == -1)
-      return saved_err;
+      goto leave;
   }
 
   /*_gpgme_register_term_handler ( closure, closure_value, pid );*/
 
-  rc = add_io_cb (gpg, gpg->status.fd[0], 1, status_handler, gpg,
+  err = add_io_cb (gpg, gpg->status.fd[0], 1, status_handler, gpg,
                  &gpg->status.tag);
-  if (rc)
+  if (err)
     /* FIXME: kill the child */
-    return rc;
+    goto leave;
 
   if (gpg->colon.fnc)
     {
       assert (gpg->colon.fd[0] != -1);
-      rc = add_io_cb (gpg, gpg->colon.fd[0], 1, colon_line_handler, gpg,
+      err = add_io_cb (gpg, gpg->colon.fd[0], 1, colon_line_handler, gpg,
                      &gpg->colon.tag);
-      if (rc)
+      if (err)
        /* FIXME: kill the child */
-       return rc;
+       goto leave;
     }
 
   for (i = 0; gpg->fd_data_map[i].data; i++)
@@ -1893,23 +1911,25 @@
        }
       else
        {
-         rc = add_io_cb (gpg, gpg->fd_data_map[i].fd,
+         err = add_io_cb (gpg, gpg->fd_data_map[i].fd,
                          gpg->fd_data_map[i].inbound,
                          gpg->fd_data_map[i].inbound
                          ? _gpgme_data_inbound_handler
                          : _gpgme_data_outbound_handler,
                          gpg->fd_data_map[i].data, &gpg->fd_data_map[i].tag);
 
-         if (rc)
+         if (err)
            /* FIXME: kill the child */
-           return rc;
+           goto leave;
        }
     }
 
   gpg_io_event (gpg, GPGME_EVENT_START, NULL);
+  err = 0;
 
+ leave:
   /* fixme: check what data we can release here */
-  return 0;
+  return err;
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/src/gpgme.c new/gpgme-2.3.1/src/gpgme.c
--- old/gpgme-2.2.0/src/gpgme.c 2026-06-23 09:50:48.000000000 +0200
+++ new/gpgme-2.3.1/src/gpgme.c 2026-11-17 10:18:33.000000000 +0100
@@ -1321,6 +1321,7 @@
     case GPGME_PK_RSA_E:
     case GPGME_PK_RSA_S: prefix = "rsa"; break;
     case GPGME_PK_KYBER: composite = 1; break;
+    case GPGME_PK_DLTHM: composite = 1; break;
     case GPGME_PK_ELG_E: prefix = "elg"; break;
     case GPGME_PK_DSA:  prefix = "dsa"; break;
     case GPGME_PK_ELG:   prefix = "xxx"; break;
@@ -1328,6 +1329,8 @@
     case GPGME_PK_ECDH:
     case GPGME_PK_ECDSA:
     case GPGME_PK_EDDSA: prefix = "";    break;
+    case GPGME_PK_MLDSA: composite = 1; break;
+    case GPGME_PK_MLKEM: composite = 1; break;
     }
 
   if (composite && subkey->curve)
@@ -1359,6 +1362,7 @@
     case GPGME_PK_RSA_E: return "RSA-E";
     case GPGME_PK_RSA_S: return "RSA-S";
     case GPGME_PK_KYBER: return "KYBER";
+    case GPGME_PK_DLTHM: return "DILITHIUM";
     case GPGME_PK_ELG_E: return "ELG-E";
     case GPGME_PK_DSA:   return "DSA";
     case GPGME_PK_ECC:   return "ECC";
@@ -1366,6 +1370,8 @@
     case GPGME_PK_ECDSA: return "ECDSA";
     case GPGME_PK_ECDH:  return "ECDH";
     case GPGME_PK_EDDSA: return "EdDSA";
+    case GPGME_PK_MLDSA: return "MLDSA";
+    case GPGME_PK_MLKEM: return "MLKEM";
     default:             return NULL;
     }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/src/gpgme.h.in new/gpgme-2.3.1/src/gpgme.h.in
--- old/gpgme-2.2.0/src/gpgme.h.in      2026-08-31 14:45:21.000000000 +0200
+++ new/gpgme-2.3.1/src/gpgme.h.in      2026-11-17 10:18:50.000000000 +0100
@@ -271,13 +271,16 @@
     GPGME_PK_RSA_E = 2,
     GPGME_PK_RSA_S = 3,
     GPGME_PK_KYBER = 8,
+    GPGME_PK_DLTHM = 9,
     GPGME_PK_ELG_E = 16,
     GPGME_PK_DSA   = 17,
     GPGME_PK_ECC   = 18,
     GPGME_PK_ELG   = 20,
     GPGME_PK_ECDSA = 301,
     GPGME_PK_ECDH  = 302,
-    GPGME_PK_EDDSA = 303
+    GPGME_PK_EDDSA = 303,
+    GPGME_PK_MLKEM = 331,    /* Kyber (ML-KEM).      */
+    GPGME_PK_MLDSA = 332     /* Dilithium (ML-DSA).  */
   }
 gpgme_pubkey_algo_t;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/src/keylist.c new/gpgme-2.3.1/src/keylist.c
--- old/gpgme-2.2.0/src/keylist.c       2026-06-23 09:50:48.000000000 +0200
+++ new/gpgme-2.3.1/src/keylist.c       2026-11-14 14:12:37.000000000 +0100
@@ -791,7 +791,7 @@
             return err;
         }
 
-      /* Field 17 has the curve name for ECC.  */
+      /* Field 17 has the curve name for ECC or the composite algo string.  */
       if (fields >= 17 && *field[16])
         {
           subkey->curve = strdup (field[16]);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/gpgme-2.2.0/tests/gpgsm/t-sign.c new/gpgme-2.3.1/tests/gpgsm/t-sign.c
--- old/gpgme-2.2.0/tests/gpgsm/t-sign.c        2018-12-03 10:37:25.000000000 
+0100
+++ new/gpgme-2.3.1/tests/gpgsm/t-sign.c        2026-11-14 14:12:37.000000000 
+0100
@@ -58,7 +58,10 @@
               result->signatures->pubkey_algo);
       exit (1);
     }
-  if (result->signatures->hash_algo != GPGME_MD_SHA1)
+  if (result->signatures->hash_algo != GPGME_MD_SHA1
+      && result->signatures->hash_algo != GPGME_MD_SHA256
+      && result->signatures->hash_algo != GPGME_MD_SHA384
+      && result->signatures->hash_algo != GPGME_MD_SHA512)
     {
       fprintf (stderr, "Wrong hash algorithm reported: %i\n",
               result->signatures->hash_algo);

Reply via email to