diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-09-11 09:18:12 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-09-11 09:18:12 +0200 |
commit | 1fb2308e698ec7aebc1b6676f29e3363a1281479 (patch) | |
tree | fca756c0fc8ee9181532eef05052d90664c789f7 /src | |
parent | 0785d1b8b2fa27074eeb18a3ac1f2a0e76cb8339 (diff) | |
download | postgresql-1fb2308e698ec7aebc1b6676f29e3363a1281479.tar.gz postgresql-1fb2308e698ec7aebc1b6676f29e3363a1281479.zip |
Remove obsolete unconstify()
This is no longer needed as of OpenSSL 1.1.0 (the current minimum
version). LibreSSL made the same change around the same time as well.
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/20463f79-a7b0-4bba-a178-d805f99c02f9%40eisentraut.org
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/be-secure-openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 1ebd3f2e6d3..8ec78c83304 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -1075,7 +1075,7 @@ load_dh_buffer(const char *buffer, size_t len) BIO *bio; DH *dh = NULL; - bio = BIO_new_mem_buf(unconstify(char *, buffer), len); + bio = BIO_new_mem_buf(buffer, len); if (bio == NULL) return NULL; dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); |