crypt_prog: use RSA_new() instead of calloc()

This commit is contained in:
David Anderson 2014-06-26 17:42:48 -07:00
parent df48d6cae1
commit dcbe8b303a
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ int main(int argc, char** argv) {
} }
} else { } else {
// o2b // o2b
rsa_key_ = (RSA *)calloc(1, sizeof(RSA)); rsa_key_ = RSA_new();
if (rsa_key_ == NULL) { if (rsa_key_ == NULL) {
die("could not allocate memory for RSA structure.\n"); die("could not allocate memory for RSA structure.\n");
} }