bx509d: Set log destination
This commit is contained in:

committed by
Nico Williams

parent
cf020532c2
commit
ba93778682
@@ -260,6 +260,8 @@ get_krb5_context(krb5_context *contextp)
|
|||||||
return 0;
|
return 0;
|
||||||
if ((ret = krb5_init_context(contextp)))
|
if ((ret = krb5_init_context(contextp)))
|
||||||
return *contextp = NULL, ret;
|
return *contextp = NULL, ret;
|
||||||
|
if (logfac)
|
||||||
|
krb5_set_log_dest(*contextp, logfac);
|
||||||
(void) pthread_setspecific(k5ctx, *contextp);
|
(void) pthread_setspecific(k5ctx, *contextp);
|
||||||
return *contextp ? 0 : ENOMEM;
|
return *contextp ? 0 : ENOMEM;
|
||||||
}
|
}
|
||||||
@@ -2819,6 +2821,7 @@ main(int argc, char **argv)
|
|||||||
err(1, "Could not init krb5 context");
|
err(1, "Could not init krb5 context");
|
||||||
|
|
||||||
bx509_openlog(context, "bx509d", &logfac);
|
bx509_openlog(context, "bx509d", &logfac);
|
||||||
|
krb5_set_log_dest(context, logfac);
|
||||||
load_plugins(context);
|
load_plugins(context);
|
||||||
|
|
||||||
if (allow_GET_flag == -1)
|
if (allow_GET_flag == -1)
|
||||||
|
Reference in New Issue
Block a user