Free resources in rsa_t.
[tinc] / src / openssl / rsa.c
index d39a1cb..a85bc8a 100644 (file)
@@ -88,3 +88,7 @@ bool rsa_private_decrypt(rsa_t *rsa, void *in, size_t len, void *out) {
        logger(LOG_ERR, "Unable to perform RSA decryption: %s", ERR_error_string(ERR_get_error(), NULL));
        return false;   
 }
+
+void rsa_free(rsa_t *rsa) {
+       RSA_free(*rsa);
+}