postgresql/src/include/libpq
Heikki Linnakangas b28c59a6cd Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays
A 'void *' argument suggests that the caller might pass an arbitrary
struct, which is appropriate for functions like libc's read/write, or
pq_sendbytes(). 'uint8 *' is more appropriate for byte arrays that
have no structure, like the cancellation keys or SCRAM tokens. Some
places used 'char *', but 'uint8 *' is better because 'char *' is
commonly used for null-terminated strings. Change code around SCRAM,
MD5 authentication, and cancellation key handling to follow these
conventions.

Discussion: https://www.postgresql.org/message-id/61be9e31-7b7d-49d5-bc11-721800d89d64@eisentraut.org
2025-05-08 22:01:25 +03:00
..
auth.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
be-fsstubs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
be-gssapi-common.h Move GSSAPI includes into its own header 2025-03-26 15:31:46 +01:00
crypt.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
hba.h Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
ifaddr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq-be-fe-helpers.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq-be.h Add local-address escape "%L" to log_line_prefix. 2025-04-07 11:06:05 -04:00
libpq-fs.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
libpq.h backend libpq void * argument for binary data 2025-02-23 14:27:02 +01:00
oauth.h Harmonize function parameter names for Postgres 18. 2025-04-12 12:07:36 -04:00
pg-gssapi.h Move GSSAPI includes into its own header 2025-03-26 15:31:46 +01:00
pqcomm.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
pqformat.h backend libpq void * argument for binary data 2025-02-23 14:27:02 +01:00
pqmq.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pqsignal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
protocol.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sasl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
scram.h Update copyright for 2025 2025-01-01 11:21:55 -05:00