spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
472 stars 237 forks source link

Trying to compile with Openssl 1.1.1, getting many issues #110

Open ngashok opened 5 years ago

ngashok commented 5 years ago

I just tried to check what has got changed, it looks like some function names are removed which were there in 1.1.0 doc/man3/HMAC.pod:HMAC_CTX_cleanup() existed in OpenSSL before version 1.1.0. crypto/hmac/hmac.c:static void hmac_ctx_cleanup(HMAC_CTX *ctx) crypto/hmac/hmac.c: hmac_ctx_cleanup(ctx); crypto/hmac/hmac.c: hmac_ctx_cleanup(ctx); crypto/hmac/hmac.c: hmac_ctx_cleanup(ctx); crypto/hmac/hmac.c: hmac_ctx_cleanup(dctx); CHANGES: HMAC_CTX_cleanup() were removed. HMAC_CTX_reset() and

zeebo commented 5 years ago

Thanks for the information. I don't have time to support newer versions of OpenSSL right now, so if anyone wants to give this a go (use shim.c and shim.h to select correct implementations based on the OpenSSL version defines), then I'd be happy to review and merge it.

savely-krasovsky commented 4 years ago

@ngashok builds okay with 1.1.1d (not 1.1.1g).