aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/gic_opt.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2007-01-31 00:52:59 +0000
committerTom Yu <tlyu@mit.edu>2007-01-31 00:52:59 +0000
commita633bc0799f01a73297d3800b752c39db60c797b (patch)
tree0ab98eb2d0304d04d7fb2234b7997b2c1baf498f /src/lib/krb5/krb/gic_opt.c
parenta112b4c90587472a9e330edd9173070d6dd01aad (diff)
downloadkrb5-a633bc0799f01a73297d3800b752c39db60c797b.zip
krb5-a633bc0799f01a73297d3800b752c39db60c797b.tar.gz
krb5-a633bc0799f01a73297d3800b752c39db60c797b.tar.bz2
remove krb5_get_init_creds_opt_set_pkinit() for now
ticket: 5420 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19130 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/gic_opt.c')
-rw-r--r--src/lib/krb5/krb/gic_opt.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/lib/krb5/krb/gic_opt.c b/src/lib/krb5/krb/gic_opt.c
index 10fe759..c967820 100644
--- a/src/lib/krb5/krb/gic_opt.c
+++ b/src/lib/krb5/krb/gic_opt.c
@@ -417,66 +417,3 @@ krb5_get_init_creds_opt_free_pa(krb5_context context,
}
free(preauth_data);
}
-
-
-/*
- * This function is provided for compatibility with Heimdal's
- * function of the same name. We ignore the principal,
- * password, and prompter parameters.
- */
-krb5_error_code KRB5_CALLCONV
-krb5_get_init_creds_opt_set_pkinit(krb5_context context,
- krb5_get_init_creds_opt *opt,
- krb5_principal principal,
- const char *x509_user_identity,
- const char *x509_anchors,
- char * const * x509_chain_list,
- char * const * x509_revoke_list,
- int flags,
- krb5_prompter_fct prompter,
- void *prompter_data,
- char *password)
-{
- int i;
- krb5_error_code retval;
-
-#define PKINIT_RSA_PROTOCOL 0x00000002 /* XXX */
-
- if (x509_user_identity != NULL) {
- retval = krb5_get_init_creds_opt_set_pa(context, opt,
- "X509_user_identity", x509_user_identity);
- if (retval)
- return retval;
- }
- if (x509_anchors != NULL) {
- retval = krb5_get_init_creds_opt_set_pa(context, opt,
- "X509_anchors", x509_anchors);
- if (retval)
- return retval;
- }
- if (x509_chain_list != NULL) {
- for (i = 0; x509_chain_list[i] != NULL; i++) {
- retval = krb5_get_init_creds_opt_set_pa(context, opt,
- "X509_chain_list", x509_chain_list[i]);
- if (retval)
- return retval;
- }
- }
- if (x509_revoke_list != NULL) {
- for (i = 0; x509_revoke_list[i] != NULL; i++) {
- retval = krb5_get_init_creds_opt_set_pa(context, opt,
- "X509_revoke_list", x509_revoke_list[i]);
- if (retval)
- return retval;
- }
- }
- if (flags != 0) {
- if (flags & PKINIT_RSA_PROTOCOL) {
- retval = krb5_get_init_creds_opt_set_pa(context, opt,
- "flag_RSA_PROTOCOL", "yes");
- if (retval)
- return retval;
- }
- }
- return retval;
-}