diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-10-27 11:55:36 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-12-19 14:24:22 -0500 |
commit | 5fa526b9db4940a221606f36e25e36ca525a47ab (patch) | |
tree | 8d3f5151e82f45f3a285e8d82257d22bf67887f4 /src/lib/krb5/krb/preauth_ec.c | |
parent | 5c23bce0e8d3328bb36bc85ee10cfac486b8ae9b (diff) | |
download | krb5-5fa526b9db4940a221606f36e25e36ca525a47ab.tar.gz krb5-5fa526b9db4940a221606f36e25e36ca525a47ab.tar.xz krb5-5fa526b9db4940a221606f36e25e36ca525a47ab.zip |
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.
Diffstat (limited to 'src/lib/krb5/krb/preauth_ec.c')
-rw-r--r-- | src/lib/krb5/krb/preauth_ec.c | 7 |
1 files changed, 0 insertions, 7 deletions
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 <krb5/clpreauth_plugin.h> #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; |