remove krb5_get_init_creds_opt_set_pkinit() for now
authorTom Yu <tlyu@mit.edu>
Wed, 31 Jan 2007 00:52:59 +0000 (00:52 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 31 Jan 2007 00:52:59 +0000 (00:52 +0000)
ticket: 5420
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19130 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kinit/kinit.c
src/lib/krb5/krb/gic_opt.c
src/lib/krb5/libkrb5.exports

index f8e5b77a4e0229c3d19ba9fd60efa8a940d29cd4..8037d8536f608d305364cb80963841435ccd74f1 100644 (file)
@@ -857,24 +857,6 @@ k5_kinit(opts, k5)
        }
     }
 
-#if 0  /* XXX Testing... */
-    code = krb5_get_init_creds_opt_set_pkinit(
-           k5->ctx,                            /* context */
-           options,                            /* get_init_creds_opt */
-           NULL,                               /* principal */
-           "/tmp/x509up_u20010",               /* X509_user_identity */
-           "/etc/grid-security/certificates",  /* X509_anchors */
-           NULL,                               /* X509_chain_list */
-           NULL,                               /* X509_revoke_list */
-           0,                                  /* flags */
-           NULL,                               /* prompter_fct */
-           NULL,                               /* prompter_data */
-           NULL);                              /* password */
-    if (code) {
-       com_err(progname, code, "while setting pkinit options");
-       goto cleanup;
-    }
-#endif
     switch (opts->action) {
     case INIT_PW:
        code = krb5_get_init_creds_password(k5->ctx, &my_creds, k5->me,
index 10fe759a6a6ec2e66bc4a7a273638d39005673c0..c96782088a233a24c4181efe193a693079efcba1 100644 (file)
@@ -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;
-}
index ff37a057785b1617eeb1ba84447cdebd0ef8bd39..39c92cca213c6fb1a64046c473a57019422cdf73 100644 (file)
@@ -449,7 +449,6 @@ krb5_get_init_creds_opt_set_change_password_prompt
 krb5_get_init_creds_opt_set_etype_list
 krb5_get_init_creds_opt_set_forwardable
 krb5_get_init_creds_opt_set_pa
-krb5_get_init_creds_opt_set_pkinit
 krb5_get_init_creds_opt_set_preauth_list
 krb5_get_init_creds_opt_set_proxiable
 krb5_get_init_creds_opt_set_renew_life