[#DH_set0_pqg]
= DH&lowbar;set0&lowbar;pqg
:mrdocs:

Set the prime, optional subprime, and generator on a DH object, transferring ownership (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;set0&lowbar;pqg(
    xref:DH.adoc[DH]* dh,
    xref:BIGNUM.adoc[BIGNUM]* p,
    xref:BIGNUM.adoc[BIGNUM]* q,
    xref:BIGNUM.adoc[BIGNUM]* g);
----

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

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dh*
| DH object to update&period;
| *p*
| New modulus p&semi; ownership transfers to `dh` (must not be freed by the caller on success)&period;
| *q*
| Optional subprime q, or NULL&semi; ownership transfers when non&hyphen;NULL&period;
| *g*
| New generator g&semi; ownership transfers to `dh&period;`
|===


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