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)
- 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
- Build Errors For picojson.h? HOT 8
- Getting Error - namespace "jwt" has no member "claims" HOT 6
- Unable to generate token using ed25519 HOT 2
- Use of Builder explicitly
- Need help : How to Implement JWT Operations from Python Using jwt-cpp ? HOT 5
- How to use payload and get the payload data HOT 7
- Boost JSON traits kind of buggy HOT 5
- How to verify a jwt HOT 3
- Invalid input: not within alphabet HOT 6
- Locking in libcrypto in multi threaded app HOT 6
- Linker error for OpenSSL on Windows HOT 5
- Exception is thrown with the exmple private-claims.cpp HOT 10
- Flattened JWS JSON Serialization HOT 7
- unexpected exception(expired) throws in verify JWT token HOT 2
- Add bool to verify() 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.