Deleted Added
full compact
tls.c (110560) tls.c (111823)
1/*
1/*
2 * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2003 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10
11#include <sendmail.h>
12
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 *
9 */
10
11#include <sendmail.h>
12
13SM_RCSID("@(#)$Id: tls.c,v 8.79.4.1 2002/09/03 17:31:45 gshapiro Exp $")
13SM_RCSID("@(#)$Id: tls.c,v 8.79.4.2 2003/01/23 23:16:24 ca Exp $")
14
15#if STARTTLS
16# include <openssl/err.h>
17# include <openssl/bio.h>
18# include <openssl/pem.h>
19# ifndef HASURANDOMDEV
20# include <openssl/rand.h>
21# endif /* ! HASURANDOMDEV */
14
15#if STARTTLS
16# include <openssl/err.h>
17# include <openssl/bio.h>
18# include <openssl/pem.h>
19# ifndef HASURANDOMDEV
20# include <openssl/rand.h>
21# endif /* ! HASURANDOMDEV */
22# if SM_CONF_SHM
23# include <sm/shm.h>
24# endif /* SM_CONF_SHM */
25# if !TLS_NO_RSA
26static RSA *rsa_tmp = NULL; /* temporary RSA key */
27static RSA *tmp_rsa_key __P((SSL *, int, int));
28# endif /* !TLS_NO_RSA */
29# if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x00907000L
30static int tls_verify_cb __P((X509_STORE_CTX *));
31# else /* !defined() || OPENSSL_VERSION_NUMBER < 0x00907000L */
32static int tls_verify_cb __P((X509_STORE_CTX *, void *));

--- 1454 unchanged lines hidden ---
22# if !TLS_NO_RSA
23static RSA *rsa_tmp = NULL; /* temporary RSA key */
24static RSA *tmp_rsa_key __P((SSL *, int, int));
25# endif /* !TLS_NO_RSA */
26# if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x00907000L
27static int tls_verify_cb __P((X509_STORE_CTX *));
28# else /* !defined() || OPENSSL_VERSION_NUMBER < 0x00907000L */
29static int tls_verify_cb __P((X509_STORE_CTX *, void *));

--- 1454 unchanged lines hidden ---