]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agofix radrelay 1910/head
Alexander Clouter [Mon, 13 Feb 2017 17:10:16 +0000 (17:10 +0000)] 
fix radrelay

9 years agoUpdating Nomadix dictionary with missing attributes.
Mark Johnson [Thu, 9 Feb 2017 20:15:37 +0000 (12:15 -0800)] 
Updating Nomadix dictionary with missing attributes.

9 years agoFix dictionary test
Arran Cudbard-Bell [Fri, 10 Feb 2017 14:25:33 +0000 (14:25 +0000)] 
Fix dictionary test

9 years agoFix typo in alcatel dictionaries
Arran Cudbard-Bell [Fri, 10 Feb 2017 13:23:28 +0000 (13:23 +0000)] 
Fix typo in alcatel dictionaries

9 years agoBetter error message
Arran Cudbard-Bell [Fri, 10 Feb 2017 13:43:32 +0000 (13:43 +0000)] 
Better error message

9 years agoWhen checking to see if the attribute is a duplicate we need to check the parent too
Arran Cudbard-Bell [Fri, 10 Feb 2017 13:43:22 +0000 (13:43 +0000)] 
When checking to see if the attribute is a duplicate we need to check the parent too

This used to work because the TLV nesting was part of the attribute number.

9 years agoShouldn’t free attributes when the name is freed
Arran Cudbard-Bell [Fri, 10 Feb 2017 13:42:34 +0000 (13:42 +0000)] 
Shouldn’t free attributes when the name is freed

It’s OK to have attributes in the dictionary where the name has been subsumed by a later definition

9 years agouse fr_strerror_printf() instead of ERROR
Alan T. DeKok [Sun, 5 Feb 2017 22:43:34 +0000 (17:43 -0500)] 
use fr_strerror_printf() instead of ERROR

9 years agomore removal of pair_make
Alan T. DeKok [Sun, 5 Feb 2017 18:43:59 +0000 (13:43 -0500)] 
more removal of pair_make

9 years agouse numbers, not names
Alan T. DeKok [Sun, 5 Feb 2017 18:30:34 +0000 (13:30 -0500)] 
use numbers, not names

9 years agocheck ptr
Alan T. DeKok [Sun, 5 Feb 2017 16:17:46 +0000 (11:17 -0500)] 
check ptr

9 years agoclose FD on one more path, too
Alan T. DeKok [Sun, 5 Feb 2017 16:16:35 +0000 (11:16 -0500)] 
close FD on one more path, too

9 years agoremove unnecessary check
Alan T. DeKok [Sun, 5 Feb 2017 16:15:37 +0000 (11:15 -0500)] 
remove unnecessary check

9 years agocomment-out generic code
Alan T. DeKok [Sun, 5 Feb 2017 16:13:35 +0000 (11:13 -0500)] 
comment-out generic code

9 years agoUpdate copyright year
Arran Cudbard-Bell [Thu, 2 Feb 2017 10:21:41 +0000 (10:21 +0000)] 
Update copyright year

9 years agomore ignore discard
Alan T. DeKok [Sun, 5 Feb 2017 15:20:57 +0000 (10:20 -0500)] 
more ignore discard

9 years agoset FALL-THROUGH
Alan T. DeKok [Sun, 5 Feb 2017 15:20:26 +0000 (10:20 -0500)] 
set FALL-THROUGH

9 years agomore "ignore discard"
Alan T. DeKok [Sun, 5 Feb 2017 15:14:30 +0000 (10:14 -0500)] 
more "ignore discard"

9 years agocheck data length both ways
Alan T. DeKok [Sun, 5 Feb 2017 15:13:29 +0000 (10:13 -0500)] 
check data length both ways

9 years agocheck pointer before dereferencing it
Alan T. DeKok [Sun, 5 Feb 2017 15:10:47 +0000 (10:10 -0500)] 
check pointer before dereferencing it

9 years agonote fall-through
Alan T. DeKok [Sun, 5 Feb 2017 15:09:44 +0000 (10:09 -0500)] 
note fall-through

9 years agoignore discard return code
Alan T. DeKok [Sun, 5 Feb 2017 15:08:48 +0000 (10:08 -0500)] 
ignore discard return code

