mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-03 07:55:22 -04:00
add cast to fix compile
This commit is contained in:
1 parent
3655b25b7c
commit
1275948744
1 file changed
+2
-1
+2
-1
@@ -39,7 +39,8 @@ std::pair <std::string, unsigned int> verifyToken(std::string jwt_token_str, std
|
||||
return std::make_pair("", 0);
|
||||
}
|
||||
|
||||
err = jwt_decode(&jwt, jwt_token_str.c_str(), key.c_str(), key.length());
|
||||
err = jwt_decode(&jwt, jwt_token_str.c_str(),
|
||||
reinterpret_cast<const unsigned char *>(key.c_str()), key.length());
|
||||
if (err) {
|
||||
jwt_free(jwt);
|
||||
Error("Could not decode JWT");
|
||||
|
||||
Reference in new issue
Block a user