krb5 commit: Add responder support to preauth_encts/preauth_ec
Greg Hudson
ghudson at MIT.EDU
Fri Oct 12 11:44:50 EDT 2012
https://github.com/krb5/krb5/commit/40e035eb8049e09bd7555ceded018a8f1b291e88
commit 40e035eb8049e09bd7555ceded018a8f1b291e88
Author: Nathaniel McCallum <npmccallum at redhat.com>
Date: Fri Oct 12 10:34:19 2012 -0400
Add responder support to preauth_encts/preauth_ec
src/lib/krb5/krb/preauth_ec.c | 12 ++++++++++++
src/lib/krb5/krb/preauth_encts.c | 14 ++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/lib/krb5/krb/preauth_ec.c b/src/lib/krb5/krb/preauth_ec.c
index 48a4a17..2e0785a 100644
--- a/src/lib/krb5/krb/preauth_ec.c
+++ b/src/lib/krb5/krb/preauth_ec.c
@@ -40,6 +40,17 @@ ec_flags(krb5_context context, krb5_preauthtype pa_type)
}
static krb5_error_code
+ec_prep_questions(krb5_context context, krb5_clpreauth_moddata moddata,
+ krb5_clpreauth_modreq modreq, krb5_get_init_creds_opt *opt,
+ krb5_clpreauth_callbacks cb, krb5_clpreauth_rock rock,
+ krb5_kdc_req *request, krb5_data *encoded_request_body,
+ krb5_data *encoded_previous_request, krb5_pa_data *pa_data)
+{
+ cb->need_as_key(context, rock);
+ return 0;
+}
+
+static krb5_error_code
ec_process(krb5_context context, krb5_clpreauth_moddata moddata,
krb5_clpreauth_modreq modreq, krb5_get_init_creds_opt *opt,
krb5_clpreauth_callbacks cb,
@@ -156,6 +167,7 @@ clpreauth_encrypted_challenge_initvt(krb5_context context, int maj_ver,
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;
}
diff --git a/src/lib/krb5/krb/preauth_encts.c b/src/lib/krb5/krb/preauth_encts.c
index 559c670..f42710e 100644
--- a/src/lib/krb5/krb/preauth_encts.c
+++ b/src/lib/krb5/krb/preauth_encts.c
@@ -36,6 +36,19 @@ encts_flags(krb5_context context, krb5_preauthtype pa_type)
}
static krb5_error_code
+encts_prep_questions(krb5_context context, krb5_clpreauth_moddata moddata,
+ krb5_clpreauth_modreq modreq,
+ krb5_get_init_creds_opt *opt, krb5_clpreauth_callbacks cb,
+ krb5_clpreauth_rock rock, krb5_kdc_req *request,
+ krb5_data *encoded_request_body,
+ krb5_data *encoded_previous_request,
+ krb5_pa_data *pa_data)
+{
+ cb->need_as_key(context, rock);
+ return 0;
+}
+
+static krb5_error_code
encts_process(krb5_context context, krb5_clpreauth_moddata moddata,
krb5_clpreauth_modreq modreq, krb5_get_init_creds_opt *opt,
krb5_clpreauth_callbacks cb, krb5_clpreauth_rock rock,
@@ -125,6 +138,7 @@ clpreauth_encrypted_timestamp_initvt(krb5_context context, int maj_ver,
vt->name = "encrypted_timestamp";
vt->pa_type_list = encts_pa_types;
vt->flags = encts_flags;
+ vt->prep_questions = encts_prep_questions;
vt->process = encts_process;
return 0;
}
More information about the cvs-krb5
mailing list