9 years agoignore return code from discarding a packet
Alan T. DeKok [Sun, 5 Feb 2017 15:07:28 +0000 (10:07 -0500)] 
ignore return code from discarding a packet

9 years agoignore return code we can't use anyways
Alan T. DeKok [Sun, 5 Feb 2017 15:07:00 +0000 (10:07 -0500)] 
ignore return code we can't use anyways

9 years agoignore return code
Alan T. DeKok [Sun, 5 Feb 2017 15:04:00 +0000 (10:04 -0500)] 
ignore return code

9 years agowe don't care about this return value
Alan T. DeKok [Sun, 5 Feb 2017 15:02:44 +0000 (10:02 -0500)] 
we don't care about this return value

9 years agodon't assign in an assert
Alan T. DeKok [Sun, 5 Feb 2017 15:02:11 +0000 (10:02 -0500)] 
don't assign in an assert

9 years agocast to "uint8_t *" before adding byte offsets
Alan T. DeKok [Sun, 5 Feb 2017 15:01:16 +0000 (10:01 -0500)] 
cast to "uint8_t *" before adding byte offsets

9 years agoreturn on error
Alan T. DeKok [Sun, 5 Feb 2017 14:59:41 +0000 (09:59 -0500)] 
return on error

9 years agoremove unused variable
Alan T. DeKok [Sun, 5 Feb 2017 14:56:05 +0000 (09:56 -0500)] 
remove unused variable

9 years agoit's good to close files we've opened..
Alan T. DeKok [Sun, 5 Feb 2017 14:53:33 +0000 (09:53 -0500)] 
it's good to close files we've opened..

9 years agoupdate hash based on client port, too
Alan T. DeKok [Sun, 5 Feb 2017 14:38:51 +0000 (09:38 -0500)] 
update hash based on client port, too

9 years agoa few more checks on length
Alan T. DeKok [Sun, 5 Feb 2017 14:37:31 +0000 (09:37 -0500)] 
a few more checks on length

9 years agoSplit TLS caching operation
Arran Cudbard-Bell [Sat, 4 Feb 2017 19:54:01 +0000 (19:54 +0000)] 
Split TLS caching operation

OpenSSL now receives tls_cache_serialize as the callback
for storing session resumption data, and the EAP-TLS code calls tls_cache_write separately when sending an EAP-TLS success, to cache the session data.

9 years agoremove unused macro
Alan T. DeKok [Sat, 4 Feb 2017 15:30:11 +0000 (10:30 -0500)] 
remove unused macro

9 years agoremove unused variable
Alan T. DeKok [Sat, 4 Feb 2017 15:14:44 +0000 (10:14 -0500)] 
remove unused variable

9 years agoremove extraneous check
Alan T. DeKok [Sat, 4 Feb 2017 14:40:23 +0000 (09:40 -0500)] 
remove extraneous check

9 years agoadd missing 'break'
Alan T. DeKok [Sat, 4 Feb 2017 14:39:17 +0000 (09:39 -0500)] 
add missing 'break'

9 years agoinitialize salen
Alan T. DeKok [Sat, 4 Feb 2017 14:38:35 +0000 (09:38 -0500)] 
initialize salen

9 years agowe don't care about the return value when discarding packets
Alan T. DeKok [Sat, 4 Feb 2017 14:34:25 +0000 (09:34 -0500)] 
we don't care about the return value when discarding packets

9 years agocheck status of pthread_create
Alan T. DeKok [Sat, 4 Feb 2017 14:33:53 +0000 (09:33 -0500)] 
check status of pthread_create

9 years agolower bound on maximum stack depth
Alan T. DeKok [Sat, 4 Feb 2017 14:32:36 +0000 (09:32 -0500)] 
lower bound on maximum stack depth

9 years agoreference correct field
Alan T. DeKok [Sat, 4 Feb 2017 14:31:48 +0000 (09:31 -0500)] 
reference correct field

9 years agoadd missing 'break'
Alan T. DeKok [Sat, 4 Feb 2017 14:30:11 +0000 (09:30 -0500)] 
add missing 'break'

