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

Name

Description

gencb

Callback object from BN_GENCB_new() (or a stack instance).

callback

Old‐style callback receiving (event, progress, cb_arg).

cb_arg

Opaque pointer passed through to callback.

Created with MrDocs