[#ENGINE_set_default_string]
= ENGINE&lowbar;set&lowbar;default&lowbar;string
:mrdocs:

Set defaults for the method kinds named in a comma&hyphen;separated list&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
ENGINE&lowbar;set&lowbar;default&lowbar;string(
    xref:ENGINE.adoc[ENGINE]* e,
    char const* def&lowbar;list);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 if the list is invalid or registration fails&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *e*
| ENGINE whose implementations become defaults for the listed kinds&period;
| *def&lowbar;list*
| Comma&hyphen;separated names such as &quot;RSA&quot;, &quot;DSA&quot;, &quot;DH&quot;, &quot;RAND&quot;, &quot;CIPHERS&quot;, &quot;DIGESTS&quot;, &quot;PKEY&quot;, &quot;PKEY&lowbar;CRYPTO&quot;, &quot;PKEY&lowbar;ASN1&quot;, or &quot;ALL&quot;&period;
|===


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