We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649530a commit 9730001Copy full SHA for 9730001
include/jwt-cpp/jwt.h
@@ -1215,7 +1215,8 @@ namespace jwt {
1215
std::string der_to_p1363_signature(const std::string& der_signature, std::error_code& ec) const {
1216
const unsigned char* possl_signature = reinterpret_cast<const unsigned char*>(der_signature.data());
1217
std::unique_ptr<ECDSA_SIG, decltype(&ECDSA_SIG_free)> sig(
1218
- d2i_ECDSA_SIG(nullptr, &possl_signature, der_signature.length()), ECDSA_SIG_free);
+ d2i_ECDSA_SIG(nullptr, &possl_signature, static_cast<long>(der_signature.length())),
1219
+ ECDSA_SIG_free);
1220
if (!sig) {
1221
ec = error::signature_generation_error::signature_decoding_failed;
1222
return {};
0 commit comments