]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agomore consistency
Alan T. DeKok [Thu, 15 Aug 2019 12:55:20 +0000 (08:55 -0400)] 
more consistency

6 years agoCleanup stray reference to evs type
Terry Burton [Thu, 15 Aug 2019 13:56:06 +0000 (14:56 +0100)] 
Cleanup stray reference to evs type

Related to c43d2b1aa3f9a4e29cc8b3b1b432d5622b26c58d.

6 years agocleanups and consistency pass
Alan T. DeKok [Thu, 15 Aug 2019 12:46:13 +0000 (08:46 -0400)] 
cleanups and consistency pass

6 years agodoc: Rename README.adoc to index.adoc (#2892)
Jorge Pereira [Thu, 15 Aug 2019 03:55:58 +0000 (00:55 -0300)] 
doc: Rename README.adoc to index.adoc (#2892)

* doc: Rename README.adoc to index.adoc

* doc: Update references from README.adoc to index.adoc

6 years agodoc: Fix section title from markdown to asciidoc (#2895)
Jorge Pereira [Thu, 15 Aug 2019 03:55:40 +0000 (00:55 -0300)] 
doc: Fix section title from markdown to asciidoc (#2895)

6 years agodoc: Fix the topic level0 for Unlang docs (#2894)
Jorge Pereira [Thu, 15 Aug 2019 02:39:31 +0000 (23:39 -0300)] 
doc: Fix the topic level0 for Unlang docs (#2894)

6 years agoFix typos in doc/unlang/xlat*.adoc (#2893)
Jorge Pereira [Thu, 15 Aug 2019 00:45:26 +0000 (21:45 -0300)] 
Fix typos in doc/unlang/xlat*.adoc (#2893)

6 years agoReduce fixup pool size
Arran Cudbard-Bell [Thu, 15 Aug 2019 00:33:55 +0000 (20:33 -0400)] 
Reduce fixup pool size

6 years agoRevert "fr_dict_finalise() should not free things it didn't allocate"
Arran Cudbard-Bell [Wed, 14 Aug 2019 23:30:53 +0000 (19:30 -0400)] 
Revert "fr_dict_finalise() should not free things it didn't allocate"

This reverts commit 08f86bb070e4ecd0d080318d09c8d9d395b48067.

6 years agoRevert "we don't really need a fixup pool"
Arran Cudbard-Bell [Wed, 14 Aug 2019 23:30:46 +0000 (19:30 -0400)] 
Revert "we don't really need a fixup pool"

This reverts commit bd4d6996b37a7c23bf61bf376115bcf6ce94bbbc.

6 years agoSign and formatting fixes
Arran Cudbard-Bell [Wed, 14 Aug 2019 23:29:45 +0000 (19:29 -0400)] 
Sign and formatting fixes

6 years agoNot needed
Arran Cudbard-Bell [Wed, 14 Aug 2019 23:03:14 +0000 (19:03 -0400)] 
Not needed

This should be part of the reference docs.

6 years agoDocument -1 length value for fr_table_num_by_substr
Arran Cudbard-Bell [Wed, 14 Aug 2019 22:47:42 +0000 (18:47 -0400)] 
Document -1 length value for fr_table_num_by_substr

6 years agoname_len should be ssize_t to allow for -1 Closes #2891
Arran Cudbard-Bell [Wed, 14 Aug 2019 22:43:28 +0000 (18:43 -0400)] 
name_len should be ssize_t to allow for -1 Closes #2891

6 years agofr_dict_finalise() should not free things it didn't allocate
Alan T. DeKok [Wed, 14 Aug 2019 22:05:50 +0000 (18:05 -0400)] 
fr_dict_finalise() should not free things it didn't allocate

the caller will free the fixup_pool

6 years agoAdd longest prefix function for ordered tables too
Arran Cudbard-Bell [Wed, 14 Aug 2019 22:01:53 +0000 (18:01 -0400)] 
Add longest prefix function for ordered tables too

6 years agos/fr_table_t/fr_table_sorted_t/g
Arran Cudbard-Bell [Wed, 14 Aug 2019 21:30:16 +0000 (17:30 -0400)] 
s/fr_table_t/fr_table_sorted_t/g

6 years agoEfficient table lookups, phase 2
Arran Cudbard-Bell [Wed, 14 Aug 2019 21:28:44 +0000 (17:28 -0400)] 
Efficient table lookups, phase 2

6 years agouse standard quotation marks. Fixes #2888
Alan T. DeKok [Wed, 14 Aug 2019 19:56:46 +0000 (15:56 -0400)] 
use standard quotation marks.  Fixes #2888

6 years agoFix wrong include of 'string.h'
Jorge Pereira [Wed, 14 Aug 2019 19:25:51 +0000 (16:25 -0300)] 
Fix wrong include of 'string.h'

6 years agoint2str fix
Alan T. DeKok [Wed, 14 Aug 2019 18:48:20 +0000 (14:48 -0400)] 
int2str fix

6 years agowe don't really need a fixup pool
Alan T. DeKok [Wed, 14 Aug 2019 18:43:17 +0000 (14:43 -0400)] 
we don't really need a fixup pool

the fixups are few and far between.

6 years agotrack filename and line in read ctx
Alan T. DeKok [Wed, 14 Aug 2019 18:35:50 +0000 (14:35 -0400)] 
track filename and line in read ctx

so that we can print out better errors for enum fixups

6 years agomore checks when parsing flag fields
Alan T. DeKok [Wed, 14 Aug 2019 18:08:01 +0000 (14:08 -0400)] 
more checks when parsing flag fields

the errors are also produced elsewhere, but more descriptive errors
are possible here.

6 years agoenforce flags / types baed on parent attribute
Alan T. DeKok [Wed, 14 Aug 2019 16:35:30 +0000 (12:35 -0400)] 
enforce flags / types baed on parent attribute

6 years agofix / clarify error messages
Alan T. DeKok [Wed, 14 Aug 2019 16:33:52 +0000 (12:33 -0400)] 
fix / clarify error messages

6 years agoset "type_size" for PROTOCOLs
Alan T. DeKok [Wed, 14 Aug 2019 16:28:59 +0000 (12:28 -0400)] 
set "type_size" for PROTOCOLs

6 years agoremove attribute references.
Alan T. DeKok [Wed, 14 Aug 2019 12:20:15 +0000 (08:20 -0400)] 
remove attribute references.

Unused, and we will end up doing it a different way

6 years agoEfficient table lookups, phase 1
Arran Cudbard-Bell [Tue, 13 Aug 2019 18:28:54 +0000 (14:28 -0400)] 
Efficient table lookups, phase 1

6 years agodoc: Convert doc/raddb/certs/README.adoc from markdown to asciidoc (#2884)
Jorge Pereira [Wed, 14 Aug 2019 16:33:10 +0000 (13:33 -0300)] 
doc: Convert doc/raddb/certs/README.adoc from markdown to asciidoc (#2884)

6 years agofix .md to .adoc link here, too
Alan T. DeKok [Wed, 14 Aug 2019 02:33:36 +0000 (22:33 -0400)] 
fix .md to .adoc link here, too

6 years agodoc: Fix references from *.md to *.adoc links (#2885)
Jorge Pereira [Tue, 13 Aug 2019 23:34:29 +0000 (20:34 -0300)] 
doc: Fix references from *.md to *.adoc links (#2885)

6 years agoshut up compiler
Alan T. DeKok [Tue, 13 Aug 2019 21:40:36 +0000 (17:40 -0400)] 
shut up compiler

6 years agoallow sibling STRUCT definitions, one after the other.
Alan T. DeKok [Tue, 13 Aug 2019 20:59:00 +0000 (16:59 -0400)] 
allow sibling STRUCT definitions, one after the other.

In which case we unwind the stack until we find the correct
parent.

6 years agoallow octets[n] in previous MEMBERs, too
Alan T. DeKok [Tue, 13 Aug 2019 20:58:14 +0000 (16:58 -0400)] 
allow octets[n] in previous MEMBERs, too

6 years agoallow fixed-size "octet" fields in structs
Alan T. DeKok [Tue, 13 Aug 2019 20:50:17 +0000 (16:50 -0400)] 
allow fixed-size "octet" fields in structs

6 years agoencode structs, and add tests for them
Alan T. DeKok [Tue, 13 Aug 2019 19:56:03 +0000 (15:56 -0400)] 
encode structs, and add tests for them

6 years agoallow RFC attributes to be of type "struct"
Alan T. DeKok [Tue, 13 Aug 2019 19:54:07 +0000 (15:54 -0400)] 
allow RFC attributes to be of type "struct"

6 years agodoc: Don't append extras '/'
Jorge Pereira [Tue, 13 Aug 2019 18:54:23 +0000 (15:54 -0300)] 
doc: Don't append extras '/'

6 years agoDon't need to process *.md in doc/ anymore (#2882)
Jorge Pereira [Tue, 13 Aug 2019 18:27:59 +0000 (15:27 -0300)] 
Don't need to process *.md in doc/ anymore (#2882)

We do not have any *.md in doc/, so don't need it.

6 years ago doc: Convert doc/raddb/mods-available/README.adoc (#2881)
Jorge Pereira [Tue, 13 Aug 2019 18:20:16 +0000 (15:20 -0300)] 
 doc: Convert doc/raddb/mods-available/README.adoc (#2881)

* doc: Rename doc/raddb/mods-available/README.{md,adoc}

* doc: Convert doc/raddb/mods-available/README.adoc from markdown to asciidoc

6 years ago doc: Convert doc/raddb/mods-config/README.adoc from markdown to asciidoc (#2880)
Jorge Pereira [Tue, 13 Aug 2019 18:10:30 +0000 (15:10 -0300)] 
 doc: Convert doc/raddb/mods-config/README.adoc from markdown to asciidoc (#2880)

* doc: Rename doc/raddb/mods-config/README.{md,adoc}

* doc: Convert doc/raddb/mods-config/README.adoc from markdown to asciidoc

6 years ago doc: Convert doc/raddb/README.adoc from markdown to asciidoc (#2879)
Jorge Pereira [Tue, 13 Aug 2019 17:52:27 +0000 (14:52 -0300)] 
 doc: Convert doc/raddb/README.adoc from markdown to asciidoc (#2879)

* doc: Rename doc/raddb/README.{md,adoc}

* doc: Convert doc/raddb/README.adoc from markdown to asciidoc

6 years ago doc: Convert doc/directories.adoc from markdown to asciidoc (#2878)
Jorge Pereira [Tue, 13 Aug 2019 17:51:52 +0000 (14:51 -0300)] 
 doc: Convert doc/directories.adoc from markdown to asciidoc (#2878)

* doc: Rename doc/directories.{md,adoc}

* doc: Convert doc/directories.adoc from markdown to asciidoc

6 years agodoc: Convert doc/README.md to doc/README.adoc (#2832)
Jorge Pereira [Tue, 13 Aug 2019 16:56:32 +0000 (13:56 -0300)] 
doc: Convert doc/README.md to doc/README.adoc (#2832)

6 years agoremove hack
Alan T. DeKok [Tue, 13 Aug 2019 15:37:42 +0000 (11:37 -0400)] 
remove hack

6 years agoloop detect on calling instruction, which is simpler
Alan T. DeKok [Tue, 13 Aug 2019 15:32:26 +0000 (11:32 -0400)] 
loop detect on calling instruction, which is simpler

as it gets us virtual server, packet types, etc.

6 years agoRemove previous hacks to cf_data_find() and use CF_IDENT_ANY
Alan T. DeKok [Tue, 13 Aug 2019 15:24:28 +0000 (11:24 -0400)] 
Remove previous hacks to cf_data_find() and use CF_IDENT_ANY

with the caveat that the caller needs to use _cf_data_find(),
so that we are not looking for talloc type "CF_IDENT_ANY"

6 years agoformatting
Alan T. DeKok [Tue, 13 Aug 2019 14:16:14 +0000 (10:16 -0400)] 
formatting

6 years agoformat it
Alan T. DeKok [Tue, 13 Aug 2019 14:15:55 +0000 (10:15 -0400)] 
format it

6 years agoformat STRUCT, too
Alan T. DeKok [Tue, 13 Aug 2019 14:15:15 +0000 (10:15 -0400)] 
format STRUCT, too

6 years agoparse sub-structs
Alan T. DeKok [Tue, 13 Aug 2019 13:49:04 +0000 (09:49 -0400)] 
parse sub-structs

6 years agomore sanity check on STRUCT
Alan T. DeKok [Tue, 13 Aug 2019 13:48:29 +0000 (09:48 -0400)] 
more sanity check on STRUCT

that the parent MUST be of type 'struct'

that the previous MEMBER MUST be of fixed size

6 years agodon't check data types when looking up children
Alan T. DeKok [Tue, 13 Aug 2019 13:35:34 +0000 (09:35 -0400)] 
don't check data types when looking up children

We already check for da->children.  If there are no children,
then we can return, independent of data types.  The rest of the
code (i.e. adding attributes) ensures that children are added
only when necessary

6 years agoclean up and rearrange
Alan T. DeKok [Tue, 13 Aug 2019 12:24:10 +0000 (08:24 -0400)] 
clean up and rearrange

6 years agodon't have NULL entries.
Alan T. DeKok [Tue, 13 Aug 2019 03:19:40 +0000 (23:19 -0400)] 
don't have NULL entries.

NULL is used to signal the end of the list.  It shouldn't be used
as the *first* member of the list.

6 years agouse .Example instead of anything else
Alan T. DeKok [Tue, 13 Aug 2019 00:14:35 +0000 (20:14 -0400)] 
use .Example instead of anything else

6 years agoreformat to follow the standard style
Alan T. DeKok [Tue, 13 Aug 2019 00:10:54 +0000 (20:10 -0400)] 
reformat to follow the standard style

6 years agoallow calling the same server if the packet types are different
Alan T. DeKok [Mon, 12 Aug 2019 23:54:40 +0000 (19:54 -0400)] 
allow calling the same server if the packet types are different

so that we can receive an Access-Request, create a subrequest
of Accounting-Request, and then call ourselves to create a fake
"start" packet

6 years agoprevent "call" loops
Alan T. DeKok [Mon, 12 Aug 2019 23:49:59 +0000 (19:49 -0400)] 
prevent "call" loops

6 years agoword smithing
Alan T. DeKok [Mon, 12 Aug 2019 23:37:37 +0000 (19:37 -0400)] 
word smithing

6 years agodefine Q if necessary
Alan T. DeKok [Mon, 12 Aug 2019 23:32:42 +0000 (19:32 -0400)] 
define Q if necessary

6 years agoadd documentation for "call"
Alan T. DeKok [Mon, 12 Aug 2019 23:25:41 +0000 (19:25 -0400)] 
add documentation for "call"

6 years agorun the child request through the "call" subsection
Alan T. DeKok [Mon, 12 Aug 2019 23:15:34 +0000 (19:15 -0400)] 
run the child request through the "call" subsection

* call FOO means
* call virtual server FOO with a subrequest
* then run the subrequest through the subsection of the CALL
* in order to get post-processing of the reply packet

i.e. to copy packet types, etc.

6 years agodocker: The target 'crossbuild' needs the package 'rsync' previously
Jorge Pereira [Mon, 12 Aug 2019 21:15:30 +0000 (18:15 -0300)] 
docker: The target 'crossbuild' needs the package 'rsync' previously
installed into the images

6 years agoAllow 'make crossbuild' to use 'Q='
Jorge Pereira [Mon, 12 Aug 2019 21:06:45 +0000 (18:06 -0300)] 
Allow 'make crossbuild' to use 'Q='

6 years agodoc: Convert doc/schemas/logstash/README.{md,adoc} (#2877)
Jorge Pereira [Mon, 12 Aug 2019 22:32:58 +0000 (19:32 -0300)] 
doc: Convert doc/schemas/logstash/README.{md,adoc} (#2877)

6 years agomaybe "type" can be NULL
Alan T. DeKok [Mon, 12 Aug 2019 20:57:43 +0000 (16:57 -0400)] 
maybe "type" can be NULL

6 years agoREADME.md no longer exists. Don't install it.
Alan T. DeKok [Mon, 12 Aug 2019 20:56:39 +0000 (16:56 -0400)] 
README.md no longer exists.  Don't install it.

6 years agofix up debug output
Alan T. DeKok [Mon, 12 Aug 2019 20:39:38 +0000 (16:39 -0400)] 
fix up debug output

6 years agore-implement "call" based on subrequest.c
Alan T. DeKok [Mon, 12 Aug 2019 20:20:48 +0000 (16:20 -0400)] 
re-implement "call" based on subrequest.c

Hopefully yield, etc. will work.  Not well tested for now.

6 years agoadd special data type "void" for cf_data_find()
Alan T. DeKok [Mon, 12 Aug 2019 20:18:58 +0000 (16:18 -0400)] 
add special data type "void" for cf_data_find()

when we want to find a named instance, BUT where we don't know
the talloc type.

6 years agocheck if types match in cf_find() when ident1 == CF_IDENT_ANY
Alan T. DeKok [Mon, 12 Aug 2019 20:17:52 +0000 (16:17 -0400)] 
check if types match in cf_find() when ident1 == CF_IDENT_ANY

That way we can return the thing we want, not some random similar
thing.

6 years agoadd the "call" syntax and handlers
Alan T. DeKok [Mon, 12 Aug 2019 19:53:54 +0000 (15:53 -0400)] 
add the "call" syntax and handlers

6 years agofix comments and clean up
Alan T. DeKok [Mon, 12 Aug 2019 18:56:08 +0000 (14:56 -0400)] 
fix comments and clean up

unlang_subrequest_push() no longer calls unlang_subrequest()
So the comments and code handling that are not necessary

6 years agoremove unnecessary assert
Alan T. DeKok [Mon, 12 Aug 2019 18:34:40 +0000 (14:34 -0400)] 
remove unnecessary assert

6 years agodocument "detach" parameter
Alan T. DeKok [Mon, 12 Aug 2019 18:34:24 +0000 (14:34 -0400)] 
document "detach" parameter

6 years agoword smithing
Alan T. DeKok [Mon, 12 Aug 2019 17:59:47 +0000 (13:59 -0400)] 
word smithing

and add reference to "call".

6 years agomoved and cleaned up
Alan T. DeKok [Mon, 12 Aug 2019 17:31:49 +0000 (13:31 -0400)] 
moved and cleaned up

6 years agowe don't need this any more
Alan T. DeKok [Mon, 12 Aug 2019 17:24:40 +0000 (13:24 -0400)] 
we don't need this any more

6 years agoclean up loop in unlang_interpret_synchronous()
Alan T. DeKok [Mon, 12 Aug 2019 15:17:00 +0000 (11:17 -0400)] 
clean up loop in unlang_interpret_synchronous()

6 years agodon't use request->password
Alan T. DeKok [Mon, 12 Aug 2019 14:59:31 +0000 (10:59 -0400)] 
don't use request->password

6 years agoallow hex, too
Alan T. DeKok [Mon, 12 Aug 2019 13:41:24 +0000 (09:41 -0400)] 
allow hex, too

6 years agoset state->result, too
Alan T. DeKok [Mon, 12 Aug 2019 13:36:11 +0000 (09:36 -0400)] 
set state->result, too

6 years agobuild fixes
Alan T. DeKok [Mon, 12 Aug 2019 13:34:47 +0000 (09:34 -0400)] 
build fixes

6 years agosort output names so things are easier to find
Alan T. DeKok [Mon, 12 Aug 2019 13:28:10 +0000 (09:28 -0400)] 
sort output names so things are easier to find

6 years agoclean up loop in unlang_interpret_synchronous()
Alan T. DeKok [Mon, 12 Aug 2019 13:13:49 +0000 (09:13 -0400)] 
clean up loop in unlang_interpret_synchronous()

6 years agoadd tmp-float-0, and do floating point comparison in tests
Alan T. DeKok [Mon, 12 Aug 2019 12:30:43 +0000 (08:30 -0400)] 
add tmp-float-0, and do floating point comparison in tests

6 years agohandle child requests in unlang_interpret_synchronous()
Alan T. DeKok [Mon, 12 Aug 2019 11:28:31 +0000 (07:28 -0400)] 
handle child requests in unlang_interpret_synchronous()

if the parent finishes, BUT there are still children, then keep
running the children until they're done, too.

Then, clean up the children.

6 years agoset state_ctx to talloc_ctx, not to VPS
Alan T. DeKok [Mon, 12 Aug 2019 00:21:20 +0000 (20:21 -0400)] 
set state_ctx to talloc_ctx, not to VPS

6 years agofree child on error, too
Alan T. DeKok [Sun, 11 Aug 2019 16:40:47 +0000 (12:40 -0400)] 
free child on error, too

6 years agodocument Request-Lifetime for detach
Alan T. DeKok [Sun, 11 Aug 2019 14:26:25 +0000 (10:26 -0400)] 
document Request-Lifetime for detach

6 years agorun-time attribute issues are debug messages
Alan T. DeKok [Sun, 11 Aug 2019 14:26:05 +0000 (10:26 -0400)] 
run-time attribute issues are debug messages

so that they don't pollute the main log file

6 years agoword smithing
Alan T. DeKok [Sun, 11 Aug 2019 13:51:58 +0000 (09:51 -0400)] 
word smithing

6 years agoadd documentation
Alan T. DeKok [Sun, 11 Aug 2019 13:51:46 +0000 (09:51 -0400)] 
add documentation

6 years agoadd "parallel detach" syntax
Alan T. DeKok [Sun, 11 Aug 2019 12:48:31 +0000 (08:48 -0400)] 
add "parallel detach" syntax

which starts all children in the detached state

6 years agoadd simple test that "parallel empty" parses
Alan T. DeKok [Sun, 11 Aug 2019 12:29:29 +0000 (08:29 -0400)] 
add simple test that "parallel empty" parses

6 years agoas of 02433d85, the parent does *not* have to be "subrequest"
Alan T. DeKok [Sun, 11 Aug 2019 12:27:19 +0000 (08:27 -0400)] 
as of 02433d85, the parent does *not* have to be "subrequest"

6 years agotypo
Alan T. DeKok [Sat, 10 Aug 2019 18:05:35 +0000 (14:05 -0400)] 
typo

6 years agorlm_sql_oracle: We only support Oracle >= 11
Jorge Pereira [Fri, 9 Aug 2019 19:57:42 +0000 (16:57 -0300)] 
rlm_sql_oracle: We only support Oracle >= 11