We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 004ef8b commit 17457f9Copy full SHA for 17457f9
sources/crypto.cpp
@@ -55,7 +55,8 @@ QByteArray lmCrypto::generateRSA() {
55
EVP_PKEY_CTX_free(ctx);
56
57
BIO* bio = BIO_new(BIO_s_mem());
58
- if (PEM_write_bio_PUBKEY(bio, pKey)) {
+ // Use RSAPublicKey for compatibility with older clients
59
+ if (PEM_write_bio_RSAPublicKey(bio, EVP_PKEY_get0_RSA(pKey))) {
60
publicKey.resize(BIO_pending(bio));
61
BIO_read(bio, publicKey.data(), publicKey.size());
62
}
0 commit comments