Comments (5)
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.
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.
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.
from libjwt.
Current code works on OpenSSL 1.1.0f.
from libjwt.
Related Issues (20)
- OpenSSL 3? HOT 2
- NEWS file? HOT 3
- Compile error in C++ code HOT 3
- jansson.h is missing HOT 4
- Compiling under SSL 3.x triggers warnings. HOT 4
- fatal error: jwt.h: No such file or directory HOT 2
- missing `libjwt-1.15.3.tar.gz` for 1.15.3 release HOT 1
- JWT: jwt_encode_str() function return only three characters. HOT 4
- jwt_decode returns 22 HOT 81
- ./confugre not working HOT 1
- Correct package on Debian 12 HOT 6
- Is 1.16.0 stable? HOT 2
- Upgrade `m4/doxygen.m4` to `ax_prog_doxygen.m4` from GNU Autoconf Archive? HOT 2
- Failed to parse JWT HOT 1
- Error parsing fractional values in JWT exp HOT 3
- Native windows build HOT 1
- finalize mbedTLS support HOT 2
- Building 1.17.0 fails on aarch64
- Plans to upload more recent versions to older distribution repositories HOT 1
- Issue seen while using jwt_decode api HOT 3
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 libjwt.