Skip to content

Commit

Permalink
Use C++ cast
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
melpon and paullouisageneau authored Oct 21, 2023
1 parent aef6743 commit bb22238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/tlstransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx
} else {
// *cacert is a PEM content
mbedtls::check(mbedtls_x509_crt_parse(
&mCacert, (const unsigned char *)cacert->data(), cacert->size()));
&mCacert, (reinterpret_cast<const unsigned char *>(cacert->data()), cacert->size()));
}
mbedtls_ssl_conf_ca_chain(&mConf, &mCacert, NULL);
}
Expand Down

0 comments on commit bb22238

Please sign in to comment.