BN_GENCB_set_old

Populate a BN_GENCB with a legacy void-returning progress callback.

Synopsis

Declared in <openssl/bn.h>

void
BN_GENCB_set_old(
    BN_GENCB* gencb,
    void(* callback)(int, int, void*),
    void* cb_arg);

Parameters

NameDescription
gencbCallback object from BN_GENCB_new() (or a stack instance).
callbackOld-style callback receiving (event, progress, cb_arg).
cb_argOpaque pointer passed through to callback.