Lines Matching refs:engine

1153 static CURLcode ossl_set_engine(struct Curl_easy *data, const char *engine);
1366 if(!data->state.engine) { in cert_stuff()
1374 if(data->state.engine) { in cert_stuff()
1385 if(!ENGINE_ctrl(data->state.engine, ENGINE_CTRL_GET_CMD_FROM_NAME, in cert_stuff()
1392 if(!ENGINE_ctrl_cmd(data->state.engine, cmd_name, in cert_stuff()
1573 if(!data->state.engine) { in cert_stuff()
1581 if(data->state.engine) { in cert_stuff()
1593 priv_key = ENGINE_load_private_key(data->state.engine, key_file, in cert_stuff()
1798 static CURLcode ossl_set_engine(struct Curl_easy *data, const char *engine) in ossl_set_engine() argument
1804 e = ENGINE_by_id(engine); in ossl_set_engine()
1809 if(!strcmp(engine, e_id)) in ossl_set_engine()
1815 failf(data, "SSL Engine '%s' not found", engine); in ossl_set_engine()
1819 if(data->state.engine) { in ossl_set_engine()
1820 ENGINE_finish(data->state.engine); in ossl_set_engine()
1821 ENGINE_free(data->state.engine); in ossl_set_engine()
1822 data->state.engine = NULL; in ossl_set_engine()
1829 engine, ossl_strerror(ERR_get_error(), buf, sizeof(buf))); in ossl_set_engine()
1832 data->state.engine = e; in ossl_set_engine()
1835 (void)engine; in ossl_set_engine()
1846 if(data->state.engine) { in ossl_set_engine_default()
1847 if(ENGINE_set_default(data->state.engine, ENGINE_METHOD_ALL) > 0) { in ossl_set_engine_default()
1849 ENGINE_get_id(data->state.engine)); in ossl_set_engine_default()
1853 ENGINE_get_id(data->state.engine)); in ossl_set_engine_default()
2038 if(data->state.engine) { in ossl_close_all()
2039 ENGINE_finish(data->state.engine); in ossl_close_all()
2040 ENGINE_free(data->state.engine); in ossl_close_all()
2041 data->state.engine = NULL; in ossl_close_all()