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
/
radsec.c
diff --git
a/lib/radsec.c
b/lib/radsec.c
index
efd2dc3
..
83ce6c5
100644
(file)
--- a/
lib/radsec.c
+++ b/
lib/radsec.c
@@
-21,6
+21,7
@@
#include "debug.h"
#include "radsecproxy/debug.h"
#if defined (RS_ENABLE_TLS)
#include "debug.h"
#include "radsecproxy/debug.h"
#if defined (RS_ENABLE_TLS)
+#include "tls.h"
#include <regex.h>
#include "radsecproxy/list.h"
#include "radsecproxy/radsecproxy.h"
#include <regex.h>
#include "radsecproxy/list.h"
#include "radsecproxy/radsecproxy.h"
@@
-32,14
+33,15
@@
rs_context_create (struct rs_context **ctx)
{
struct rs_context *h;
{
struct rs_context *h;
+#if defined (RS_ENABLE_TLS)
+ if (tls_init ())
+ return RSE_SSLERR;
+#endif
+
h = calloc (1, sizeof(*h));
if (h == NULL)
return RSE_NOMEM;
h = calloc (1, sizeof(*h));
if (h == NULL)
return RSE_NOMEM;
-#if defined (RS_ENABLE_TLS)
- ssl_init ();
-#endif
-
debug_init ("libradsec"); /* radsecproxy compat, FIXME: remove */
if (ctx != NULL)
debug_init ("libradsec"); /* radsecproxy compat, FIXME: remove */
if (ctx != NULL)