postgresql/src/test/modules/ssl_passphrase_callback
Peter Eisentraut 1784f278a6 Replace remaining StrNCpy() by strlcpy()
They are equivalent, except that StrNCpy() zero-fills the entire
destination buffer instead of providing just one trailing zero.  For
all but a tiny number of callers, that's just overhead rather than
being desirable.

Remove StrNCpy() as it is now unused.

In some cases, namestrcpy() is the more appropriate function to use.
While we're here, simplify the API of namestrcpy(): Remove the return
value, don't check for NULL input.  Nothing was using that anyway.
Also, remove a few unused name-related functions.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/44f5e198-36f6-6cdb-7fa9-60e34784daae%402ndquadrant.com
2020-08-10 23:20:37 +02:00
..
t Make ssl certificate for ssl_passphrase_callback test via Makefile 2020-06-01 17:32:32 -04:00
.gitignore Provide a TLS init hook 2020-03-25 17:13:17 -04:00
Makefile Make ssl certificate for ssl_passphrase_callback test via Makefile 2020-06-01 17:32:32 -04:00
server.crt Provide a TLS init hook 2020-03-25 17:13:17 -04:00
server.key Provide a TLS init hook 2020-03-25 17:13:17 -04:00
ssl_passphrase_func.c Replace remaining StrNCpy() by strlcpy() 2020-08-10 23:20:37 +02:00