Replace calls of htonl()/ntohl() with pg_bswap.h for GSSAPI encryption
authorMichael Paquier <michael@paquier.xyz>
Thu, 15 Oct 2020 08:03:56 +0000 (17:03 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 15 Oct 2020 08:03:56 +0000 (17:03 +0900)
commit86dba33217bb0b48fcf59da76912c3382b4418cd
treea20da22e4144af7742eede85143310b397a3ecb8
parent8176afd8b764e54fc6e34240928effc661fc40cd
Replace calls of htonl()/ntohl() with pg_bswap.h for GSSAPI encryption

The in-core equivalents can make use of built-in functions if the
compiler supports this option, making optimizations possible.  0ba99c8
replaced all existing calls in the code base at this time, but b0b39f7
(GSSAPI encryption) has forgotten to do the switch.

Discussion: https://postgr.es/m/20201014055303.GG3349@paquier.xyz
src/backend/libpq/be-secure-gssapi.c
src/interfaces/libpq/fe-secure-gssapi.c