From: Zdenek Dohnal Date: Wed, 12 Mar 2025 15:26:55 +0000 (+0100) Subject: backend/ipp.c: Raise alert if there is issue with cert X-Git-Tag: v2.4.12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=453ca51f82b6801db436e0517e6a9556b41659a3;p=thirdparty%2Fcups.git backend/ipp.c: Raise alert if there is issue with cert Currently we show more detailed info about this error in debug logs, but since there are not many desktops to pick up our dBUS notification, it would be great to report it in CUPS log too. --- diff --git a/backend/ipp.c b/backend/ipp.c index c1fe334e1f..6888eff5c5 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -817,12 +817,12 @@ main(int argc, /* I - Number of command-line args */ /* Trust keywords */ static const char * const trust_msgs[] = { - "Credentials are OK/trusted", - "Credentials are invalid", - "Credentials have changed", - "Credentials are expired", - "Credentials have been renewed", - "Credentials are unknown/new" + _("Credentials are OK/trusted"), + _("Credentials are invalid"), + _("Credentials have changed"), + _("Credentials are expired"), + _("Credentials have been renewed"), + _("Credentials are unknown/new") }; fputs("DEBUG: Connection is encrypted.\n", stderr); @@ -847,6 +847,7 @@ main(int argc, /* I - Number of command-line args */ if (trusts[trust]) { update_reasons(NULL, trusts[trust]); + _cupsLangPrintFilter(stderr, "ALERT", "%s", trust_msgs[trust]); return (CUPS_BACKEND_STOP); }