Tell if we manged to verify the PAC or not

This commit is contained in:
Love Hornquist Astrand
2010-06-11 09:53:47 -07:00
parent bf9ee30c44
commit 75c8250abf

View File

@@ -86,14 +86,19 @@ _kdc_pac_verify(krb5_context context,
const krb5_principal client_principal, const krb5_principal client_principal,
hdb_entry_ex *client, hdb_entry_ex *client,
hdb_entry_ex *server, hdb_entry_ex *server,
krb5_pac *pac) krb5_pac *pac,
int *verified)
{ {
if (windcft == NULL) { krb5_error_code ret;
krb5_set_error_message(context, EINVAL, "Can't verify PAC, no function");
return EINVAL; if (windcft == NULL)
} return 0;
return (windcft->pac_verify)(windcctx, context,
client_principal, client, server, pac); ret = windcft->pac_verify(windcctx, context,
client_principal, client, server, pac);
if (ret == 0)
*verified = 1;
return ret;
} }
krb5_error_code krb5_error_code