X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fspool_in.c;h=c466895061660da572f444aa98480c248e6c56e0;hb=7a9e0ae14e5544e8377d1f91298d0ec9a482bf12;hp=2d349778ccc66f23aa50ed08f872a1b20a5eed6c;hpb=8768d5483a5894400ae1f70cda1beb44ed9b087c;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/spool_in.c b/src/src/spool_in.c index 2d349778c..c46689506 100644 --- a/src/src/spool_in.c +++ b/src/src/spool_in.c @@ -36,7 +36,6 @@ Side effect: message_subdir is set for the (possibly split) spool directory int spool_open_datafile(uschar *id) { -int i; struct stat statbuf; flock_t lock_data; int fd; @@ -48,7 +47,7 @@ spool_directory is not set, first look in the main input directory. If it is not found there, try the split sub-directory, in case it is left over from a splitting state. */ -for (i = 0; i < 2; i++) +for (int i = 0; i < 2; i++) { uschar * fname; int save_errno; @@ -274,7 +273,7 @@ f.dkim_disable_verify = FALSE; dkim_collect_input = 0; #endif -#ifdef SUPPORT_TLS +#ifndef DISABLE_TLS tls_in.certificate_verified = FALSE; # ifdef SUPPORT_DANE tls_in.dane_verified = FALSE; @@ -287,9 +286,6 @@ tls_free_cert(&tls_in.peercert); tls_in.peerdn = NULL; tls_in.sni = NULL; tls_in.ocsp = OCSP_NOT_REQ; -# if defined(EXPERIMENTAL_REQUIRETLS) && !defined(COMPILE_UTILITY) -tls_requiretls = 0; -# endif #endif #ifdef WITH_CONTENT_SCAN @@ -357,7 +353,7 @@ spool_clear_header_globals(); set, just look in the given directory. Otherwise, look in both the split and unsplit directories, as for the data file above. */ -for (n = 0; n < 2; n++) +for (int n = 0; n < 2; n++) { if (!subdir_set) message_subdir[0] = split_spool_directory == (n == 0) ? name[5] : 0; @@ -650,7 +646,7 @@ for (;;) #endif break; -#ifdef SUPPORT_TLS +#ifndef DISABLE_TLS case 't': if (Ustrncmp(p, "ls_", 3) == 0) { @@ -671,10 +667,11 @@ for (;;) tls_in.sni = string_unprinting(string_copy(big_buffer + 9)); else if (Ustrncmp(q, "ocsp", 4) == 0) tls_in.ocsp = big_buffer[10] - '0'; -# if defined(EXPERIMENTAL_REQUIRETLS) && !defined(COMPILE_UTILITY) - else if (Ustrncmp(q, "requiretls", 10) == 0) - tls_requiretls = strtol(CS big_buffer+16, NULL, 0); +# ifdef EXPERIMENTAL_TLS_RESUME + else if (Ustrncmp(q, "resumption", 10) == 0) + tls_in.resumption = big_buffer[16] - 'A'; # endif + } break; #endif