mirror of https://github.com/BOINC/boinc.git
crypt_prog: use RSA_new() instead of calloc()
This commit is contained in:
parent
df48d6cae1
commit
dcbe8b303a
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue