]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove stub pkinit_mapping_file code
authorGreg Hudson <ghudson@mit.edu>
Sun, 1 Jun 2014 14:44:51 +0000 (10:44 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 3 Jun 2014 16:08:36 +0000 (12:08 -0400)
As contributed, the PKINIT code contained code to read a mapping
filename, but never used the resulting structure variable.  Get rid of
the structure field and the code to populate it.

src/plugins/preauth/pkinit/pkinit.h
src/plugins/preauth/pkinit/pkinit_identity.c
src/plugins/preauth/pkinit/pkinit_srv.c

index ee1334b8b3249a88768fbad374254a1dfd44c324..efaa1621842cf47154577309493f313fb74a98bc 100644 (file)
@@ -89,7 +89,6 @@ extern int longhorn;      /* XXX Talking to a Longhorn server? */
 #define KRB5_CONF_PKINIT_KDC_HOSTNAME           "pkinit_kdc_hostname"
 #define KRB5_CONF_PKINIT_KDC_OCSP               "pkinit_kdc_ocsp"
 #define KRB5_CONF_PKINIT_LONGHORN               "pkinit_longhorn"
-#define KRB5_CONF_PKINIT_MAPPING_FILE           "pkinit_mapping_file"
 #define KRB5_CONF_PKINIT_POOL                   "pkinit_pool"
 #define KRB5_CONF_PKINIT_REQUIRE_CRL_CHECKING   "pkinit_require_crl_checking"
 #define KRB5_CONF_PKINIT_REVOKE                 "pkinit_revoke"
@@ -194,7 +193,6 @@ typedef struct _pkinit_identity_opts {
     char **intermediates;
     char **crls;
     char *ocsp;
-    char *dn_mapping_file;
     int  idtype;
     char *cert_filename;
     char *key_filename;
index eb198f4f76491e4d71aecab3e1c521d10c4069d5..177a2cad82faa0469f2a087d3eadfd2880d48380 100644 (file)
@@ -126,7 +126,6 @@ pkinit_init_identity_opts(pkinit_identity_opts **idopts)
     opts->intermediates = NULL;
     opts->crls = NULL;
     opts->ocsp = NULL;
-    opts->dn_mapping_file = NULL;
 
     opts->cert_filename = NULL;
     opts->key_filename = NULL;
index 1179216b5ee680fbc9f8c170d246309ce593fced..190e854414963f3256818055b7bcba4e380b65ba 100644 (file)
@@ -1177,10 +1177,6 @@ pkinit_init_kdc_profile(krb5_context context, pkinit_kdc_context plgctx)
                              KRB5_CONF_PKINIT_KDC_OCSP,
                              &plgctx->idopts->ocsp);
 
-    pkinit_kdcdefault_string(context, plgctx->realmname,
-                             KRB5_CONF_PKINIT_MAPPING_FILE,
-                             &plgctx->idopts->dn_mapping_file);
-
     pkinit_kdcdefault_integer(context, plgctx->realmname,
                               KRB5_CONF_PKINIT_DH_MIN_BITS,
                               PKINIT_DEFAULT_DH_MIN_BITS,