diff options
author | Werner Koch <[email protected]> | 2020-09-01 18:43:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-09-01 18:43:57 +0000 |
commit | 2cd8bae23d7382588cf096df3eed83e02331a2bf (patch) | |
tree | 33d1132e0e52cd80ddfd9d9b624676cc25a8f491 /common/status.h | |
parent | sm: Fix a bug in the rfc2253 parser (diff) | |
download | gnupg-2cd8bae23d7382588cf096df3eed83e02331a2bf.tar.gz gnupg-2cd8bae23d7382588cf096df3eed83e02331a2bf.zip |
Use only one copy of the warn_server_mismatch function.
* common/asshelp.c (warn_server_version_mismatch): New. Actually a
slightly modified version of warn_version_mismatch found in other
modules.
* common/status.c (gnupg_status_strings): New.
* g10/cpr.c (write_status_strings2): New.
* g10/call-agent.c (warn_version_mismatch): Use the new unified
warn_server_version_mismatch function.
* g10/call-dirmngr.c (warn_version_mismatch): Ditto.
* g10/call-keyboxd.c (warn_version_mismatch): Ditto.
* sm/call-agent.c (warn_version_mismatch): Ditto.
* sm/call-dirmngr.c (warn_version_mismatch): Ditto.
* tools/card-call-scd.c (warn_version_mismatch): Ditto.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/status.h')
-rw-r--r-- | common/status.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/status.h b/common/status.h index aeab54202..477b29eaa 100644 --- a/common/status.h +++ b/common/status.h @@ -30,6 +30,8 @@ #ifndef GNUPG_COMMON_STATUS_H #define GNUPG_COMMON_STATUS_H +#include "../common/fwddecl.h" + enum { STATUS_ENTER, @@ -166,6 +168,8 @@ const char *get_status_string (int code); void gnupg_set_status_fd (int fd); void gnupg_status_printf (int no, const char *format, ...) GPGRT_ATTR_PRINTF(2,3); +gpg_error_t gnupg_status_strings (ctrl_t dummy, int no, + ...) GPGRT_ATTR_SENTINEL(0); const char *get_inv_recpsgnr_code (gpg_error_t err); |