Description: adb: Make compatible with openssl 1.1 OpenSSL version 1.1 brought some API changes which broke the build here, fix that by accessing rsa->n (and e) directly, using RSA_get0_key instead. Author: Chirayu Desai n); + RSA_get0_key(rsa, &n, &e, NULL); BN_set_bit(r, RSANUMWORDS * 32); BN_mod_sqr(rr, r, n, ctx); BN_div(NULL, rem, n, r32, ctx); @@ -96,7 +97,7 @@ static int RSA_to_RSAPublicKey(RSA *rsa, BN_div(n, rem, n, r32, ctx); pkey->n[i] = BN_get_word(rem); } - pkey->exponent = BN_get_word(rsa->e); + pkey->exponent = BN_get_word(e); out: BN_free(n0inv);