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

Validate a Diffie&hyphen;Hellman public key and return a bitmask of problems (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(
    xref:DH.adoc[DH] const* dh,
    xref:BIGNUM.adoc[BIGNUM] const* pub&lowbar;key,
    int* codes);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[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&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;
| *codes*
| Receives zero or a combination of DH&lowbar;CHECK&lowbar;PUBKEY&lowbar;&ast; reason bits&period;
|===


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