Code Monkey home page Code Monkey logo

Comments (9)

prince-chrismc avatar prince-chrismc commented on June 27, 2024

What version of jwt-cpp are you using?

from jwt-cpp.

quanchentg avatar quanchentg commented on June 27, 2024

0.6.0 thanks for your reply @prince-chrismc

from jwt-cpp.

prince-chrismc avatar prince-chrismc commented on June 27, 2024

🤔 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

std::unique_ptr<EVP_MD_CTX, decltype(&EVP_MD_CTX_destroy)>(EVP_MD_CTX_create(), &EVP_MD_CTX_destroy);

You can check the CI but we compile from source and test each one

from jwt-cpp.

quanchentg avatar quanchentg commented on June 27, 2024

i used the command scl enable devtoolset-9 "openssl --version"
it returns OpenSSL 1.0.2k-fips 26 Jan 2017.

from jwt-cpp.

quanchentg avatar quanchentg commented on June 27, 2024

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.

prince-chrismc avatar prince-chrismc commented on June 27, 2024

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.

prince-chrismc avatar prince-chrismc commented on June 27, 2024

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.

quanchentg avatar quanchentg commented on June 27, 2024

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.

prince-chrismc avatar prince-chrismc commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.