diff options
| author | Werner Koch <[email protected]> | 2026-03-02 16:58:39 +0100 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2026-03-02 16:58:48 +0100 |
| commit | ded00304c77fb16ce245f99c13f7646b0aa7243b (patch) | |
| tree | 39457a707821cfdba063ba04e78eaa6d231ed811 | |
| parent | w32:estream: Use INVALID_SOCKET to check invalid socket. (diff) | |
| download | libgpg-error-ded00304c77fb16ce245f99c13f7646b0aa7243b.tar.gz libgpg-error-ded00304c77fb16ce245f99c13f7646b0aa7243b.zip | |
New error codes for algorithm compliance
--
This will help to implement
GnuPG-bug-id: 6644
| -rw-r--r-- | NEWS | 16 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | doc/errorref.txt | 15 | ||||
| -rw-r--r-- | src/err-codes.h.in | 6 |
4 files changed, 36 insertions, 3 deletions
@@ -1,3 +1,19 @@ +Noteworthy changes in version 1.60 (unreleased) [C41/A41/R_] +----------------------------------------------- + + * New error codes. [T6644] + + + + * Interface changes relative to the 1.57 release: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + GPG_ERR_PUBKEY_NON_COMPLIANT NEW. + GPG_ERR_CIPHER_NON_COMPLIANT NEW. + GPG_ERR_DIGEST_NON_COMPLIANT NEW. + + Release-info: https://dev.gnupg.org/T8112 + + Noteworthy changes in version 1.59 (2026-02-18) [C41/A41/R2] ----------------------------------------------- diff --git a/configure.ac b/configure.ac index 7ef2e58..58bbf92 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ min_automake_version="1.14" # See below for the LT versions. m4_define([mym4_package],[libgpg-error]) m4_define([mym4_major], [1]) -m4_define([mym4_minor], [59]) +m4_define([mym4_minor], [60]) # Below is m4 magic to extract and compute the revision number, the # decimalized short revision number, a beta version string, and a flag diff --git a/doc/errorref.txt b/doc/errorref.txt index ae1ae73..f15d27b 100644 --- a/doc/errorref.txt +++ b/doc/errorref.txt @@ -796,6 +796,16 @@ GPG_ERR_SEXP_ODD_HEX_NUMBERS Odd hexadecimal numbers in S-expression GPG_ERR_SEXP_BAD_OCT_CHAR Bad octal character in S-expression +GPG_ERR_PUBKEY_NON_COMPLIANT Non-compliant public key algorithm + + GnuPG: - The public key algorithms is not allowed by the current + compliance mode. + +GPG_ERR_CIPHER_NON_COMPLIANT Non-compliant cipher algorithm + + GnuPG: - The symmetric encryption algorithm is not allowed by the + current compliance mode. + GPG_ERR_UNEXPECTED_PACKET Unexpected packet GnuPG: - An OpenPGP packet was not expected at this place of the @@ -1117,6 +1127,11 @@ GPG_ERR_BAD_RESET_CODE No reset code A wrong reset code was used. +GPG_ERR_DIGEST_NON_COMPLIANT Non-compliant digest algorithm + + GnuPG: - The digest (hash) algorithm is not allowed by the + current compliance mode. + GPG_ERR_SYSTEM_BUG System bug detected The underlying operating system misbehaved. For example it wrote diff --git a/src/err-codes.h.in b/src/err-codes.h.in index 15c543f..245f0ba 100644 --- a/src/err-codes.h.in +++ b/src/err-codes.h.in @@ -246,8 +246,8 @@ 211 GPG_ERR_SEXP_BAD_HEX_CHAR Bad hexadecimal character in S-expression 212 GPG_ERR_SEXP_ODD_HEX_NUMBERS Odd hexadecimal numbers in S-expression 213 GPG_ERR_SEXP_BAD_OCT_CHAR Bad octal character in S-expression - -# 214 to 216 are free to be used. +214 GPG_ERR_PUBKEY_NON_COMPLIANT Non-compliant public key algorithm +215 GPG_ERR_CIPHER_NON_COMPLIANT Non-compliant cipher algorithm 216 GPG_ERR_UNEXPECTED_PACKET Unexpected packet 217 GPG_ERR_SUBKEYS_EXP_OR_REV All subkeys are expired or revoked 218 GPG_ERR_DB_CORRUPTED Database is corrupted @@ -343,6 +343,8 @@ 320 GPG_ERR_BAD_PUK Bad PUK 321 GPG_ERR_NO_RESET_CODE No reset code 322 GPG_ERR_BAD_RESET_CODE Bad reset code +323 GPG_ERR_DIGEST_NON_COMPLIANT Non-compliant digest algorithm + # This range is free for use. 666 GPG_ERR_SYSTEM_BUG System bug detected |
