-/* $Cambridge: exim/src/src/spool_in.c,v 1.25 2009/10/15 08:06:23 tom Exp $ */
-
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 2007 */
+/* Copyright (c) University of Cambridge 1995 - 2009 */
/* See the file NOTICE for conditions of use and distribution. */
/* Functions for reading spool files. When compiling for a utility (eximon),
tls_certificate_verified = FALSE;
tls_cipher = NULL;
tls_peerdn = NULL;
+#ifndef USE_GNUTLS
+tls_sni = NULL;
+#endif
#endif
#ifdef WITH_CONTENT_SCAN
else if (Ustrncmp(p, "ls_cipher", 9) == 0)
tls_cipher = string_copy(big_buffer + 12);
else if (Ustrncmp(p, "ls_peerdn", 9) == 0)
- tls_peerdn = string_copy(big_buffer + 12);
+ tls_peerdn = string_unprinting(string_copy(big_buffer + 12));
+ #ifndef USE_GNUTLS
+ else if (Ustrncmp(p, "ls_sni", 6) == 0)
+ tls_sni = string_unprinting(string_copy(big_buffer + 9));
+ #endif
break;
#endif