2
0
mirror of https://github.com/vdukhovni/postfix synced 2025-08-22 09:57:34 +00:00

postfix-3.10-20250127

This commit is contained in:
Wietse Z Venema 2025-01-27 00:00:00 -05:00 committed by Viktor Dukhovni
parent 43c618e67f
commit 01400e7864
8 changed files with 23 additions and 19 deletions

1
postfix/.indent.pro vendored
View File

@ -302,6 +302,7 @@
-TRESPONSE -TRESPONSE
-TREST_TABLE -TREST_TABLE
-TRES_CONTEXT -TRES_CONTEXT
-TRING
-TRWR_CONTEXT -TRWR_CONTEXT
-TSCACHE -TSCACHE
-TSCACHE_CLNT -TSCACHE_CLNT

View File

@ -28878,3 +28878,13 @@ Apologies for any names omitted.
Cleanup: memory leaks in test code. Files: util/hex_code.c, Cleanup: memory leaks in test code. Files: util/hex_code.c,
util/argv.c. util/argv.c.
20250127
Cleanup: broken non-TLS builds because of a missing #ifdef
USE_TLS/#endif around a new function get_effective_tls_level().
File: smtp/smtp_connect.c.
Cleanup: a few remaining pre-ANSI C function definitions
in the lowest-level Postfix code. Files: util/binhash.c,
util/close_on_exec.c, util/non_blocking.c.

View File

@ -20,7 +20,7 @@
* Patches change both the patchlevel and the release date. Snapshots have no * Patches change both the patchlevel and the release date. Snapshots have no
* patchlevel; they change the release date only. * patchlevel; they change the release date only.
*/ */
#define MAIL_RELEASE_DATE "20250117" #define MAIL_RELEASE_DATE "20250127"
#define MAIL_VERSION_NUMBER "3.10" #define MAIL_VERSION_NUMBER "3.10"
#ifdef SNAPSHOT #ifdef SNAPSHOT

View File

@ -498,6 +498,8 @@ static void smtp_cache_policy(SMTP_STATE *state, const char *dest)
} }
} }
#ifdef USE_TLS
/* smtp_get_effective_tls_level - get the effective TLS security level */ /* smtp_get_effective_tls_level - get the effective TLS security level */
static int smtp_get_effective_tls_level(DSN_BUF *why, SMTP_STATE *state) static int smtp_get_effective_tls_level(DSN_BUF *why, SMTP_STATE *state)
@ -543,6 +545,8 @@ static int smtp_get_effective_tls_level(DSN_BUF *why, SMTP_STATE *state)
return (1); return (1);
} }
#endif
/* smtp_connect_local - connect to local server */ /* smtp_connect_local - connect to local server */
static void smtp_connect_local(SMTP_STATE *state, const char *path) static void smtp_connect_local(SMTP_STATE *state, const char *path)

View File

@ -346,8 +346,7 @@ void binhash_walk(BINHASH *table, void (*action) (BINHASH_INFO *, void *),
/* binhash_list - list all table members */ /* binhash_list - list all table members */
BINHASH_INFO **binhash_list(table) BINHASH_INFO **binhash_list(BINHASH *table)
BINHASH *table;
{ {
BINHASH_INFO **list; BINHASH_INFO **list;
BINHASH_INFO *member; BINHASH_INFO *member;

View File

@ -46,9 +46,7 @@
/* close_on_exec - set/clear close-on-exec flag */ /* close_on_exec - set/clear close-on-exec flag */
int close_on_exec(fd, on) int close_on_exec(int fd, int on)
int fd;
int on;
{ {
int flags; int flags;

View File

@ -52,9 +52,7 @@
/* non_blocking - set/clear non-blocking flag */ /* non_blocking - set/clear non-blocking flag */
int non_blocking(fd, on) int non_blocking(int fd, int on)
int fd;
int on;
{ {
int flags; int flags;

View File

@ -76,17 +76,14 @@
/* ring_init - initialize ring head */ /* ring_init - initialize ring head */
void ring_init(ring) void ring_init(RING *ring)
RING *ring;
{ {
ring->pred = ring->succ = ring; ring->pred = ring->succ = ring;
} }
/* ring_append - insert entry after ring head */ /* ring_append - insert entry after ring head */
void ring_append(ring, entry) void ring_append(RING *ring, RING *entry)
RING *ring;
RING *entry;
{ {
entry->succ = ring->succ; entry->succ = ring->succ;
entry->pred = ring; entry->pred = ring;
@ -96,9 +93,7 @@ RING *entry;
/* ring_prepend - insert new entry before ring head */ /* ring_prepend - insert new entry before ring head */
void ring_prepend(ring, entry) void ring_prepend(RING *ring, RING *entry)
RING *ring;
RING *entry;
{ {
entry->pred = ring->pred; entry->pred = ring->pred;
entry->succ = ring; entry->succ = ring;
@ -108,8 +103,7 @@ RING *entry;
/* ring_detach - remove entry from ring */ /* ring_detach - remove entry from ring */
void ring_detach(entry) void ring_detach(RING *entry)
RING *entry;
{ {
RING *succ = entry->succ; RING *succ = entry->succ;
RING *pred = entry->pred; RING *pred = entry->pred;