From 659806d7ff6ac530946673bf564702d5d160558a Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 10 Sep 2015 16:28:11 -0700 Subject: [PATCH] Don't default to SHA-1 in |EVP_DigestSignInit|/|EVP_DigestVerifyInit|. This removes a hard link-time dependency on the SHA-1 code. The code was self-contradictory in whether it defaulted to SHA-1 or refused to default to SHA-1. Change-Id: I5ad7949bdd529df568904f87870313e3d8a57e72 Reviewed-on: https://boringssl-review.googlesource.com/5833 Reviewed-by: Adam Langley --- crypto/evp/digestsign.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crypto/evp/digestsign.c b/crypto/evp/digestsign.c index ccb4de4f..69c483ad 100644 --- a/crypto/evp/digestsign.c +++ b/crypto/evp/digestsign.c @@ -55,7 +55,6 @@ #include -#include #include #include "internal.h" @@ -78,10 +77,6 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, } ctx->pctx_ops = &md_pctx_ops; - if (type == NULL) { - type = EVP_sha1(); - } - if (type == NULL) { OPENSSL_PUT_ERROR(EVP, EVP_R_NO_DEFAULT_DIGEST); return 0;