Comments (9)
What version of jwt-cpp are you using?
from jwt-cpp.
0.6.0 thanks for your reply @prince-chrismc
from jwt-cpp.
🤔 hmm are you sure about that version of openssl is the one being pulled into your build scripts and being linked against?
I've not used devtoolset-9
but perhaps it has a never version? You could run scl enable devtoolset-9 "openssl --version"
to check.
I wanted to double check the docs but I am only getting a 404 https://www.openssl.org/docs/man1.0.2/man3/EVP_MD_CTX_destroy.html
This should be the correct logic, in 1.1.0 they changed everything to free
Line 486 in ce1f9df
You can check the CI but we compile from source and test each one
jwt-cpp/.github/workflows/ssl.yml
Line 14 in ce1f9df
from jwt-cpp.
i used the command scl enable devtoolset-9 "openssl --version"
it returns OpenSSL 1.0.2k-fips 26 Jan 2017.
from jwt-cpp.
more info
if i use auto verify = jwt::verify().allow_algorithm(jwt::algorithm::hs512{jwt_secret}).with_issuer("auth0"); in my project, it compiles OK.
but i add the other verify = jwt::verify().allow_algorithm(jwt::algorithm::rs256(private_key, "", "", ""))
.with_issuer("auth0"); in my project, then it returns undefined reference error by compiler.
I think it may related to rs256 algorighm?
from jwt-cpp.
Can you comment out the library code and print OPENSSL_VERSION_TEXT
https://www.openssl.org/docs/manmaster/man3/OPENSSL_VERSION_NUMBER.html
How are you linking to OpenSSL? What build system are you using?
from jwt-cpp.
I think it may related to rs256 algorighm?
Yes the cryptographic keys use the evp context, the hmac is very basic (and insecure) so it doesn't use APIs that have changed
from jwt-cpp.
seems like i use openssl 1.1.0 version for linker but i have another openssl 1.0.2 version installed on my machine.
from jwt-cpp.
I highly recommend using a package manager to manage 3rd party dependencies.
Unfortunately there is jot much I can , I will mark this as closed. Bestnof luck!
from jwt-cpp.
Related Issues (20)
- error: ‘class jwt::decoded_jwt<jwt::traits::nlohmann_json>’ has no member named ‘get_payload_json’; HOT 4
- NuGet: Remove strict dependencies on OpenSSL and PicoJSON HOT 8
- JWKS caching question HOT 2
- Support for jsoncpp HOT 4
- traits/nlohmann-json using json::parse with exceptions without catch, an uncaught exception is generated when handling bad input. HOT 6
- Exception-free? HOT 2
- Failed to compile while using custom allocators HOT 2
- Using certificate chain in x5c in header HOT 5
- c++20 undefined behavior usage HOT 2
- Change the defaults.h to make more easy to use
- Create a test for the undefined sanitizer
- HMAC key should be an array of bytes, not a character string HOT 9
- x86/Win32 compilation and using boost json HOT 2
- Private Key Signing vs Signing from Service Account file HOT 5
- what secret format should i use for HS512 algorithm HOT 1
- Release status of 0.7.0-rc.0 HOT 3
- Guide to Setting Up jwt-cpp? HOT 4
- Building example: no matching function for call to ‘decode(std::string&)’ HOT 1
- Compilation error: no matching function for call to ‘decode(std::string&)’ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-cpp.