From dcbe8b303ab4e4869714a38a2f1684230c941307 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 26 Jun 2014 17:42:48 -0700 Subject: [PATCH] crypt_prog: use RSA_new() instead of calloc() --- lib/crypt_prog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypt_prog.cpp b/lib/crypt_prog.cpp index 3d453616bf..473308f6b5 100644 --- a/lib/crypt_prog.cpp +++ b/lib/crypt_prog.cpp @@ -357,7 +357,7 @@ int main(int argc, char** argv) { } } else { // o2b - rsa_key_ = (RSA *)calloc(1, sizeof(RSA)); + rsa_key_ = RSA_new(); if (rsa_key_ == NULL) { die("could not allocate memory for RSA structure.\n"); }