DH_check

Validate Diffie-Hellman parameters and return a bitmask of problems (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_check(
    DH const* dh,
    int* codes);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the check routine ran successfully (inspect codes), or 0 on hard failure.

Parameters

NameDescription
dhDH object whose domain parameters are checked.
codesReceives zero or a combination of DH_CHECK_* reason bits.