[#DSA_set0_pqg]
= DSA&lowbar;set0&lowbar;pqg
:mrdocs:

Set the DSA domain parameters p, q, and g, transferring ownership (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;dsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
DSA&lowbar;set0&lowbar;pqg(
    xref:DSA.adoc[DSA]* d,
    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.
====
== Description

Prefer EVP&lowbar;PKEY&lowbar;set&lowbar;bn&lowbar;param() for new code&period; Do not free `p,` `q,` or `g` after success&period;

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *d*
| DSA object to update&period;
| *p*
| Prime modulus&semi; ownership transfers to `d&period;`
| *q*
| Subprime &sol; order of g&semi; ownership transfers to `d&period;`
| *g*
| Generator&semi; ownership transfers to `d&period;`
|===


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