Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a540615

Browse files
peterepull[bot]
authored andcommitted
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 <[email protected]> Discussion: https://www.postgresql.org/message-id/20463f79-a7b0-4bba-a178-d805f99c02f9%40eisentraut.org
1 parent 89d698d commit a540615

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)