Skip to content

Commit 453ca51

Browse files
committed
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.
1 parent 71a88c8 commit 453ca51

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

backend/ipp.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -817,12 +817,12 @@ main(int argc, /* I - Number of command-line args */
817817
/* Trust keywords */
818818
static const char * const trust_msgs[] =
819819
{
820-
"Credentials are OK/trusted",
821-
"Credentials are invalid",
822-
"Credentials have changed",
823-
"Credentials are expired",
824-
"Credentials have been renewed",
825-
"Credentials are unknown/new"
820+
_("Credentials are OK/trusted"),
821+
_("Credentials are invalid"),
822+
_("Credentials have changed"),
823+
_("Credentials are expired"),
824+
_("Credentials have been renewed"),
825+
_("Credentials are unknown/new")
826826
};
827827

828828
fputs("DEBUG: Connection is encrypted.\n", stderr);
@@ -847,6 +847,7 @@ main(int argc, /* I - Number of command-line args */
847847
if (trusts[trust])
848848
{
849849
update_reasons(NULL, trusts[trust]);
850+
_cupsLangPrintFilter(stderr, "ALERT", "%s", trust_msgs[trust]);
850851
return (CUPS_BACKEND_STOP);
851852
}
852853

0 commit comments

Comments
 (0)