Enable tls psk
[radsecproxy.git] / tls.h
1 /* Copyright 2010-2012 NORDUnet A/S. All rights reserved.
2    See LICENSE for licensing information. */
3
4 #if defined (__cplusplus)
5 extern "C" {
6 #endif
7
8 int tls_init (void);
9 int tls_init_conn (struct rs_connection *conn);
10 int tls_verify_cert (struct rs_connection *conn);
11
12 #define OPENSSL_VER(a,b,c,d,e) \
13   (((a)<<28) |                 \
14    ((b)<<20) |                 \
15    ((c)<<12) |                 \
16    ((d)<< 4) |                 \
17     (e))
18 #define OPENSSL_V(a,b,c,d) \
19   OPENSSL_VER((a),(b),(c),(d)-'a'+1,0xf)
20
21 #if defined (__cplusplus)
22 }
23 #endif