From 2d4b8349268be71f01fb39c7468e134120ce7b24 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 10 Nov 2003 01:29:27 +0000 Subject: [PATCH] Oops! --- crypto/pkcs7/pk7_doit.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 64404b0630..35c7dcd0b3 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -101,39 +101,6 @@ static ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7) return NULL; } -static int PKCS7_bio_add_digest(BIO **pbio, X509_ALGOR *alg) - { - BIO *btmp; - EVP_MD *md; - if ((btmp=BIO_new(BIO_f_md())) == NULL) - { - PKCS7err(PKCS7_F_PKCS7_DATAINIT,ERR_R_BIO_LIB); - goto err; - } - - md=EVP_get_digestbyobj(xa->algorithm); - if (md == NULL) - { - PKCS7err(PKCS7_F_PKCS7_DATAINIT,PKCS7_R_UNKNOWN_DIGEST_TYPE); - goto err; - } - - BIO_set_md(btmp,evp_md); - if (*pout == NULL) - *pout=btmp; - else - BIO_push(*pout,btmp); - btmp=NULL; - - return 1; - - err: - if (btmp) - BIO_free(btmp); - return 0; - - } - BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) { int i; -- 2.25.1