diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-01-10 21:21:53 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-01-10 21:21:53 +0000 |
commit | 9e61c904acb523aae971dcf9fbe447de90f39fbb (patch) | |
tree | 483198fc2e31ca69bf242f44692bc7817003d6b7 /lib | |
parent | 7efb955fd0cba0ba1592237f3832524a142e23a4 (diff) |
Display crypto engine name correctly in debug message.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index d6b6125aa..55afb2446 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -634,8 +634,8 @@ CURLcode Curl_ossl_set_engine(struct SessionHandle *data, const char *engine) if (data->state.engine) { ENGINE_finish(data->state.engine); ENGINE_free(data->state.engine); + data->state.engine = NULL; } - data->state.engine = NULL; if (!ENGINE_init(e)) { char buf[256]; @@ -661,10 +661,10 @@ CURLcode Curl_ossl_set_engine_default(struct SessionHandle *data) #ifdef HAVE_OPENSSL_ENGINE_H if (data->state.engine) { if (ENGINE_set_default(data->state.engine, ENGINE_METHOD_ALL) > 0) { - infof(data,"set default crypto engine %s\n", data->state.engine); + infof(data,"set default crypto engine '%s'\n", ENGINE_get_id(data->state.engine)); } else { - failf(data, "set default crypto engine %s failed", data->state.engine); + failf(data, "set default crypto engine '%s' failed", ENGINE_get_id(data->state.engine)); return CURLE_SSL_ENGINE_SETFAILED; } } |