--- gvpe/src/gvpectrl.C 2013/07/19 18:18:28 1.17 +++ gvpe/src/gvpectrl.C 2016/06/29 22:32:48 1.18 @@ -280,8 +280,14 @@ RSA *rsa = RSA_new (); BIGNUM *e = BN_new (); BN_set_bit (e, 0); BN_set_bit (e, 16); // 0x10001, 65537 + +#if OPENSSL_VERSION_NUMBER < 0x10100000 BN_GENCB cb; BN_GENCB_set (&cb, indicator, 0); +#else + BN_GENCB *cb = BN_GENCB_new (); + BN_GENCB_set (cb, indicator, 0); +#endif require (RSA_generate_key_ex (rsa, bits, e, &cb));