ECDSA_get_ex_data
void *ECDSA_get_ex_data(EC_KEY *d, int idx);
pubkey_hash = ECDSA_get_ex_data(eckey, 0);
config = ECDSA_get_ex_data(eckey, 1);