-bool rsa_generate(rsa_t *rsa, size_t bits, unsigned long exponent) {
- *rsa = RSA_generate_key(bits, exponent, indicator, NULL);
-
- return *rsa;
+rsa_t *rsa_generate(size_t bits, unsigned long exponent) {
+ return RSA_generate_key(bits, exponent, indicator, NULL);