summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-02-14 15:45:21 +0000
committermiod <miod@openbsd.org>2015-02-14 15:45:21 +0000
commit943e00d7889cb90e4e541c8d4dc7711971da5747 (patch)
tree3aaddfb26572a68cc264c539dc0c4607864b65d9 /lib/libssl/src
parentUnchecked allocations in x509_name_canon(). (diff)
downloadwireguard-openbsd-943e00d7889cb90e4e541c8d4dc7711971da5747.tar.xz
wireguard-openbsd-943e00d7889cb90e4e541c8d4dc7711971da5747.zip
Remove DEBUG_PKCS5V2 code.
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/evp/p5_crpt2.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/lib/libssl/src/crypto/evp/p5_crpt2.c b/lib/libssl/src/crypto/evp/p5_crpt2.c
index c9eef8f49a5..6fc88a0437a 100644
--- a/lib/libssl/src/crypto/evp/p5_crpt2.c
+++ b/lib/libssl/src/crypto/evp/p5_crpt2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_crpt2.c,v 1.18 2015/02/10 09:52:35 miod Exp $ */
+/* $OpenBSD: p5_crpt2.c,v 1.19 2015/02/14 15:45:21 miod Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -71,13 +71,6 @@
#include "evp_locl.h"
-/* set this to print out info about the keygen algorithm */
-/* #define DEBUG_PKCS5V2 */
-
-#ifdef DEBUG_PKCS5V2
-static void h__dump (const unsigned char *p, int len);
-#endif
-
/* This is an implementation of PKCS#5 v2.0 password based encryption key
* derivation function PBKDF2.
* SHA1 version verified against test vectors posted by Peter Gutmann
@@ -153,15 +146,6 @@ PKCS5_PBKDF2_HMAC(const char *pass, int passlen, const unsigned char *salt,
p += cplen;
}
HMAC_CTX_cleanup(&hctx_tpl);
-#ifdef DEBUG_PKCS5V2
- fprintf(stderr, "Password:\n");
- h__dump (pass, passlen);
- fprintf(stderr, "Salt:\n");
- h__dump (salt, saltlen);
- fprintf(stderr, "Iteration count %d\n", iter);
- fprintf(stderr, "Key:\n");
- h__dump (out, keylen);
-#endif
return 1;
}
@@ -323,12 +307,4 @@ err:
return rv;
}
-#ifdef DEBUG_PKCS5V2
-static void h__dump (const unsigned char *p, int len)
-{
- for (; len --; p++)
- fprintf(stderr, "%02X ", *p);
- fprintf(stderr, "\n");
-}
-#endif
#endif