RSA_get_ex_data
#define RSA_get_app_data(s) RSA_get_ex_data(s,0)
void *RSA_get_ex_data(const RSA *r, int idx);
pubkey_hash = RSA_get_ex_data(rsa, 0);
config = RSA_get_ex_data(rsa, 1);
if ((k11 = RSA_get_ex_data(rsa, rsa_idx)) == NULL) {