olehlong / jwtd

D implementation of JSON Web Token.
MIT License
30 stars 13 forks source link

Add support for OpenSSL 1.1 #19

Closed jpf91 closed 5 years ago

jpf91 commented 5 years ago

OpenSSL 1.1 removed the HMAC_CTX_init and HMAC_CTX_cleanup functions.

This commit adds a new configuration openssl-1.1 (same name as vibe-d:tls) which uses the new replacement functions. Unfortunately using the openssl-1.1 binding (version 2 of the openssl package) seems to cause lots of version conflicts in larger projects. Vibe-d also seems to use the old bindings in its openssl-1.1 configuration for this reason.

Would be great if we can get this merged and released, as many distributions use openssl-1.1 nowadays.