Subject: | Patch: Add constants and OpenSSL_version methods |
Date: | Wed, 6 Dec 2017 01:18:13 +0200 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | Heikki Vatiainen <hvn [...] open.com.au> |
This patch adds two new functions introduced in OpenSSL 1.1.0, a number
of constants and a couple of const qualifiers to SSLeay.xs. Tests and
documentation .pod were also updated.
Please consider including these in next release.
Thanks,
Heikki
* Added const qualifiers to SSLeay.xs to match
updated function definitions in OpenSSL 1.1.0.
* Added OpenSSL version and build related method functions
introduced in OpenSSL 1.1.0
- OpenSSL_version_num
- OpenSSL_version
Added constants for OpenSSL_version and SSLeay_version:
- OPENSSL_VERSION
- OPENSSL_CFLAGS
- OPENSSL_BUILT_ON
- OPENSSL_PLATFORM
- OPENSSL_DIR
- OPENSSL_ENGINES_DIR
- SSLEAY_VERSION
- SSLEAY_CFLAGS
- SSLEAY_BUILT_ON
- SSLEAY_PLATFORM
- SSLEAY_DIR
Updated pod entry for SSLeay_version to use only constants because
the actual values changed in OpenSSL 1.1.0.
* Added constants for CTX_set_session_cache_mode and
CTX_get_session_cache_mode. Updated pod to recommend
using constants over hardcoded values.
- SSL_SESS_CACHE_OFF
- SSL_SESS_CACHE_CLIENT
- SSL_SESS_CACHE_SERVER
- SSL_SESS_CACHE_BOTH
- SSL_SESS_CACHE_NO_AUTO_CLEAR
- SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
- SSL_SESS_CACHE_NO_INTERNAL_STORE
- SSL_SESS_CACHE_NO_INTERNAL
* Added constants for CTX_set_options and
CTX_get_options. Updated pod to recommend
using constants over hardcoded values.
These options include some that are specific
to LibreSSL or upcoming OpenSSL 1.1.1.
- SSL_OP_ALLOW_NO_DHE_KEX
- SSL_OP_NO_CLIENT_RENEGOTIATION
- SSL_OP_NO_ENCRYPT_THEN_MAC
- SSL_OP_NO_RENEGOTIATION
- SSL_OP_NO_SSL_MASK
- SSL_OP_PRIORITIZE_CHACHA
- SSL_OP_SAFARI_ECDHE_ECDSA_BUG
- SSL_OP_TLSEXT_PADDING
--
Heikki Vatiainen <hvn@open.com.au>
Message body is not shown because sender requested not to inline it.