9 years agoadd missing va_end
Alan T. DeKok [Sat, 4 Feb 2017 14:28:53 +0000 (09:28 -0500)] 
add missing va_end

9 years agoadd missing 'break'
Alan T. DeKok [Sat, 4 Feb 2017 14:28:03 +0000 (09:28 -0500)] 
add missing 'break'

9 years agoAvoid memcpy when obtaining session ID
Arran Cudbard-Bell [Sat, 4 Feb 2017 13:37:49 +0000 (13:37 +0000)] 
Avoid memcpy when obtaining session ID

9 years agoremove unused assignment
Alan T. DeKok [Fri, 3 Feb 2017 18:58:25 +0000 (13:58 -0500)] 
remove unused assignment

9 years agoinitialize variable
Alan T. DeKok [Fri, 3 Feb 2017 18:29:50 +0000 (13:29 -0500)] 
initialize variable

9 years agouse file.data for data
Alan T. DeKok [Fri, 3 Feb 2017 18:28:04 +0000 (13:28 -0500)] 
use file.data for data

9 years agoremove unused assignment
Alan T. DeKok [Fri, 3 Feb 2017 18:25:40 +0000 (13:25 -0500)] 
remove unused assignment

9 years agomove dict_tacacs_root to libfreeradius-tacacs
Alan T. DeKok [Fri, 3 Feb 2017 15:25:59 +0000 (10:25 -0500)] 
move dict_tacacs_root to libfreeradius-tacacs

9 years agoinitialize variable
Alan T. DeKok [Fri, 3 Feb 2017 15:24:13 +0000 (10:24 -0500)] 
initialize variable

9 years agoAdd TACACS+
Alan T. DeKok [Fri, 3 Feb 2017 14:56:47 +0000 (09:56 -0500)] 
Add TACACS+

9 years agosystemd syslog.target is obsolete
Matthew Newton [Thu, 2 Feb 2017 21:10:43 +0000 (21:10 +0000)] 
systemd syslog.target is obsolete

9 years agoHmm, maybe we shouldn't create the database
Arran Cudbard-Bell [Thu, 2 Feb 2017 10:16:43 +0000 (10:16 +0000)] 
Hmm, maybe we shouldn't create the database

9 years agoRemoved unused variable
Arran Cudbard-Bell [Thu, 2 Feb 2017 00:20:03 +0000 (00:20 +0000)] 
Removed unused variable

9 years agoUpdate rlm_sql.c
Arran Cudbard-Bell [Wed, 1 Feb 2017 23:53:49 +0000 (23:53 +0000)] 
Update rlm_sql.c

9 years agoUse the actual field lengths when creating the result array
Arran Cudbard-Bell [Wed, 1 Feb 2017 20:51:06 +0000 (20:51 +0000)] 
Use the actual field lengths when creating the result array

# Conflicts:
# src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c

9 years agoTrim whitespace before searching for operation type
Arran Cudbard-Bell [Wed, 1 Feb 2017 20:50:14 +0000 (20:50 +0000)] 
Trim whitespace before searching for operation type

# Conflicts:
# src/modules/rlm_sql/rlm_sql.c

9 years agoCreate the database by default...
Arran Cudbard-Bell [Wed, 1 Feb 2017 20:44:00 +0000 (20:44 +0000)] 
Create the database by default...

9 years agomade more pretty
Alan T. DeKok [Wed, 1 Feb 2017 19:41:05 +0000 (14:41 -0500)] 
made more pretty

9 years agoupdate for prettiness
Alan T. DeKok [Wed, 1 Feb 2017 19:35:07 +0000 (14:35 -0500)] 
update for prettiness

9 years agoupdate kibana dashboard so it doesn't have to be imported twice
Matthew Newton [Wed, 1 Feb 2017 13:54:55 +0000 (13:54 +0000)] 
update kibana dashboard so it doesn't have to be imported twice

define the search before the visualisations

9 years agoUse fr_dict_oid_component in fr_dict_unknown_afrom_oid_str
Arran Cudbard-Bell [Sat, 28 Jan 2017 16:10:26 +0000 (16:10 +0000)] 
Use fr_dict_oid_component in fr_dict_unknown_afrom_oid_str

