Use krb5_log

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3311 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-31 17:45:32 +00:00
parent d4f46d9de4
commit 712f9cb1c6
2 changed files with 5 additions and 0 deletions

View File

@@ -24,7 +24,11 @@ pop_log(POP *p, int stat, char *format, ...)
fprintf(p->trace,"%s\n",msgbuf);
fflush(p->trace);
} else {
#ifdef KERBEROS
krb5_log(p->context, p->logf, stat, "%s", msgbuf);
#else
syslog (stat,"%s",msgbuf);
#endif
}
va_end(ap);

View File

@@ -253,6 +253,7 @@ typedef struct { /* POP parameter block */
#endif
krb5_context context;
krb5_principal principal; /* principal auth as */
krb5_log_facility* logf;
int version; /* 4 or 5? */
int auth_level; /* Dont allow cleartext */
OtpContext otp_ctx; /* OTP context */