MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cups_gss_printf

Function cups_gss_printf

cups/auth.c:915–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913 */
914
915static void
916cups_gss_printf(OM_uint32 major_status,/* I - Major status code */
917 OM_uint32 minor_status,/* I - Minor status code */
918 const char *message) /* I - Prefix for error message */
919{
920 OM_uint32 err_major_status, /* Major status code for display */
921 err_minor_status; /* Minor status code for display */
922 OM_uint32 msg_ctx; /* Message context */
923 gss_buffer_desc major_status_string = GSS_C_EMPTY_BUFFER,
924 /* Major status message */
925 minor_status_string = GSS_C_EMPTY_BUFFER;
926 /* Minor status message */
927
928
929 msg_ctx = 0;
930 err_major_status = gss_display_status(&err_minor_status,
931 major_status,
932 GSS_C_GSS_CODE,
933 GSS_C_NO_OID,
934 &msg_ctx,
935 &major_status_string);
936
937 if (!GSS_ERROR(err_major_status))
938 gss_display_status(&err_minor_status, minor_status, GSS_C_MECH_CODE,
939 GSS_C_NULL_OID, &msg_ctx, &minor_status_string);
940
941 DEBUG_printf(("1%s: %s, %s", message, (char *)major_status_string.value,
942 (char *)minor_status_string.value));
943
944 gss_release_buffer(&err_minor_status, &major_status_string);
945 gss_release_buffer(&err_minor_status, &minor_status_string);
946}
947# endif /* DEBUG */
948#endif /* HAVE_GSSAPI */
949

Callers 3

auth.cFile · 0.85
ifFunction · 0.85
cups_gss_getnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected