[#DSA_meth_set_mod_exp]
= DSA&lowbar;meth&lowbar;set&lowbar;mod&lowbar;exp
:mrdocs:

Set the modular&hyphen;exponentiation callback on a 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;mod&lowbar;exp(
    xref:DSA_METHOD-07a.adoc[DSA&lowbar;METHOD]* dsam,
    int(* mod&lowbar;exp)(xref:DSA.adoc[DSA]*, xref:BIGNUM.adoc[BIGNUM]*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BIGNUM.adoc[BIGNUM] const*, xref:BN_CTX.adoc[BN&lowbar;CTX]*, xref:BN_MONT_CTX.adoc[BN&lowbar;MONT&lowbar;CTX]*));
----

[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
| *dsam*
| Method table to update&period;
| *mod&lowbar;exp*
| Callback performing the DSA modular exponentiation, or NULL to clear&period;
|===


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