[#DH_set_length]
= DH&lowbar;set&lowbar;length
:mrdocs:

Set the optional private&hyphen;value length hint on a DH object (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
DH&lowbar;set&lowbar;length(
    xref:DH.adoc[DH]* dh,
    long length);
----

[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 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dh*
| DH object to update&period;
| *length*
| Preferred length in bits of the secret exponent, or 0 for the default&period;
|===


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