[#EVP_PKEY_set1_DSA]
= EVP&lowbar;PKEY&lowbar;set1&lowbar;DSA
:mrdocs:

Set the DSA key referenced by an EVP&lowbar;PKEY, incrementing the DSA reference count&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EVP&lowbar;PKEY&lowbar;set1&lowbar;DSA(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:dsa_st.adoc[dsa&lowbar;st]* key);
----

[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
| *pkey*
| Destination EVP&lowbar;PKEY to assign&period;
| *key*
| DSA key to associate&semi; its reference count is incremented&period;
|===


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