krb5 commit: Remove stub pkinit_mapping_file code

Greg Hudson ghudson at MIT.EDU
Tue Jun 3 12:19:57 EDT 2014


https://github.com/krb5/krb5/commit/a12a0e57a8b9c752059fd0ee370c93ea589e4b7b
commit a12a0e57a8b9c752059fd0ee370c93ea589e4b7b
Author: Greg Hudson <ghudson at mit.edu>
Date:   Sun Jun 1 10:44:51 2014 -0400

    Remove stub pkinit_mapping_file code
    
    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          |    2 --
 src/plugins/preauth/pkinit/pkinit_identity.c |    1 -
 src/plugins/preauth/pkinit/pkinit_srv.c      |    4 ----
 3 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/plugins/preauth/pkinit/pkinit.h b/src/plugins/preauth/pkinit/pkinit.h
index ee1334b..efaa162 100644
--- a/src/plugins/preauth/pkinit/pkinit.h
+++ b/src/plugins/preauth/pkinit/pkinit.h
@@ -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;
diff --git a/src/plugins/preauth/pkinit/pkinit_identity.c b/src/plugins/preauth/pkinit/pkinit_identity.c
index eb198f4..177a2ca 100644
--- a/src/plugins/preauth/pkinit/pkinit_identity.c
+++ b/src/plugins/preauth/pkinit/pkinit_identity.c
@@ -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;
diff --git a/src/plugins/preauth/pkinit/pkinit_srv.c b/src/plugins/preauth/pkinit/pkinit_srv.c
index 1179216..190e854 100644
--- a/src/plugins/preauth/pkinit/pkinit_srv.c
+++ b/src/plugins/preauth/pkinit/pkinit_srv.c
@@ -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,


More information about the cvs-krb5 mailing list