From a13cddc1331aa1f5e7dca7d1b44482951d2757bf Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 13 Nov 2011 17:16:14 +1100 Subject: port to new RADIUS client library --- lib/radsec.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'lib/radsec.c') diff --git a/lib/radsec.c b/lib/radsec.c index d4c0a09..70a968e 100644 --- a/lib/radsec.c +++ b/lib/radsec.c @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include #include @@ -39,14 +39,8 @@ rs_context_create (struct rs_context **ctx) #if defined (RS_ENABLE_TLS) ssl_init (); #endif -#if defined (DEBUG) - fr_log_fp = stderr; - fr_debug_flag = 1; -#endif - debug_init ("libradsec"); /* radsecproxy compat, FIXME: remove */ - fr_randinit (&h->fr_randctx, 0); - fr_rand_seed (NULL, 0); + debug_init ("libradsec"); /* radsecproxy compat, FIXME: remove */ if (ctx != NULL) *ctx = h; @@ -67,9 +61,6 @@ rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict) if (ctx->config != NULL && ctx->config->dictionary) dict = ctx->config->dictionary; - if (dict == NULL) - dict = RS_FREERADIUS_DICT; - dictlen = strlen (dict); dir = rs_calloc (ctx, 1, dictlen + 1); fn = rs_calloc (ctx, 1, dictlen + 1); @@ -81,13 +72,6 @@ rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict) strncpy (dir, dict, dictlen); strncpy (fn, dict, dictlen); - if (dict_init (dirname (dir), basename (fn)) < 0) - { - r = rs_err_ctx_push_fl (ctx, RSE_FR, __FILE__, __LINE__, - "failing dict_init(\"%s\")", dict); - goto out; - } - out: if (dir) rs_free (ctx, dir); -- cgit v1.1 From 3fd136cdbc85ddff5ed0a5953ee1827b9a948748 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 14 Nov 2011 12:43:48 +1100 Subject: remove rs_context_init_freeradius_dict --- lib/radsec.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'lib/radsec.c') diff --git a/lib/radsec.c b/lib/radsec.c index 70a968e..7421755 100644 --- a/lib/radsec.c +++ b/lib/radsec.c @@ -48,38 +48,6 @@ rs_context_create (struct rs_context **ctx) return RSE_OK; } -/** Initialize freeradius dictionary. */ -int -rs_context_init_freeradius_dict (struct rs_context *ctx, const char *dict) -{ - int r = RSE_OK; - size_t dictlen; - char *dir = NULL; - char *fn = NULL; - - if (dict == NULL) - if (ctx->config != NULL && ctx->config->dictionary) - dict = ctx->config->dictionary; - - dictlen = strlen (dict); - dir = rs_calloc (ctx, 1, dictlen + 1); - fn = rs_calloc (ctx, 1, dictlen + 1); - if (dir == NULL || fn == NULL) - { - r = rs_err_ctx_push_fl (ctx, RSE_NOMEM, __FILE__, __LINE__, NULL); - goto out; - } - strncpy (dir, dict, dictlen); - strncpy (fn, dict, dictlen); - - out: - if (dir) - rs_free (ctx, dir); - if (fn) - rs_free (ctx, fn); - return r; -} - struct rs_error * rs_resolv (struct evutil_addrinfo **addr, rs_conn_type_t type, -- cgit v1.1 From 937144b230752ac640e611cabb57387f613997bc Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 19 Dec 2012 10:41:57 +0100 Subject: Rename COPYING -> LICENSE. And distribute LICENSE and HACKING. --- lib/radsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/radsec.c') diff --git a/lib/radsec.c b/lib/radsec.c index 347a48b..d14ad50 100644 --- a/lib/radsec.c +++ b/lib/radsec.c @@ -1,5 +1,5 @@ /* Copyright 2010, 2011 NORDUnet A/S. All rights reserved. - See the file COPYING for licensing information. */ + See LICENSE for licensing information. */ #if defined HAVE_CONFIG_H #include -- cgit v1.1