]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
OpenSSL 0.9.7 or newer required for ENGINE_CTRL_GET_CMD_FROM_NAME definition
authorYang Tse <yangsita@gmail.com>
Sat, 14 Nov 2009 11:33:49 +0000 (11:33 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 14 Nov 2009 11:33:49 +0000 (11:33 +0000)
lib/ssluse.c

index 67509eee811da1b1f2f69ba303987f786dc6d63b..6cf26057328d87f689ae8fb72eb57f45bfebb82c 100644 (file)
@@ -376,12 +376,14 @@ int cert_stuff(struct connectdata *conn,
           params.cert_id = cert_file;
           params.cert = NULL;
 
+#ifdef ENGINE_CTRL_GET_CMD_FROM_NAME
           /* Does the engine supports LOAD_CERT_CTRL ? */
           if (!ENGINE_ctrl(data->state.engine, ENGINE_CTRL_GET_CMD_FROM_NAME,
                            0, (void *)cmd_name, NULL)) {
             failf(data, "ssl engine does not support loading certificates");
             return 0;
           }
+#endif
           /* Load the certificate from the engine */
           if (!ENGINE_ctrl_cmd(data->state.engine, cmd_name,
                                0, &params, NULL, 1)) {