Set the optional private‐value length hint on a DH object (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_set_length(
    DH* dh,
    long length);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

dh

DH object to update.

length

Preferred length in bits of the secret exponent, or 0 for the default.

Created with MrDocs