postgresql/src/include/common
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
..
archive.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
base64.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
blkreftable.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
checksum_helper.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
compression.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
config_info.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
connect.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
controldata_utils.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
cryptohash.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fe_memutils.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
file_perm.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
file_utils.h pg_upgrade: Add --swap for faster file transfer. 2025-03-25 16:02:35 -05:00
hashfn.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
hashfn_unstable.h Silence warning in older versions of Valgrind 2025-02-24 18:03:29 +07:00
hmac.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
int.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
int128.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
ip.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
jsonapi.h Be clearer about when jsonapi's need_escapes is needed 2025-01-19 09:09:58 -05:00
keywords.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
kwlookup.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
link-canary.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
logging.h Show more-intuitive titles for psql commands \dt, \di, etc. 2025-02-05 12:45:58 -05:00
md5.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
oauth-common.h Add support for OAUTHBEARER SASL mechanism 2025-02-20 16:25:17 +01:00
openssl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
parse_manifest.h pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
percentrepl.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_lzcompress.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_prng.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
relpath.h Change relpath() et al to return path by value 2025-02-25 09:02:07 -05:00
restricted_token.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
saslprep.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
scram-common.h Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays 2025-05-08 22:01:25 +03:00
sha1.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
sha2.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
shortest_dec.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
string.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
unicode_case.h Add support for Unicode case folding. 2025-01-23 09:06:50 -08:00
unicode_case_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_category.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
unicode_category_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_east_asian_fw_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_nonspacing_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_norm.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
unicode_norm_hashfunc.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_norm_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_normprops_table.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
unicode_version.h Update Unicode data to Unicode 16.0.0 2025-04-03 12:00:09 +02:00
username.h Update copyright for 2025 2025-01-01 11:21:55 -05:00