Move OpenSSL routines for min/max protocol setting to src/common/
Michael Paquier <michael@paquier.xyz>
Move OpenSSL routines for min/max protocol setting to src/common/ Two routines have been added in OpenSSL 1.1.0 to set the protocol bounds allowed within a given SSL context: - SSL_CTX_set_min_proto_version - SSL_CTX_set_max_proto_version As Postgres supports OpenSSL down to 1.0.1 (as of HEAD), equivalent replacements exist in the tree, which are only available for the backend. A follow-up patch is planned to add control of the SSL protocol bounds for libpq, so move those routines to src/common/ so as libpq can use them. Author: Daniel Gustafsson Discussion: https://postgr.es/m/4F246AE3-A7AE-471E-BD3D-C799D3748E03@yesql.se
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/be-secure-openssl.c | modified | +1 −98 |
| src/common/Makefile | modified | +3 −1 |
| src/common/protocol_openssl.c | added | +117 −0 |
| src/include/common/openssl.h | added | +28 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +1 −0 |
Discussion
- Setting min/max TLS protocol in clientside libpq 32 messages · 2019-12-03 → 2020-04-30