Don't compile login() in openssl_rsa_private_key_t if ENGINE support is disabled...
authorTobias Brunner <tobias@strongswan.org>
Fri, 13 May 2011 11:11:11 +0000 (13:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 13 May 2011 11:11:11 +0000 (13:11 +0200)
src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c

index 0b607c3..d1afd94 100644 (file)
@@ -455,6 +455,7 @@ openssl_rsa_private_key_t *openssl_rsa_private_key_load(key_type_t type,
        return NULL;
 }
 
+#ifndef OPENSSL_NO_ENGINE
 /**
  * Login to engine with a PIN specified for a keyid
  */
@@ -496,6 +497,7 @@ static bool login(ENGINE *engine, chunk_t keyid)
        }
        return success;
 }
+#endif /* OPENSSL_NO_ENGINE */
 
 /**
  * See header.