head 1.2; access; symbols pkgsrc-2017Q2:1.1.0.82 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.80 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.78 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.76 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.74 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.72 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.70 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.68 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.66 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.64 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.62 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.60 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.58 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.56 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.54 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.52 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.50 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.48 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.46 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.44 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.42 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.40 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.38 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.36 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.34 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.32 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.30 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.28 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.26 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.24 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.22 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.20 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.18 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.16 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.14 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.12 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.10 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.8 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.6 pkgsrc-2008Q1:1.1.0.4 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.2 pkgsrc-2007Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2017.08.26.10.07.28; author fhajny; state dead; branches; next 1.1; commitid vpfzObW5AlnzSH4A; 1.1 date 2007.11.24.17.40.36; author adrianp; state Exp; branches; next ; desc @@ 1.2 log @Update net/freeradius to 3.0.15. Based on a PR from @@coyhile (https://github.com/joyent/pkgsrc/issues/18). Splits modules with external dependencies into separate packages. The 1.1.x branch was EOL'd in 2008. No upgrade guide from 1.1.x to 3.0.x seem to exist. Summary of improvements in 3.x: - Moved configuration entries in radiusd.conf to make more sense. - Added the "integer64" and "ipv4prefix" data types. - Added RADIUS over TLS (i.e. RadSec). See raddb/sites-available/tls. - Updated internal API to support new attributes and formats. - Added code to send SNMP Traps. See raddb/trigger.conf. - Added preliminary support for Apple's Grand Central Dispatch. - Added provisions for raddb/dictionary.local, for local changes See raddb/dictionary for more details. - Added packet/s tracking. See max_pps in the "listen" section. - The %{} expansions and "unlang" conditions are now parsed at server start. Descriptive errors are produced for syntax and format errors. - Casting is now supported for "unlang" comparisons. See "man unlang" e.g. 127.0.0.1 == Framed-IP-Address. - Direct comparison of attribute references is now supported e.g. &Foo == &Bar. This avoids stringification of the attributes. - Direct assignment of attributes is now supported e.g. Foo := &Bar. It also works for "octets" data types. - Comparisons of IPv4 and IPv6 prefixes are now supported The "<" operator means "within the prefix" for comparisons. - New sha1 xlat expansion (thanks to Alan Buxey). - Colourised log messages when logging to stdout. Look for yellow warnings and red errors. Doing this will save you a LOT of grief. - If the PCRE library is available, use it (insted of the POSIX functions) to process regular expressions (thanks to Phil Mayers). - -xv now displays all the features the server was built with, and the versions of the core libraries (libtalloc, libssl). Summary of improvements in 2.x: - simple policy language (see "man unlang") - virtual servers ("raddb/sites-available/README") - IPv6 support - better proxy support ("raddb/proxy.conf") - More EAP types - Debugging output should be much easier to understand - VMPS support - More modules have been moved to "stable" status (python, etc.) - SQL configuration has been cleaned up (see "raddb/sql/*") - limited support for HUP. (The configuration for some modules is re-loaded on HUP. Nothing else is reloaded.) - check configuration and exit ("radiusd -C") - Server core is now event based (simpler, more powerful) @ text @$NetBSD: patch-al,v 1.1 2007/11/24 17:40:36 adrianp Exp $ --- src/modules/rlm_preprocess/rlm_preprocess.c.orig 2007-04-07 23:42:51.000000000 +0100 +++ src/modules/rlm_preprocess/rlm_preprocess.c @@@@ -126,7 +126,7 @@@@ static void cisco_vsa_hack(VALUE_PAIR *v /* * No weird packing. Ignore it. */ - ptr = strchr(vp->strvalue, '='); /* find an '=' */ + ptr = strchr((char *)vp->strvalue, '='); /* find an '=' */ if (!ptr) continue; /* @@@@ -144,7 +144,7 @@@@ static void cisco_vsa_hack(VALUE_PAIR *v char *p; DICT_ATTR *dattr; - p = vp->strvalue; + p = (char *)vp->strvalue; gettoken(&p, newattr, sizeof(newattr)); if (((dattr = dict_attrbyname(newattr)) != NULL) && @@@@ -223,10 +223,10 @@@@ static void rad_mangle(rlm_preprocess_t * * FIXME: should we handle this as a REALM ? */ - if ((ptr = strchr(namepair->strvalue, '\\')) != NULL) { + if ((ptr = strchr((char *)namepair->strvalue, '\\')) != NULL) { strNcpy(newname, ptr + 1, sizeof(newname)); /* Same size */ - strcpy(namepair->strvalue, newname); + strcpy((char *)namepair->strvalue, newname); namepair->length = strlen(newname); } } @@@@ -395,9 +395,9 @@@@ static int huntgroup_access(REQUEST *req break; } - strNcpy(vp->strvalue, i->name, + strNcpy((char *)vp->strvalue, i->name, sizeof(vp->strvalue)); - vp->length = strlen(vp->strvalue); + vp->length = strlen((char *)vp->strvalue); pairadd(&request_pairs, vp); } @@@@ -425,7 +425,7 @@@@ static int add_nas_attr(REQUEST *request return -1; } nas->lvalue = request->packet->src_ipaddr; - ip_hostname(nas->strvalue, sizeof(nas->strvalue), nas->lvalue); + ip_hostname((char *)nas->strvalue, sizeof(nas->strvalue), nas->lvalue); pairadd(&request->packet->vps, nas); } @@@@ -446,7 +446,7 @@@@ static int add_nas_attr(REQUEST *request return -1; } nas->lvalue = request->packet->src_ipaddr; - ip_hostname(nas->strvalue, sizeof(nas->strvalue), nas->lvalue); + ip_hostname((char *)nas->strvalue, sizeof(nas->strvalue), nas->lvalue); pairadd(&request->packet->vps, nas); return 0; } @@@@ -580,7 +580,7 @@@@ static int preprocess_authorize(void *in if ((r = huntgroup_access(request, data->huntgroups, request->packet->vps)) != RLM_MODULE_OK) { radlog(L_AUTH, "No huntgroup access: [%s] (%s)", - request->username ? request->username->strvalue : "", + request->username ? (char *)request->username->strvalue : "", auth_name(buf, sizeof(buf), request, 1)); return r; } @ 1.1 log @Fix builds on Solaris using the SunPRO compiler. This should fix PR# 36186. Also do some pkglintification while we are here. @ text @d1 1 a1 1 $NetBSD$ @