Skip to content

Commit

Permalink
Make it compatible with OpenSSL 1.0. (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Feb 27, 2025
1 parent 2f06cbb commit 8076c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/MySQLMessage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ int MySQLRSAAuthRequest::encode(struct iovec vectors[], int max)
EVP_PKEY_CTX *pkey_ctx;
int ret = -1;

bio = BIO_new_mem_buf(public_key_.c_str(), public_key_.size());
bio = BIO_new_mem_buf((void *)public_key_.c_str(), public_key_.size());
if (bio)
{
pkey = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL);
Expand Down

0 comments on commit 8076c75

Please sign in to comment.