[#BN_GENCB_call]
= BN&lowbar;GENCB&lowbar;call
:mrdocs:

Invoke a BN&lowbar;GENCB progress callback with event codes `a` and `b&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;GENCB&lowbar;call(
    xref:BN_GENCB.adoc[BN&lowbar;GENCB]* cb,
    int a,
    int b);
----

== Return Value

1 to continue, or 0 if the callback requested cancellation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cb*
| Callback object populated with BN&lowbar;GENCB&lowbar;set() or BN&lowbar;GENCB&lowbar;set&lowbar;old()&semi; NULL is ignored&period;
| *a*
| Primary event &sol; stage code passed to the callback&period;
| *b*
| Secondary progress value passed to the callback&period;
|===


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