Giter Site home page Giter Site logo

Open SSL version about libjwt HOT 5 CLOSED

benmcollins avatar benmcollins commented on July 18, 2024
Open SSL version

from libjwt.

Comments (5)

zhiguangwang avatar zhiguangwang commented on July 18, 2024

Also got the following errors with OpenSSL 1.1.0e:

jwt.c: In function 'jwt_sign_sha_pem':
jwt.c:448:10: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
  if (pkey->type != type)
          ^~

In file included from /opt/openssl/1.1.0e/include/openssl/asn1.h:24:0,
                 from /opt/openssl/1.1.0e/include/openssl/objects.h:916,
                 from /opt/openssl/1.1.0e/include/openssl/evp.h:27,
                 from jwt.c:23:
jwt.c:501:30: error: dereferencing pointer to incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
   r_len = BN_num_bytes(ec_sig->r);
                              ^

from libjwt.

benmcollins avatar benmcollins commented on July 18, 2024

Can you tell me what OS/platform you're compiling on? I've not been able to reproduce that with any of the OpenSSL versions I'm compiling against (1.0.x/1.1.x/1.2.x).

I notice you're compiling against one in /opt, is there any chance you're getting conflicting headers from an OS installed OpenSSL and the one in /opt?

from libjwt.

zhiguangwang avatar zhiguangwang commented on July 18, 2024

I'm compiling on Ubuntu 16.10, with latest OpenSSL and jansson self-compiled and installed into /opt.

The compile errors are pretty easy to reproduce with the following configure options:

PKG_CONFIG_PATH='/opt/jansson/2.10/lib/pkgconfig:/opt/openssl/1.1.0e/lib/pkgconfig' \
./configure \
    --enable-shared=no \
    --enable-static=yes \
    --prefix=/opt/libjwt/1.7.3

The reason it fails is the major API changes introduced in OpenSSL 1.1.0, see:

I have created a pull request that resolves this issue.

from libjwt.

daniel-piche avatar daniel-piche commented on July 18, 2024

from libjwt.

benmcollins avatar benmcollins commented on July 18, 2024

Current code works on OpenSSL 1.1.0f.

from libjwt.

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.