DH_check_params

Perform a lightweight check that DH parameters p and g look plausible (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_check_params(
    DH const* dh,
    int* ret);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer DH_check() when a more thorough validation is required.

Return Value

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

Parameters

NameDescription
dhDH object whose domain parameters are checked.
retReceives zero or DH_CHECK_* reason bits describing problems found.