projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve initialisation of OpenSSL PRNG.
[radsecproxy.git]
/
lib
/
tls.h
diff --git
a/lib/tls.h
b/lib/tls.h
index
4707b93
..
51f2a64
100644
(file)
--- a/
lib/tls.h
+++ b/
lib/tls.h
@@
-5,9
+5,19
@@
extern "C" {
#endif
extern "C" {
#endif
-int rs_tls_init (struct rs_connection *conn);
+int tls_init (void);
+int tls_init_conn (struct rs_connection *conn);
int tls_verify_cert (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
#if defined (__cplusplus)
}
#endif