summaryrefslogtreecommitdiff
path: root/tls.h
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2014-08-24 13:23:12 -0400
committerSam Hartman <hartmans@debian.org>2014-08-24 13:23:12 -0400
commit25541859118c92a6497b52bba46c6bc4e582fcb2 (patch)
tree6eb7faaa084ef9251b7c9805fc391b46e1aa8bf1 /tls.h
Import libradsec_0.0.5.orig.tar.gz
[dgit import orig libradsec_0.0.5.orig.tar.gz]
Diffstat (limited to 'tls.h')
-rw-r--r--tls.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tls.h b/tls.h
new file mode 100644
index 0000000..51f2a64
--- /dev/null
+++ b/tls.h
@@ -0,0 +1,23 @@
+/* Copyright 2010-2012 NORDUnet A/S. All rights reserved.
+ See LICENSE for licensing information. */
+
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
+int tls_init (void);
+int tls_init_conn (struct rs_connection *conn);
+int tls_verify_cert (struct rs_connection *conn);
+
+#define OPENSSL_VER(a,b,c,d,e) \
+ (((a)<<28) | \
+ ((b)<<20) | \
+ ((c)<<12) | \
+ ((d)<< 4) | \
+ (e))
+#define OPENSSL_V(a,b,c,d) \
+ OPENSSL_VER((a),(b),(c),(d)-'a'+1,0xf)
+
+#if defined (__cplusplus)
+}
+#endif