Move the check client/anonoymous logic to pkinit.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24578 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1058,7 +1058,6 @@ _kdc_as_rep(krb5_context context,
|
|||||||
if (ret == 0 && pkp == NULL)
|
if (ret == 0 && pkp == NULL)
|
||||||
goto ts_enc;
|
goto ts_enc;
|
||||||
|
|
||||||
if (!b->kdc_options.request_anonymous) {
|
|
||||||
ret = _kdc_pk_check_client(context,
|
ret = _kdc_pk_check_client(context,
|
||||||
config,
|
config,
|
||||||
client,
|
client,
|
||||||
@@ -1073,13 +1072,6 @@ _kdc_as_rep(krb5_context context,
|
|||||||
pkp = NULL;
|
pkp = NULL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
client_cert = strdup("anonymous client client");
|
|
||||||
if (client_cert == NULL) {
|
|
||||||
ret = ENOMEM;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
found_pa = 1;
|
found_pa = 1;
|
||||||
et.flags.pre_authent = 1;
|
et.flags.pre_authent = 1;
|
||||||
|
Reference in New Issue
Block a user