9 years agoone more 'const'
Alan T. DeKok [Mon, 30 Jan 2017 18:28:05 +0000 (13:28 -0500)] 
one more 'const'

9 years agoone more 'const'
Alan T. DeKok [Mon, 30 Jan 2017 17:42:19 +0000 (12:42 -0500)] 
one more 'const'

9 years agoreturn "known" unknown attribute if it exists
Alan T. DeKok [Mon, 30 Jan 2017 17:03:53 +0000 (12:03 -0500)] 
return "known" unknown attribute if it exists

after creating unknown attribute, look it up by name.  If it
exists, return that one.  This lets us use unknown attributes
in the config files, and then have the decoder automatically
reference then when they're seen in the packets.

9 years agomake fr_dict_unknown_afrom_fields() return const
Alan T. DeKok [Mon, 30 Jan 2017 17:03:34 +0000 (12:03 -0500)] 
make fr_dict_unknown_afrom_fields() return const

9 years agoPrefix references
Arran Cudbard-Bell [Sat, 28 Jan 2017 15:24:27 +0000 (15:24 +0000)] 
Prefix references

9 years agoShut up doxygen?
Arran Cudbard-Bell [Sat, 28 Jan 2017 14:09:36 +0000 (14:09 +0000)] 
Shut up doxygen?

9 years agoDoxygen and other minor fixes
Arran Cudbard-Bell [Sat, 28 Jan 2017 13:33:11 +0000 (13:33 +0000)] 
Doxygen and other minor fixes

9 years agoAdd checks in more places parent should not be NULL
Arran Cudbard-Bell [Sat, 28 Jan 2017 12:57:35 +0000 (12:57 +0000)] 
Add checks in more places parent should not be NULL

(everwhere)

9 years agoFix clang scan issues
Arran Cudbard-Bell [Sat, 28 Jan 2017 12:52:56 +0000 (12:52 +0000)] 
Fix clang scan issues

9 years agoSimplify unknown attribute OID parsing/printing
Arran Cudbard-Bell [Sat, 28 Jan 2017 12:45:01 +0000 (12:45 +0000)] 
Simplify unknown attribute OID parsing/printing

As tmpls are no longer stack allocated, we can hang additional talloced memory off the structure.

This means unknown attributes no longer need to be placed in a buffer which is part of the tmpl, but can be allocated on the heap.

It also means that where an unknown attribute hierarchy contains an unknown vendor, the unknown vendor can form part of the hierarchy too, without needing a special field.

References #1883

9 years agoUNUSED -> used
Alan T. DeKok [Fri, 27 Jan 2017 01:17:04 +0000 (20:17 -0500)] 
UNUSED -> used

9 years agomore debugging
Alan T. DeKok [Fri, 27 Jan 2017 00:30:11 +0000 (19:30 -0500)] 
more debugging

and print out packet in decode routine, not in recv routine

9 years agodon't write empty packets to the detail file
Alan T. DeKok [Thu, 26 Jan 2017 20:34:30 +0000 (15:34 -0500)] 
don't write empty packets to the detail file

9 years agoFormatting
Arran Cudbard-Bell [Wed, 25 Jan 2017 11:29:58 +0000 (11:29 +0000)] 
Formatting

9 years agoWrite type directly to the tmpl
Arran Cudbard-Bell [Wed, 25 Jan 2017 11:07:20 +0000 (11:07 +0000)] 
Write type directly to the tmpl

Use a dynamically allocated buffer for unknown attribute names

9 years agoallow EVS for unknown attributes, too
Alan T. DeKok [Tue, 24 Jan 2017 21:59:36 +0000 (16:59 -0500)] 
allow EVS for unknown attributes, too

9 years agoRemove references to tmpl_from_attr_substr
Arran Cudbard-Bell [Tue, 24 Jan 2017 17:20:24 +0000 (17:20 +0000)] 
Remove references to tmpl_from_attr_substr

9 years agoRemove stack based variants tmpl_attr functions
Arran Cudbard-Bell [Tue, 24 Jan 2017 14:04:17 +0000 (14:04 +0000)] 
Remove stack based variants tmpl_attr functions

