From 5fa526b9db4940a221606f36e25e36ca525a47ab Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 27 Oct 2012 11:55:36 -0400 Subject: Make clpreauth flags function optional With one exception (KRB5_PADATA_PKINIT_KX), every padata type processed by a clpreauth module is now a real preauthentication type. Reduce the amount of boilerplate required for a clpreauth module by making the flags method optional if all of the preauth types advertised by the module are real. --- src/lib/krb5/krb/preauth_ec.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/lib/krb5/krb/preauth_ec.c') diff --git a/src/lib/krb5/krb/preauth_ec.c b/src/lib/krb5/krb/preauth_ec.c index bd72322d6..b1978336a 100644 --- a/src/lib/krb5/krb/preauth_ec.c +++ b/src/lib/krb5/krb/preauth_ec.c @@ -33,12 +33,6 @@ #include #include "int-proto.h" -static int -ec_flags(krb5_context context, krb5_preauthtype pa_type) -{ - return PA_REAL; -} - static krb5_error_code ec_prep_questions(krb5_context context, krb5_clpreauth_moddata moddata, krb5_clpreauth_modreq modreq, krb5_get_init_creds_opt *opt, @@ -166,7 +160,6 @@ clpreauth_encrypted_challenge_initvt(krb5_context context, int maj_ver, vt = (krb5_clpreauth_vtable)vtable; vt->name = "encrypted_challenge"; vt->pa_type_list = ec_types; - vt->flags = ec_flags; vt->prep_questions = ec_prep_questions; vt->process = ec_process; return 0; -- cgit