[#BN_GENCB_set_old]
= BN&lowbar;GENCB&lowbar;set&lowbar;old
:mrdocs:

Populate a BN&lowbar;GENCB with a legacy void&hyphen;returning progress callback&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
BN&lowbar;GENCB&lowbar;set&lowbar;old(
    xref:BN_GENCB.adoc[BN&lowbar;GENCB]* gencb,
    void(* callback)(int, int, void*),
    void* cb&lowbar;arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *gencb*
| Callback object from BN&lowbar;GENCB&lowbar;new() (or a stack instance)&period;
| *callback*
| Old&hyphen;style callback receiving (event, progress, `cb&lowbar;arg)&period;`
| *cb&lowbar;arg*
| Opaque pointer passed through to `callback&period;`
|===


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