Populate a BN_GENCB with a new-style progress callback that returns success/failure.
Declared in <openssl/bn.h>
void
BN_GENCB_set(
BN_GENCB* gencb,
int(* callback)(int, int, BN_GENCB*),
void* cb_arg);
| Name | Description |
|---|---|
| gencb | Callback object from BN_GENCB_new() (or a stack instance where supported). |
| callback | Callback receiving (event, progress, gencb); should return 1 on success or 0 on error. |
| cb_arg | Opaque pointer stored in gencb and retrievable via BN_GENCB_get_arg(). |