[#OPENSSL_INIT_set_config_filename]
= OPENSSL&lowbar;INIT&lowbar;set&lowbar;config&lowbar;filename
:mrdocs:

Set the configuration file path used when OPENSSL&lowbar;init&lowbar;crypto() loads config&period;

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;INIT&lowbar;set&lowbar;config&lowbar;filename(
    xref:OPENSSL_INIT_SETTINGS.adoc[OPENSSL&lowbar;INIT&lowbar;SETTINGS]* settings,
    char const* config&lowbar;filename);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *settings*
| Initialization settings object from OPENSSL&lowbar;INIT&lowbar;new()&period;
| *config&lowbar;filename*
| Path to an openssl&period;cnf&hyphen;style file&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
