DH_get_nid

Return the named-group NID for a DH object if its parameters match a known group (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_get_nid(DH const* dh);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Matching NID such as NID_ffdhe2048, or NID_undef if the parameters are not a named group.

Parameters

NameDescription
dhDH object to query.