blob: f047e0dae33c8a70d8d2b58fe06cf5c40fd9677a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */
#include "config.h"
#include "gp_debug.h"
#include "gp_log.h"
/* global debug switch */
int gp_debug;
void gp_debug_enable(void)
{
gp_debug = 1;
GPDEBUG("Debug Enabled\n");
}
void gp_log_failure(gss_OID mech, uint32_t maj, uint32_t min)
{
char buf[MAX_LOG_LINE];
gp_fmt_status(mech, maj, min, buf, MAX_LOG_LINE);
fprintf(stderr, "Failed with: %s\n", buf);
}
|