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

index 626e15cc9cc9d43129f3554ecc73bc24df6f18bc..b5854f101a43f1aeccde0ce6f147501d21132e69 100644 (file)
@@ -174,7 +174,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;
 const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type)
        {
        const EVP_PKEY_ASN1_METHOD *t;
-       ENGINE *e;
 
        for (;;)
                {
 
        for (;;)
                {
@@ -186,6 +185,7 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type)
        if (pe)
                {
 #ifndef OPENSSL_NO_ENGINE
        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)
                /* type will contain the final unaliased type */
                e = ENGINE_get_pkey_asn1_meth_engine(type);
                if (e)