Skip to content
Snippets Groups Projects
Commit 9e61c904 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Display crypto engine name correctly in debug message.

parent 7efb955f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment