~ubuntu-branches/ubuntu/vivid/exim4/vivid

« back to all changes in this revision

Viewing changes to .pc/50_localscan_dlopen.dpatch/src/readconf.c

  • Committer: Package Import Robot
  • Author(s): Corey Bryant
  • Date: 2014-08-04 11:48:39 UTC
  • mfrom: (56.1.2 utopic)
  • Revision ID: package-import@ubuntu.com-20140804114839-xoulpcx9nxi5m72u
Tags: 4.84~RC1-3ubuntu1
* Merge from Debian unstable (LP: #1351470). Remaining changes:
  - Show Ubuntu distribution on smtp:
    + debian/patches/fix_smtp_banner.patch: updated SMTP banner
      with Ubuntu distribution
    + debian/control: added lsb-release build dependency
  - Don't provide default-mta; in Ubuntu, we want postfix to be the
    default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
*     Exim - an Internet mail transport agent    *
3
3
*************************************************/
4
4
 
5
 
/* Copyright (c) University of Cambridge 1995 - 2012 */
 
5
/* Copyright (c) University of Cambridge 1995 - 2014 */
6
6
/* See the file NOTICE for conditions of use and distribution. */
7
7
 
8
8
/* Functions for reading the configuration file, and for displaying
140
140
  { "acl_smtp_auth",            opt_stringptr,   &acl_smtp_auth },
141
141
  { "acl_smtp_connect",         opt_stringptr,   &acl_smtp_connect },
142
142
  { "acl_smtp_data",            opt_stringptr,   &acl_smtp_data },
143
 
#ifdef EXPERIMENTAL_PRDR
 
143
#ifndef DISABLE_PRDR
144
144
  { "acl_smtp_data_prdr",       opt_stringptr,   &acl_smtp_data_prdr },
145
145
#endif
146
146
#ifndef DISABLE_DKIM
229
229
 /* This option is now a no-op, retained for compability */
230
230
  { "drop_cr",                  opt_bool,        &drop_cr },
231
231
/*********************************************************/
 
232
#ifdef EXPERIMENTAL_DSN
 
233
  { "dsn_advertise_hosts",      opt_stringptr,   &dsn_advertise_hosts },
 
234
#endif
232
235
  { "dsn_from",                 opt_stringptr,   &dsn_from },
233
236
  { "envelope_to_remove",       opt_bool,        &envelope_to_remove },
234
237
  { "errors_copy",              opt_stringptr,   &errors_copy },
246
249
  { "gnutls_allow_auto_pkcs11", opt_bool,        &gnutls_allow_auto_pkcs11 },
247
250
  { "gnutls_compat_mode",       opt_bool,        &gnutls_compat_mode },
248
251
  /* These three gnutls_require_* options stopped working in Exim 4.80 */
 
252
  /* From 4.83 we log a warning; a future relase will remove them */
249
253
  { "gnutls_require_kx",        opt_stringptr,   &gnutls_require_kx },
250
254
  { "gnutls_require_mac",       opt_stringptr,   &gnutls_require_mac },
251
255
  { "gnutls_require_protocols", opt_stringptr,   &gnutls_require_proto },
324
328
#endif
325
329
  { "pid_file_path",            opt_stringptr,   &pid_file_path },
326
330
  { "pipelining_advertise_hosts", opt_stringptr, &pipelining_advertise_hosts },
327
 
#ifdef EXPERIMENTAL_PRDR
 
331
#ifndef DISABLE_PRDR
328
332
  { "prdr_enable",              opt_bool,        &prdr_enable },
329
333
#endif
330
334
  { "preserve_message_logs",    opt_bool,        &preserve_message_logs },
332
336
  { "print_topbitchars",        opt_bool,        &print_topbitchars },
333
337
  { "process_log_path",         opt_stringptr,   &process_log_path },
334
338
  { "prod_requires_admin",      opt_bool,        &prod_requires_admin },
 
339
#ifdef EXPERIMENTAL_PROXY
 
340
  { "proxy_required_hosts",     opt_stringptr,   &proxy_required_hosts },
 
341
#endif
335
342
  { "qualify_domain",           opt_stringptr,   &qualify_domain_sender },
336
343
  { "qualify_recipient",        opt_stringptr,   &qualify_domain_recipient },
337
344
  { "queue_domains",            opt_stringptr,   &queue_domains },
433
440
  { "tls_crl",                  opt_stringptr,   &tls_crl },
434
441
  { "tls_dh_max_bits",          opt_int,         &tls_dh_max_bits },
435
442
  { "tls_dhparam",              opt_stringptr,   &tls_dhparam },
436
 
# if defined(EXPERIMENTAL_OCSP) && !defined(USE_GNUTLS)
 
443
# ifndef DISABLE_OCSP
437
444
  { "tls_ocsp_file",            opt_stringptr,   &tls_ocsp_file },
438
445
# endif
439
446
  { "tls_on_connect_ports",     opt_stringptr,   &tls_in.on_connect_ports },
1559
1566
      Because we only do this once, near process start-up, I'm prepared to
1560
1567
      let this slide for the time being, even though it rankles.  */
1561
1568
      }
1562
 
    else if (*str_target && (ol->type & opt_rep_str))
1563
 
     {
 
1569
    else if (ol->type & opt_rep_str)
 
1570
      {
1564
1571
      uschar sep = Ustrncmp(name, "headers_add", 11)==0 ? '\n' : ':';
1565
 
      saved_condition = *str_target;
1566
 
      strtemp = saved_condition + Ustrlen(saved_condition)-1;
1567
 
      if (*strtemp == sep) *strtemp = 0;        /* eliminate trailing list-sep */
1568
 
      strtemp = string_sprintf("%s%c%s", saved_condition, sep, sptr);
1569
 
      *str_target = string_copy_malloc(strtemp);
1570
 
     }
 
1572
      uschar * cp;
 
1573
 
 
1574
      /* Strip trailing whitespace and seperators */
 
1575
      for (cp = sptr + Ustrlen(sptr) - 1;
 
1576
          cp >= sptr && (*cp == '\n' || *cp == '\t' || *cp == ' ' || *cp == sep);
 
1577
          cp--) *cp = '\0';
 
1578
 
 
1579
      if (cp >= sptr)
 
1580
        *str_target = string_copy_malloc(
 
1581
                      *str_target ? string_sprintf("%s%c%s", *str_target, sep, sptr)
 
1582
                                  : sptr);
 
1583
      }
1571
1584
    else
1572
1585
      {
1573
1586
      *str_target = sptr;
3361
3374
      "openssl_options parse error: %s", openssl_options);
3362
3375
# endif
3363
3376
  }
3364
 
#endif
 
3377
 
 
3378
if (gnutls_require_kx || gnutls_require_mac || gnutls_require_proto)
 
3379
  log_write(0, LOG_MAIN, "WARNING: main options"
 
3380
      " gnutls_require_kx, gnutls_require_mac and gnutls_require_protocols"
 
3381
      " are obsolete\n");
 
3382
#endif  /*SUPPORT_TLS*/
3365
3383
}
3366
3384
 
3367
3385
 
4128
4146
(void)fclose(config_file);
4129
4147
}
4130
4148
 
 
4149
/* vi: aw ai sw=2
 
4150
*/
4131
4151
/* End of readconf.c */