From 45087458612f8442b0b8a6481f00b1f1b8d57801 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Mon, 12 Nov 2018 15:54:04 -0600 Subject: [PATCH] Remove unreachable code. This is a remnant from just before https://boringssl-review.googlesource.com/23074. Change-Id: I3fded6107ac59f1129d040837da0c7cd109e7564 Reviewed-on: https://boringssl-review.googlesource.com/c/33106 Reviewed-by: Adam Langley Commit-Queue: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org --- crypto/ecdsa_extra/ecdsa_asn1.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crypto/ecdsa_extra/ecdsa_asn1.c b/crypto/ecdsa_extra/ecdsa_asn1.c index fbf4ccaf..e6212cc3 100644 --- a/crypto/ecdsa_extra/ecdsa_asn1.c +++ b/crypto/ecdsa_extra/ecdsa_asn1.c @@ -74,15 +74,7 @@ int ECDSA_sign(int type, const uint8_t *digest, size_t digest_len, uint8_t *sig, } int ret = 0; - ECDSA_SIG *s = NULL; - - if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { - OPENSSL_PUT_ERROR(ECDSA, ECDSA_R_NOT_IMPLEMENTED); - *sig_len = 0; - goto err; - } - - s = ECDSA_do_sign(digest, digest_len, eckey); + ECDSA_SIG *s = ECDSA_do_sign(digest, digest_len, eckey); if (s == NULL) { *sig_len = 0; goto err;