summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rsa/rsa_sign.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-06-20 01:07:24 +0000
committerdoug <doug@openbsd.org>2015-06-20 01:07:24 +0000
commitb9b6a34e8e25df3fd344b18bf149e1e84e68918e (patch)
tree288ba40a74fde33646faaf9d6dc043efef906b2c /lib/libcrypto/rsa/rsa_sign.c
parentTweak whitespace and remove dangling, unneeded "else". (diff)
downloadwireguard-openbsd-b9b6a34e8e25df3fd344b18bf149e1e84e68918e.tar.xz
wireguard-openbsd-b9b6a34e8e25df3fd344b18bf149e1e84e68918e.zip
Remove obsolete MDC-2DES from libcrypto.
ok deraadt@ jsing@ miod@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_sign.c')
-rw-r--r--lib/libcrypto/rsa/rsa_sign.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/libcrypto/rsa/rsa_sign.c b/lib/libcrypto/rsa/rsa_sign.c
index a446b563b32..09d8ef329db 100644
--- a/lib/libcrypto/rsa/rsa_sign.c
+++ b/lib/libcrypto/rsa/rsa_sign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_sign.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */
+/* $OpenBSD: rsa_sign.c,v 1.23 2015/06/20 01:07:25 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -180,21 +180,6 @@ int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len,
if (i <= 0)
goto err;
- /*
- * Oddball MDC2 case: signature can be OCTET STRING.
- * check for correct tag and length octets.
- */
- if (dtype == NID_mdc2 && i == 18 && s[0] == 0x04 && s[1] == 0x10) {
- if (rm) {
- memcpy(rm, s + 2, 16);
- *prm_len = 16;
- ret = 1;
- } else if (memcmp(m, s + 2, 16))
- RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE);
- else
- ret = 1;
- }
-
/* Special case: SSL signature */
if (dtype == NID_md5_sha1) {
if (i != SSL_SIG_LENGTH || memcmp(s, m, SSL_SIG_LENGTH))