From: Greg Hudson Date: Fri, 6 Jun 2014 21:56:23 +0000 (-0400) Subject: Remove stub pkinit_win2k code X-Git-Tag: krb5-1.13-alpha1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08bdd2e94157146ed35384c4d01639338d766f0f;p=thirdparty%2Fkrb5.git Remove stub pkinit_win2k code As contributed, the PKINIT module contained code to read the pkinit_win2k variable, but never used it. Get rid of the structure field and the code to populate it. --- diff --git a/src/plugins/preauth/pkinit/pkinit.h b/src/plugins/preauth/pkinit/pkinit.h index efaa162184..328dee5b70 100644 --- a/src/plugins/preauth/pkinit/pkinit.h +++ b/src/plugins/preauth/pkinit/pkinit.h @@ -92,7 +92,6 @@ extern int longhorn; /* XXX Talking to a Longhorn server? */ #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" -#define KRB5_CONF_PKINIT_WIN2K "pkinit_win2k" #define KRB5_CONF_PKINIT_WIN2K_REQUIRE_BINDING "pkinit_win2k_require_binding" /* Make pkiDebug(fmt,...) print, or not. */ @@ -178,7 +177,6 @@ typedef struct _pkinit_req_opts { int require_crl_checking; int dh_size; /* initial request DH modulus size (default=1024) */ int require_hostname_match; - int win2k_target; int win2k_require_cksum; } pkinit_req_opts; diff --git a/src/plugins/preauth/pkinit/pkinit_clnt.c b/src/plugins/preauth/pkinit/pkinit_clnt.c index 55b38811f7..b1c92dd021 100644 --- a/src/plugins/preauth/pkinit/pkinit_clnt.c +++ b/src/plugins/preauth/pkinit/pkinit_clnt.c @@ -948,10 +948,6 @@ pkinit_client_profile(krb5_context context, pkiDebug("pkinit_client_profile %p %p %p %p\n", context, plgctx, reqctx, realm); - pkinit_libdefault_boolean(context, realm, - KRB5_CONF_PKINIT_WIN2K, - reqctx->opts->win2k_target, - &reqctx->opts->win2k_target); pkinit_libdefault_boolean(context, realm, KRB5_CONF_PKINIT_WIN2K_REQUIRE_BINDING, reqctx->opts->win2k_require_cksum, diff --git a/src/plugins/preauth/pkinit/pkinit_lib.c b/src/plugins/preauth/pkinit/pkinit_lib.c index a7bf54e3de..1cbbed7f07 100644 --- a/src/plugins/preauth/pkinit/pkinit_lib.c +++ b/src/plugins/preauth/pkinit/pkinit_lib.c @@ -63,7 +63,6 @@ pkinit_init_req_opts(pkinit_req_opts **reqopts) opts->dh_or_rsa = DH_PROTOCOL; opts->require_crl_checking = 0; opts->dh_size = PKINIT_DEFAULT_DH_MIN_BITS; - opts->win2k_target = 0; opts->win2k_require_cksum = 0; *reqopts = opts;