Skip to content

Commit

Permalink
Merge pull request #6034 from BOINC/dpa_crypt
Browse files Browse the repository at this point in the history
crypt_prog: fix build errors
  • Loading branch information
AenBleidd authored Jan 28, 2025
2 parents 97b7fde + e67eb2e commit 84cd863
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/crypt_prog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,23 +460,15 @@ int convkey_private_b2o(const std::string& input, const std::string& output) {
print_error("scan_key_hex");
return 2;
}
#ifdef HAVE_OPAQUE_RSA_DSA_DH
private_to_openssl(private_key, rsa_key);
#else
private_to_openssl(private_key, &rsa_key);
#endif


fpriv = fopen(output.c_str(), "w+");
if (!fpriv) {
print_error("fopen");
return 2;
}
#ifdef HAVE_OPAQUE_RSA_DSA_DH
PEM_write_RSAPrivateKey(fpriv, rsa_key, NULL, NULL, 0, 0, NULL);
#else
PEM_write_RSAPrivateKey(fpriv, &rsa_key, NULL, NULL, 0, 0, NULL);
#endif
fclose(fpriv);
return 0;
}
Expand Down

0 comments on commit 84cd863

Please sign in to comment.