stop warning with no-engine
authorDr. Stephen Henson <steve@openssl.org>
Thu, 13 Jan 2011 15:42:59 +0000 (15:42 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 13 Jan 2011 15:42:59 +0000 (15:42 +0000)
crypto/asn1/ameth_lib.c

index 9a8b6cc22264f6f35ffef862e9d389ea1204f4db..5a581b90ead7df33f0bac48248352e47053dd883 100644 (file)
@@ -172,7 +172,6 @@ static const EVP_PKEY_ASN1_METHOD *pkey_asn1_find(int type)
 const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type)
        {
        const EVP_PKEY_ASN1_METHOD *t;
-       ENGINE *e;
 
        for (;;)
                {
@@ -184,6 +183,7 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type)
        if (pe)
                {
 #ifndef OPENSSL_NO_ENGINE
+               ENGINE *e;
                /* type will contain the final unaliased type */
                e = ENGINE_get_pkey_asn1_meth_engine(type);
                if (e)