Dear all,

the following patch against today's stable snapshot removes unused code
in asn1_write_micalg(). The calculated EVP_MD is never used.

Best regards,

   Martin

diff -ru openssl-0.9.8-stable-SNAP-20090209.ORIG/crypto/asn1/asn_mime.c
openssl-0.9.8-stable-SNAP-20090209/crypto/asn1/asn_mime.c
--- openssl-0.9.8-stable-SNAP-20090209.ORIG/crypto/asn1/asn_mime.c 2009-02-09 
22:17:21.000000000 +0100
+++ openssl-0.9.8-stable-SNAP-20090209/crypto/asn1/asn_mime.c 2009-02-09 
22:53:02.000000000 +0100
@@ -152,7 +152,6 @@

 static int asn1_write_micalg(BIO *out, STACK_OF(X509_ALGOR) *mdalgs)
        {
-       const EVP_MD *md;
        int i, have_unknown = 0, write_comma, md_nid;
        have_unknown = 0;
        write_comma = 0;
@@ -162,7 +161,6 @@
                        BIO_write(out, ",", 1);
                write_comma = 1;
                md_nid = OBJ_obj2nid(sk_X509_ALGOR_value(mdalgs, i)->algorithm);
-               md = EVP_get_digestbynid(md_nid);
                switch(md_nid)
                        {
                        case NID_sha1:

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to