jwt-cpp: Errors after upgrade
Hello, today I’ve upgraded jwt-cpp and I have compiler errors:
[ 94%] Building CXX object CMakeFiles/nms.dir/src/controller/UserController.cpp.o
In file included from /home/marcin/projects/nms/back/src/dto/Token.hpp:5,
from /home/marcin/projects/nms/back/src/service/tokenService.hpp:7,
from /home/marcin/projects/nms/back/src/service/tokenService.cpp:5:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘std::string jwt::algorithm::eddsa::sign(const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:970:9: error: ‘EVP_DigestSign’ was not declared in this scope; did you mean ‘EVP_DigestSignInit’?
970 | if (EVP_DigestSign(ctx.get(),
| ^~~~~~~~~~~~~~
| EVP_DigestSignInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘void jwt::algorithm::eddsa::verify(const string&, const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:998:16: error: ‘EVP_DigestVerify’ was not declared in this scope; did you mean ‘EVP_DigestVerifyInit’?
998 | auto res = EVP_DigestVerify(ctx.get(),
| ^~~~~~~~~~~~~~~~
| EVP_DigestVerifyInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In constructor ‘jwt::algorithm::ed448::ed448(const string&, const string&, const string&, const string&)’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:1316:81: error: ‘EVP_shake256’ was not declared in this scope; did you mean ‘EVP_sha256’?
1316 | : eddsa(public_key, private_key, public_key_password, private_key_password, EVP_shake256, "EdDSA")
| ^~~~~~~~~~~~
| EVP_sha256
In file included from /home/marcin/projects/nms/back/src/dto/Token.hpp:5,
from /home/marcin/projects/nms/back/src/service/tokenService.hpp:7,
from /home/marcin/projects/nms/back/src/service/userCache.hpp:9,
from /home/marcin/projects/nms/back/src/service/userCache.cpp:2:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘std::string jwt::algorithm::eddsa::sign(const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:970:9: error: ‘EVP_DigestSign’ was not declared in this scope; did you mean ‘EVP_DigestSignInit’?
970 | if (EVP_DigestSign(ctx.get(),
| ^~~~~~~~~~~~~~
| EVP_DigestSignInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘void jwt::algorithm::eddsa::verify(const string&, const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:998:16: error: ‘EVP_DigestVerify’ was not declared in this scope; did you mean ‘EVP_DigestVerifyInit’?
998 | auto res = EVP_DigestVerify(ctx.get(),
| ^~~~~~~~~~~~~~~~
| EVP_DigestVerifyInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In constructor ‘jwt::algorithm::ed448::ed448(const string&, const string&, const string&, const string&)’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:1316:81: error: ‘EVP_shake256’ was not declared in this scope; did you mean ‘EVP_sha256’?
1316 | : eddsa(public_key, private_key, public_key_password, private_key_password, EVP_shake256, "EdDSA")
| ^~~~~~~~~~~~
| EVP_sha256
In file included from /home/marcin/projects/nms/back/src/dto/Token.hpp:5,
from /home/marcin/projects/nms/back/src/service/tokenService.hpp:7,
from /home/marcin/projects/nms/back/src/service/userCache.hpp:9,
from /home/marcin/projects/nms/back/src/controller/UserController.hpp:7,
from /home/marcin/projects/nms/back/src/controller/UserController.cpp:1:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘std::string jwt::algorithm::eddsa::sign(const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:970:9: error: ‘EVP_DigestSign’ was not declared in this scope; did you mean ‘EVP_DigestSignInit’?
970 | if (EVP_DigestSign(ctx.get(),
| ^~~~~~~~~~~~~~
| EVP_DigestSignInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘void jwt::algorithm::eddsa::verify(const string&, const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:998:16: error: ‘EVP_DigestVerify’ was not declared in this scope; did you mean ‘EVP_DigestVerifyInit’?
998 | auto res = EVP_DigestVerify(ctx.get(),
| ^~~~~~~~~~~~~~~~
| EVP_DigestVerifyInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In constructor ‘jwt::algorithm::ed448::ed448(const string&, const string&, const string&, const string&)’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:1316:81: error: ‘EVP_shake256’ was not declared in this scope; did you mean ‘EVP_sha256’?
1316 | : eddsa(public_key, private_key, public_key_password, private_key_password, EVP_shake256, "EdDSA")
| ^~~~~~~~~~~~
| EVP_sha256
In file included from /home/marcin/projects/nms/back/src/dto/Token.hpp:5,
from /home/marcin/projects/nms/back/src/dto/apiDTO/AuthResponse.hpp:5,
from /home/marcin/projects/nms/back/src/dto/apiDTO/AuthResponse.cpp:2:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘std::string jwt::algorithm::eddsa::sign(const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:970:9: error: ‘EVP_DigestSign’ was not declared in this scope; did you mean ‘EVP_DigestSignInit’?
970 | if (EVP_DigestSign(ctx.get(),
| ^~~~~~~~~~~~~~
| EVP_DigestSignInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘void jwt::algorithm::eddsa::verify(const string&, const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:998:16: error: ‘EVP_DigestVerify’ was not declared in this scope; did you mean ‘EVP_DigestVerifyInit’?
998 | auto res = EVP_DigestVerify(ctx.get(),
| ^~~~~~~~~~~~~~~~
| EVP_DigestVerifyInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In constructor ‘jwt::algorithm::ed448::ed448(const string&, const string&, const string&, const string&)’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:1316:81: error: ‘EVP_shake256’ was not declared in this scope; did you mean ‘EVP_sha256’?
1316 | : eddsa(public_key, private_key, public_key_password, private_key_password, EVP_shake256, "EdDSA")
| ^~~~~~~~~~~~
| EVP_sha256
make[3]: *** [CMakeFiles/nms.dir/build.make:135: CMakeFiles/nms.dir/src/service/tokenService.cpp.o] Błąd 1
make[3]: *** Oczekiwanie na niezakończone zadania....
make[3]: *** [CMakeFiles/nms.dir/build.make:148: CMakeFiles/nms.dir/src/service/userCache.cpp.o] Błąd 1
make[3]: *** [CMakeFiles/nms.dir/build.make:96: CMakeFiles/nms.dir/src/dto/apiDTO/AuthResponse.cpp.o] Błąd 1
In file included from /home/marcin/projects/nms/back/src/dto/Token.hpp:5,
from /home/marcin/projects/nms/back/src/service/tokenService.hpp:7,
from /home/marcin/projects/nms/back/src/service/userCache.hpp:9,
from /home/marcin/projects/nms/back/src/controller/InitController.hpp:12,
from /home/marcin/projects/nms/back/src/controller/InitController.cpp:1:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘std::string jwt::algorithm::eddsa::sign(const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:970:9: error: ‘EVP_DigestSign’ was not declared in this scope; did you mean ‘EVP_DigestSignInit’?
970 | if (EVP_DigestSign(ctx.get(),
| ^~~~~~~~~~~~~~
| EVP_DigestSignInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In member function ‘void jwt::algorithm::eddsa::verify(const string&, const string&, std::error_code&) const’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:998:16: error: ‘EVP_DigestVerify’ was not declared in this scope; did you mean ‘EVP_DigestVerifyInit’?
998 | auto res = EVP_DigestVerify(ctx.get(),
| ^~~~~~~~~~~~~~~~
| EVP_DigestVerifyInit
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h: In constructor ‘jwt::algorithm::ed448::ed448(const string&, const string&, const string&, const string&)’:
/home/marcin/projects/nms/back/lib/jwt/include/jwt-cpp/jwt.h:1316:81: error: ‘EVP_shake256’ was not declared in this scope; did you mean ‘EVP_sha256’?
1316 | : eddsa(public_key, private_key, public_key_password, private_key_password, EVP_shake256, "EdDSA")
| ^~~~~~~~~~~~
| EVP_sha256
What’s wrong?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (7 by maintainers)
Commits related to this issue
- Bugfix type in ed448 implementation partially fix for #99 — committed to Thalhammer/jwt-cpp by Thalhammer 4 years ago
- Attempt to fix issue #100 and #99 — committed to Thalhammer/jwt-cpp by Thalhammer 4 years ago
- Fix issue #100 and #99 (#105) Co-authored-by: Chris Mc <prince.chrismc@gmail.com> — committed to Thalhammer/jwt-cpp by Thalhammer 4 years ago
Ok, works, my segmentation fault was caused by other issue.
I have to finish for today. I’ll paste when I’ll check