From 8ee7467b985c4dc0db8fd2fcb1f9fcffac61c2a0 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 25 Oct 2000 19:24:18 +0000 Subject: [PATCH] valid base64 strings with embedded spaces were rejected. --- bin/named/tsigconf.c | 6 +----- lib/dns/tsigconf.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/bin/named/tsigconf.c b/bin/named/tsigconf.c index f146d61d9e..0f48b08a5c 100644 --- a/bin/named/tsigconf.c +++ b/bin/named/tsigconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: tsigconf.c,v 1.11 2000/08/01 01:23:02 tale Exp $ */ +/* $Id: tsigconf.c,v 1.12 2000/10/25 19:24:18 bwelling Exp $ */ #include @@ -78,10 +78,6 @@ add_initial_keys(dns_c_kdeflist_t *list, dns_tsig_keyring_t *ring, alg = &tempalg; } - if (strlen(key->secret) % 4 != 0) { - ret = ISC_R_BADBASE64; - goto failure; - } secretalloc = secretlen = strlen(key->secret) * 3 / 4; secret = isc_mem_get(mctx, secretlen); if (secret == NULL) { diff --git a/lib/dns/tsigconf.c b/lib/dns/tsigconf.c index f146d61d9e..0f48b08a5c 100644 --- a/lib/dns/tsigconf.c +++ b/lib/dns/tsigconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: tsigconf.c,v 1.11 2000/08/01 01:23:02 tale Exp $ */ +/* $Id: tsigconf.c,v 1.12 2000/10/25 19:24:18 bwelling Exp $ */ #include @@ -78,10 +78,6 @@ add_initial_keys(dns_c_kdeflist_t *list, dns_tsig_keyring_t *ring, alg = &tempalg; } - if (strlen(key->secret) % 4 != 0) { - ret = ISC_R_BADBASE64; - goto failure; - } secretalloc = secretlen = strlen(key->secret) * 3 / 4; secret = isc_mem_get(mctx, secretlen); if (secret == NULL) {