summaryrefslogtreecommitdiffstats
path: root/tls.h
blob: 808b11544a1a2562f675b24b5c973db9bc4cacd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TLS_H
#define TLS_H

#include <openssl/ssl.h>

/* ECC: make sure we have at least 1.0.0 */
#if !defined(OPENSSL_NO_EC) && defined(TLSEXT_ECPOINTFORMAT_uncompressed)
#define HAVE_ECC
#endif

extern int smtps;
extern SSL *ssl;

void ssl_free(SSL *myssl);
void ssl_exit(int status);
# define _exit ssl_exit

const char *ssl_error();
const char *ssl_error_str();

#endif