Skip to content

Commit 1fb2308

Browse files
committed
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
1 parent 0785d1b commit 1fb2308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/libpq/be-secure-openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ load_dh_buffer(const char *buffer, size_t len)
10751075
BIO *bio;
10761076
DH *dh = NULL;
10771077

1078-
bio = BIO_new_mem_buf(unconstify(char *, buffer), len);
1078+
bio = BIO_new_mem_buf(buffer, len);
10791079
if (bio == NULL)
10801080
return NULL;
10811081
dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy