diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-14 11:33:49 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-14 11:33:49 +0000 |
commit | a8ddd6ce3141bc4c8745eddae31db1887eeacd0a (patch) | |
tree | c1745e3edf1ee6dc295325d4a6d0ef6bb1577d3e | |
parent | eb16c0e1ebd56f0895ac475595a8fc70de98506a (diff) |
OpenSSL 0.9.7 or newer required for ENGINE_CTRL_GET_CMD_FROM_NAME definition
-rw-r--r-- | lib/ssluse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 67509eee8..6cf260573 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -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, ¶ms, NULL, 1)) { |