summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-07-10 12:08:50 +0000
committermiod <miod@openbsd.org>2014-07-10 12:08:50 +0000
commita33b90bae608ef353ab8bf2127fd140d0517b997 (patch)
treeb929af856d6c940ad45773f5899a16445dfe687f /lib
parentTweak some comments. We do not really need to know that "New!" flags were (diff)
downloadwireguard-openbsd-a33b90bae608ef353ab8bf2127fd140d0517b997.tar.xz
wireguard-openbsd-a33b90bae608ef353ab8bf2127fd140d0517b997.zip
Remove #if 0 code which dumps your data to stdout.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/pkcs7/pk7_doit.c10
-rw-r--r--lib/libssl/src/crypto/pkcs7/pk7_doit.c10
2 files changed, 2 insertions, 18 deletions
diff --git a/lib/libcrypto/pkcs7/pk7_doit.c b/lib/libcrypto/pkcs7/pk7_doit.c
index df846a22cc4..0abcde7febe 100644
--- a/lib/libcrypto/pkcs7/pk7_doit.c
+++ b/lib/libcrypto/pkcs7/pk7_doit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_doit.c,v 1.24 2014/07/02 16:33:19 jsing Exp $ */
+/* $OpenBSD: pk7_doit.c,v 1.25 2014/07/10 12:08:50 miod Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1037,14 +1037,6 @@ PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si, X509 *x509)
}
if ((message_digest->length != (int)md_len) ||
(memcmp(message_digest->data, md_dat, md_len))) {
-#if 0
- {
- int ii;
- for (ii = 0; ii < message_digest->length; ii++)
- printf("%02X",message_digest->data[ii]); printf(" sent\n");
- for (ii=0; ii<md_len; ii++) printf("%02X",md_dat[ii]); printf(" calc\n");
- }
-#endif
PKCS7err(PKCS7_F_PKCS7_SIGNATUREVERIFY,
PKCS7_R_DIGEST_FAILURE);
ret = -1;
diff --git a/lib/libssl/src/crypto/pkcs7/pk7_doit.c b/lib/libssl/src/crypto/pkcs7/pk7_doit.c
index df846a22cc4..0abcde7febe 100644
--- a/lib/libssl/src/crypto/pkcs7/pk7_doit.c
+++ b/lib/libssl/src/crypto/pkcs7/pk7_doit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_doit.c,v 1.24 2014/07/02 16:33:19 jsing Exp $ */
+/* $OpenBSD: pk7_doit.c,v 1.25 2014/07/10 12:08:50 miod Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1037,14 +1037,6 @@ PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si, X509 *x509)
}
if ((message_digest->length != (int)md_len) ||
(memcmp(message_digest->data, md_dat, md_len))) {
-#if 0
- {
- int ii;
- for (ii = 0; ii < message_digest->length; ii++)
- printf("%02X",message_digest->data[ii]); printf(" sent\n");
- for (ii=0; ii<md_len; ii++) printf("%02X",md_dat[ii]); printf(" calc\n");
- }
-#endif
PKCS7err(PKCS7_F_PKCS7_SIGNATUREVERIFY,
PKCS7_R_DIGEST_FAILURE);
ret = -1;