summaryrefslogtreecommitdiffstats
path: root/src/include/krb5
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2012-10-12 10:33:36 -0400
committerGreg Hudson <ghudson@mit.edu>2012-10-12 11:44:14 -0400
commit6f143d99b3668e6020a1525f839acac54934dbb5 (patch)
treef391697e9288ca7ddb10fc2b27655e96be06ba73 /src/include/krb5
parent816c7b59c3869e004d4ad150c7f04d026bb42177 (diff)
downloadkrb5-6f143d99b3668e6020a1525f839acac54934dbb5.tar.gz
krb5-6f143d99b3668e6020a1525f839acac54934dbb5.tar.xz
krb5-6f143d99b3668e6020a1525f839acac54934dbb5.zip
Add responder support to get_as_key()
This follows the design laid out on the project page: http://k5wiki.kerberos.org/wiki/Projects/Password_response_item
Diffstat (limited to 'src/include/krb5')
-rw-r--r--src/include/krb5/krb5.hin10
-rw-r--r--src/include/krb5/preauth_plugin.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index 933d2b450..db71f962d 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -6357,6 +6357,16 @@ krb5_prompter_posix(krb5_context context, void *data, const char *name,
const char *banner, int num_prompts,
krb5_prompt prompts[]);
+/**
+ * Long-term password responder question
+ *
+ * This question is asked when the long-term password is needed. It has no
+ * challenge and the response is simply the password string.
+ *
+ * @version First introduced in 1.11
+ */
+#define KRB5_RESPONDER_QUESTION_PASSWORD "password"
+
typedef struct krb5_responder_context_st *krb5_responder_context;
/**
diff --git a/src/include/krb5/preauth_plugin.h b/src/include/krb5/preauth_plugin.h
index a9a2ab9d2..2ae077c94 100644
--- a/src/include/krb5/preauth_plugin.h
+++ b/src/include/krb5/preauth_plugin.h
@@ -206,6 +206,9 @@ typedef struct krb5_clpreauth_callbacks_st {
krb5_clpreauth_rock rock,
const char *question);
+ /* Indicate interest in the AS key through the responder interface. */
+ void (*need_as_key)(krb5_context context, krb5_clpreauth_rock rock);
+
/* End of version 2 clpreauth callbacks (added in 1.11). */
} *krb5_clpreauth_callbacks;