fix new calls to `kdc_log'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2685 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-01 16:14:08 +00:00
parent b3b8d17b2a
commit b99e1eba67

View File

@@ -94,13 +94,13 @@ as_rep(krb5_context context,
} }
if (client->valid_start && *client->valid_start > kdc_time) { if (client->valid_start && *client->valid_start > kdc_time) {
kdc_log(0, "Client not yet valid -- %s", client_name); kdc_log(context, 0, "Client not yet valid -- %s", client_name);
ret = KRB5KDC_ERR_CLIENT_NOTYET; ret = KRB5KDC_ERR_CLIENT_NOTYET;
goto out; goto out;
} }
if (client->valid_end && *client->valid_end < kdc_time) { if (client->valid_end && *client->valid_end < kdc_time) {
kdc_log(0, "Client expired -- %s", client_name); kdc_log(context, 0, "Client expired -- %s", client_name);
ret = KRB5KDC_ERR_NAME_EXP; ret = KRB5KDC_ERR_NAME_EXP;
goto out; goto out;
} }
@@ -114,13 +114,13 @@ as_rep(krb5_context context,
} }
if (server->valid_start && *server->valid_start > kdc_time) { if (server->valid_start && *server->valid_start > kdc_time) {
kdc_log(0, "Server not yet valid -- %s", server_name); kdc_log(context, 0, "Server not yet valid -- %s", server_name);
ret = KRB5KDC_ERR_SERVICE_NOTYET; ret = KRB5KDC_ERR_SERVICE_NOTYET;
goto out; goto out;
} }
if (server->valid_end && *server->valid_end < kdc_time) { if (server->valid_end && *server->valid_end < kdc_time) {
kdc_log(0, "Server expired -- %s", server_name); kdc_log(context, 0, "Server expired -- %s", server_name);
ret = KRB5KDC_ERR_SERVICE_EXP; ret = KRB5KDC_ERR_SERVICE_EXP;
goto out; goto out;
} }
@@ -141,7 +141,7 @@ as_rep(krb5_context context,
if (client->pw_end && *client->pw_end < kdc_time if (client->pw_end && *client->pw_end < kdc_time
&& !server->flags.change_pw) { && !server->flags.change_pw) {
ret = KRB5KDC_ERR_KEY_EXPIRED; ret = KRB5KDC_ERR_KEY_EXPIRED;
kdc_log(0, "Client (%s)'s key has expired", client_name); kdc_log(context, 0, "Client (%s)'s key has expired", client_name);
goto out; goto out;
} }