[#DSA_meth_set_keygen]
= DSA&lowbar;meth&lowbar;set&lowbar;keygen
:mrdocs:

Set the key&hyphen;generation callback on a custom DSA&lowbar;METHOD (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;meth&lowbar;set&lowbar;keygen(
    xref:DSA_METHOD-07a.adoc[DSA&lowbar;METHOD]* dsam,
    int(* keygen)(xref:DSA.adoc[DSA]*));
----

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

1 on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dsam*
| Method object to update&period;
| *keygen*
| Callback that fills public&sol;private key values on a DSA object, or NULL to clear&period;
|===


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