A major limitation of using stack based allocations was that nested templates couldn't be used.

This meant syntax like Tmp-Attr-1[&Tmp-Integer-0] wasn't possible, as there was no way to include the structure required for the index reference without allocating it.

9 years agotmpl_from_attr_substr is now private
Alan T. DeKok [Mon, 23 Jan 2017 21:11:36 +0000 (16:11 -0500)] 
tmpl_from_attr_substr is now private

9 years agouse tmpl_afrom_attr_substr() here, too
Alan T. DeKok [Mon, 23 Jan 2017 21:10:26 +0000 (16:10 -0500)] 
use tmpl_afrom_attr_substr() here, too

9 years agoarg. missed in previous commit. Stupid git
Alan T. DeKok [Mon, 23 Jan 2017 21:08:34 +0000 (16:08 -0500)] 
arg.  missed in previous commit.  Stupid git

9 years agomake node->attr a talloc'd pointer
Alan T. DeKok [Mon, 23 Jan 2017 20:45:58 +0000 (15:45 -0500)] 
make node->attr a talloc'd pointer

And move alternate into a "union" with attr.

And add a "regex_index" field to the union, because we can't
just steal node->attr->tmpl_num.  Which was always a hack.

9 years agouse tmpl_afrom_attr_substr, not the stack-based version
Alan T. DeKok [Mon, 23 Jan 2017 20:35:24 +0000 (15:35 -0500)] 
use tmpl_afrom_attr_substr, not the stack-based version

9 years agos/new/n/ "new" is a bad name for a debugger which knows about C++
Alan T. DeKok [Mon, 23 Jan 2017 20:09:09 +0000 (15:09 -0500)] 
s/new/n/  "new" is a bad name for a debugger which knows about C++

9 years agoda may be NULL
Alan T. DeKok [Mon, 23 Jan 2017 19:44:31 +0000 (14:44 -0500)] 
da may be NULL

9 years agoRemove "Vendor-%d-Attr-%d" and "Cisco-Attr-%d" syntax.
Alan T. DeKok [Mon, 23 Jan 2017 18:52:32 +0000 (13:52 -0500)] 
Remove "Vendor-%d-Attr-%d" and "Cisco-Attr-%d" syntax.

v3 never produced those formats, but did parse them.  it's better
to just disallow them entirely.  That makes parsing much simpler

9 years agoFix assert
Arran Cudbard-Bell [Mon, 23 Jan 2017 17:55:55 +0000 (17:55 +0000)] 
Fix assert

9 years agoDoxygen doesn't like @fixme
Arran Cudbard-Bell [Mon, 23 Jan 2017 17:32:19 +0000 (17:32 +0000)] 
Doxygen doesn't like @fixme

9 years agoFix call to value_box_asprint
Arran Cudbard-Bell [Mon, 23 Jan 2017 17:32:08 +0000 (17:32 +0000)] 
Fix call to value_box_asprint

9 years agoAdd type field to value_box_t
Arran Cudbard-Bell [Mon, 23 Jan 2017 17:00:07 +0000 (17:00 +0000)] 
Add type field to value_box_t

... and modify all the hundres of places which get pair type from vp->da->type, to get it from the boxed value instead.

Add additional validation functions to check for places where the box type isn't set correctly.

References #1883
Closes #1012

9 years agoConst to the left
Arran Cudbard-Bell [Mon, 23 Jan 2017 16:58:39 +0000 (16:58 +0000)] 
Const to the left

9 years agoFixed raw VSA test
Alan T. DeKok [Fri, 20 Jan 2017 23:13:20 +0000 (18:13 -0500)] 
Fixed raw VSA test

9 years agocomment out failing tests until we can fix them
Alan T. DeKok [Fri, 20 Jan 2017 23:13:08 +0000 (18:13 -0500)] 
comment out failing tests until we can fix them

9 years agomore unknown vendors
Alan T. DeKok [Fri, 20 Jan 2017 23:04:11 +0000 (18:04 -0500)] 
more unknown vendors

9 years agomore unknown attributes
Alan T. DeKok [Fri, 20 Jan 2017 23:02:15 +0000 (18:02 -0500)] 
more unknown attributes