[#DH_check_pub_key_ex]
= DH&lowbar;check&lowbar;pub&lowbar;key&lowbar;ex
:mrdocs:

Validate a Diffie&hyphen;Hellman public key and report problems via the error queue (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;check&lowbar;pub&lowbar;key&lowbar;ex(
    xref:DH.adoc[DH] const* dh,
    xref:BIGNUM.adoc[BIGNUM] const* pub&lowbar;key);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 if the public key looks suitable, or 0 if checks fail (reasons are pushed to the error stack)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dh*
| DH object providing the domain parameters used for the check&period;
| *pub&lowbar;key*
| Public key value to validate against those parameters&period;
|===


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