Skip to content

Commit 84cd863

Browse files
authored
Merge pull request #6034 from BOINC/dpa_crypt
crypt_prog: fix build errors
2 parents 97b7fde + e67eb2e commit 84cd863

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/crypt_prog.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,23 +460,15 @@ int convkey_private_b2o(const std::string& input, const std::string& output) {
460460
print_error("scan_key_hex");
461461
return 2;
462462
}
463-
#ifdef HAVE_OPAQUE_RSA_DSA_DH
464463
private_to_openssl(private_key, rsa_key);
465-
#else
466-
private_to_openssl(private_key, &rsa_key);
467-
#endif
468464

469465

470466
fpriv = fopen(output.c_str(), "w+");
471467
if (!fpriv) {
472468
print_error("fopen");
473469
return 2;
474470
}
475-
#ifdef HAVE_OPAQUE_RSA_DSA_DH
476471
PEM_write_RSAPrivateKey(fpriv, rsa_key, NULL, NULL, 0, 0, NULL);
477-
#else
478-
PEM_write_RSAPrivateKey(fpriv, &rsa_key, NULL, NULL, 0, 0, NULL);
479-
#endif
480472
fclose(fpriv);
481473
return 0;
482474
}

0 commit comments

Comments
 (0)