Commit c5e1df9
committed
Remove one use of IDENT_USERNAME_MAX
IDENT_USERNAME_MAX is the maximum length of the information returned
by an ident server, per RFC 1413. Using it as the buffer size in peer
authentication is inappropriate. It was done here because of the
historical relationship between peer and ident authentication. To
reduce confusion between the two authenticaton methods and disentangle
their code, use a dynamically allocated buffer instead.
Discussion: https://www.postgresql.org/message-id/flat/c798fba5-8b71-4f27-c78e-37714037ea31%402ndquadrant.com1 parent 5cc1e64 commit c5e1df9
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
1993 | | - | |
1994 | 1993 | | |
1995 | 1994 | | |
1996 | 1995 | | |
| 1996 | + | |
| 1997 | + | |
1997 | 1998 | | |
1998 | 1999 | | |
1999 | 2000 | | |
| |||
2022 | 2023 | | |
2023 | 2024 | | |
2024 | 2025 | | |
2025 | | - | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2026 | 2030 | | |
2027 | | - | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2028 | 2034 | | |
2029 | 2035 | | |
2030 | 2036 | | |
| |||
0 commit comments