Skip to content

Commit 8076c75

Browse files
authored
Make it compatible with OpenSSL 1.0. (#1700)
1 parent 2f06cbb commit 8076c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/protocol/MySQLMessage.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ int MySQLRSAAuthRequest::encode(struct iovec vectors[], int max)
583583
EVP_PKEY_CTX *pkey_ctx;
584584
int ret = -1;
585585

586-
bio = BIO_new_mem_buf(public_key_.c_str(), public_key_.size());
586+
bio = BIO_new_mem_buf((void *)public_key_.c_str(), public_key_.size());
587587
if (bio)
588588
{
589589
pkey = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL);

0 commit comments

Comments
 (0)