]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoVarious cleanups
Arran Cudbard-Bell [Sun, 5 Aug 2018 04:58:30 +0000 (00:58 -0400)] 
Various cleanups

8 years agoWe have a function for that...
Arran Cudbard-Bell [Sat, 4 Aug 2018 02:11:42 +0000 (22:11 -0400)] 
We have a function for that...

8 years agoIt's not a uint8_t
Arran Cudbard-Bell [Fri, 3 Aug 2018 23:27:07 +0000 (19:27 -0400)] 
It's not a uint8_t

8 years agoadd place-holder for commands
Alan T. DeKok [Fri, 3 Aug 2018 20:32:47 +0000 (16:32 -0400)] 
add place-holder for commands

so that if we add 100 commands of "... module foo", the help
text will only show help for "... module STRING ..."

which is much more polite than showing hundreds of possible
commands

8 years agoDon't allow radmin when checking the config.
Alan T. DeKok [Fri, 3 Aug 2018 20:23:49 +0000 (16:23 -0400)] 
Don't allow radmin when checking the config.

8 years agocast to pointer before assigning it
Alan T. DeKok [Fri, 3 Aug 2018 19:08:51 +0000 (15:08 -0400)] 
cast to pointer before assigning it

8 years agodon't write 0 bytes to SSL. Fixes #2270
Alan T. DeKok [Fri, 3 Aug 2018 18:16:32 +0000 (14:16 -0400)] 
don't write 0 bytes to SSL.  Fixes #2270

8 years agono longer have this
Alan T. DeKok [Fri, 3 Aug 2018 16:40:52 +0000 (12:40 -0400)] 
no longer have this

8 years agoAdd function for allocating talloc pools on page boundaries
Arran Cudbard-Bell [Fri, 3 Aug 2018 16:43:28 +0000 (12:43 -0400)] 
Add function for allocating talloc pools on page boundaries

8 years agoadd "show client config" command
Alan T. DeKok [Fri, 3 Aug 2018 14:57:32 +0000 (10:57 -0400)] 
add "show client config" command

8 years agoupdate "word" when matching a data type
Alan T. DeKok [Fri, 3 Aug 2018 14:54:53 +0000 (10:54 -0400)] 
update "word" when matching a data type

8 years agocomment out tab expand
Alan T. DeKok [Thu, 2 Aug 2018 21:03:52 +0000 (17:03 -0400)] 
comment out tab expand

until such time as we fix it for recent API changes

given that we're not using it, and instead are using
command_complete... it would be better to just delete this code

8 years agofix for new API
Alan T. DeKok [Thu, 2 Aug 2018 21:03:43 +0000 (17:03 -0400)] 
fix for new API

8 years agofix up so that adding intermediate names work
Alan T. DeKok [Thu, 2 Aug 2018 20:20:15 +0000 (16:20 -0400)] 
fix up so that adding intermediate names work

all fr_cmd_table_t now have to have `.name`

where we want to add a qualifier, e.g. `network X`, the table
has to have `.add_name = true,` added to it.

and fix `,dup` in network.c && worker.c

8 years agotrack sockets by number, too
Alan T. DeKok [Thu, 2 Aug 2018 20:19:37 +0000 (16:19 -0400)] 
track sockets by number, too

8 years agoskip the argc that we matched.
Alan T. DeKok [Thu, 2 Aug 2018 20:18:29 +0000 (16:18 -0400)] 
skip the argc that we matched.

Corresponding to commit cdd3d1260

8 years agoadd "name" fr_cmd_table_t
Alan T. DeKok [Thu, 2 Aug 2018 17:28:30 +0000 (13:28 -0400)] 
add "name" fr_cmd_table_t

so that we can specify dynamic names, e.g. "network 0 ..."

8 years agoremember that we skipped a word
Alan T. DeKok [Thu, 2 Aug 2018 17:27:47 +0000 (13:27 -0400)] 
remember that we skipped a word

8 years agoskip the word we matched
Alan T. DeKok [Thu, 2 Aug 2018 16:51:50 +0000 (12:51 -0400)] 
skip the word we matched

8 years agoAPI to get the name of a socket
Alan T. DeKok [Thu, 2 Aug 2018 14:36:49 +0000 (10:36 -0400)] 
API to get the name of a socket

8 years agocheck permissions only on leaf node
Alan T. DeKok [Thu, 2 Aug 2018 14:16:32 +0000 (10:16 -0400)] 
check permissions only on leaf node

8 years agotypo. Fixes #2269
Alan T. DeKok [Thu, 2 Aug 2018 13:51:13 +0000 (09:51 -0400)] 
typo.  Fixes #2269

8 years agomove check for partial name
Alan T. DeKok [Thu, 2 Aug 2018 13:45:31 +0000 (09:45 -0400)] 
move check for partial name

so that we don't keep expanding it ad infinitum

8 years agoadd network & worker commands for multi-threaded mode
Alan T. DeKok [Thu, 2 Aug 2018 13:26:59 +0000 (09:26 -0400)] 
add network & worker commands for multi-threaded mode

8 years agoadd and expose "stats network" commands
Alan T. DeKok [Thu, 2 Aug 2018 13:23:34 +0000 (09:23 -0400)] 
add and expose "stats network" commands

8 years agoclarify help
Alan T. DeKok [Thu, 2 Aug 2018 13:21:40 +0000 (09:21 -0400)] 
clarify help

8 years agoprint "used" instead of "running"
Alan T. DeKok [Thu, 2 Aug 2018 12:35:21 +0000 (08:35 -0400)] 
print "used" instead of "running"

8 years agoaccount for reference prefix, too
Alan T. DeKok [Thu, 2 Aug 2018 12:32:54 +0000 (08:32 -0400)] 
account for reference prefix, too

8 years agodon't print errors on CTRL-C
Alan T. DeKok [Wed, 1 Aug 2018 20:09:21 +0000 (16:09 -0400)] 
don't print errors on CTRL-C

we don't really care about them, and they mess up the terminal

8 years agoprint error to FP
Alan T. DeKok [Wed, 1 Aug 2018 20:06:58 +0000 (16:06 -0400)] 
print error to FP

so that it shows up at the callers end

8 years agoall commands are read-only by default
Alan T. DeKok [Wed, 1 Aug 2018 20:06:36 +0000 (16:06 -0400)] 
all commands are read-only by default

and can be marked as r/w by an actual command table

8 years agonow that control sockets work, always start radmin commands
Alan T. DeKok [Wed, 1 Aug 2018 19:47:38 +0000 (15:47 -0400)] 
now that control sockets work, always start radmin commands

8 years agobetter commands
Alan T. DeKok [Wed, 1 Aug 2018 19:46:51 +0000 (15:46 -0400)] 
better commands

8 years agotypo
Alan T. DeKok [Wed, 1 Aug 2018 19:42:37 +0000 (15:42 -0400)] 
typo

8 years agoclean up stats output and add times too
Alan T. DeKok [Wed, 1 Aug 2018 19:41:14 +0000 (15:41 -0400)] 
clean up stats output and add times too

8 years agoadd and expose worker statistics
Alan T. DeKok [Wed, 1 Aug 2018 19:12:52 +0000 (15:12 -0400)] 
add and expose worker statistics

8 years agowe use value boxes so add the header here
Alan T. DeKok [Wed, 1 Aug 2018 19:12:38 +0000 (15:12 -0400)] 
we use value boxes so add the header here

8 years agoadd "name" to fr_worker_create()
Alan T. DeKok [Wed, 1 Aug 2018 19:11:26 +0000 (15:11 -0400)] 
add "name" to fr_worker_create()

8 years agosuppress exact duplicates
Alan T. DeKok [Wed, 1 Aug 2018 18:54:06 +0000 (14:54 -0400)] 
suppress exact duplicates

8 years agouse consist (i.e. simpler) names
Alan T. DeKok [Wed, 1 Aug 2018 18:49:15 +0000 (14:49 -0400)] 
use consist (i.e. simpler) names

8 years agoUse threadsafe variant of strerror in write failure
Arran Cudbard-Bell [Wed, 1 Aug 2018 14:13:50 +0000 (10:13 -0400)] 
Use threadsafe variant of strerror in write failure

8 years agoadd tab completion to client radmin
Alan T. DeKok [Wed, 1 Aug 2018 13:38:32 +0000 (09:38 -0400)] 
add tab completion to client radmin

8 years agoadd fr_radmin_complete() for external functions
Alan T. DeKok [Wed, 1 Aug 2018 13:02:09 +0000 (09:02 -0400)] 
add fr_radmin_complete() for external functions

8 years agoFix system header warning
Arran Cudbard-Bell [Wed, 1 Aug 2018 11:37:16 +0000 (07:37 -0400)] 
Fix system header warning

8 years agoTypo
Arran Cudbard-Bell [Wed, 1 Aug 2018 11:36:50 +0000 (07:36 -0400)] 
Typo

8 years agoInclude/sort extra headers
Arran Cudbard-Bell [Wed, 1 Aug 2018 10:37:07 +0000 (06:37 -0400)] 
Include/sort extra headers

8 years agoAudit use of strerror()
Arran Cudbard-Bell [Tue, 31 Jul 2018 21:24:49 +0000 (17:24 -0400)] 
Audit use of strerror()

It may not be threadsafe

8 years agoclean up client radmin and add '?' help completion
Alan T. DeKok [Tue, 31 Jul 2018 18:17:57 +0000 (14:17 -0400)] 
clean up client radmin and add '?' help completion

8 years agoadd and expose fr_radmin_help()
Alan T. DeKok [Tue, 31 Jul 2018 18:15:37 +0000 (14:15 -0400)] 
add and expose fr_radmin_help()

8 years agouse real readline
Alan T. DeKok [Tue, 31 Jul 2018 18:15:16 +0000 (14:15 -0400)] 
use real readline

8 years agotypos
Alan T. DeKok [Tue, 31 Jul 2018 00:18:16 +0000 (20:18 -0400)] 
typos

8 years agotypo
Alan T. DeKok [Mon, 30 Jul 2018 21:35:20 +0000 (17:35 -0400)] 
typo

8 years agoverify client structure and secret
Alan T. DeKok [Mon, 30 Jul 2018 20:54:17 +0000 (16:54 -0400)] 
verify client structure and secret

8 years agoconstify functions
Alan T. DeKok [Mon, 30 Jul 2018 20:51:38 +0000 (16:51 -0400)] 
constify functions

8 years agoconstify
Alan T. DeKok [Mon, 30 Jul 2018 20:51:20 +0000 (16:51 -0400)] 
constify

8 years agoallow for signing of structure members
Alan T. DeKok [Mon, 30 Jul 2018 18:54:50 +0000 (14:54 -0400)] 
allow for signing of structure members

8 years agoadded macros to sign / verify structures
Alan T. DeKok [Mon, 30 Jul 2018 18:28:31 +0000 (14:28 -0400)] 
added macros to sign / verify structures

with some limitations

8 years agoremove unused variable
Alan T. DeKok [Mon, 30 Jul 2018 17:53:47 +0000 (13:53 -0400)] 
remove unused variable

8 years agobetter expansions for config items
Alan T. DeKok [Sat, 28 Jul 2018 13:01:20 +0000 (09:01 -0400)] 
better expansions for config items

8 years agowe no longer need nested "help"
Alan T. DeKok [Sat, 28 Jul 2018 13:00:53 +0000 (09:00 -0400)] 
we no longer need nested "help"

now that we have '?' working

8 years agobetter tab expansions
Alan T. DeKok [Fri, 27 Jul 2018 14:58:50 +0000 (10:58 -0400)] 
better tab expansions

it doesn't expand subsections for CONF_PAIRs, but that should
likely be fixed.

8 years agomore checks
Alan T. DeKok [Fri, 27 Jul 2018 14:46:50 +0000 (10:46 -0400)] 
more checks

8 years agoremove redundant code
Alan T. DeKok [Fri, 27 Jul 2018 14:44:17 +0000 (10:44 -0400)] 
remove redundant code

8 years agomatch partial names in the middle of a command string, too
Alan T. DeKok [Fri, 27 Jul 2018 14:41:29 +0000 (10:41 -0400)] 
match partial names in the middle of a command string, too

8 years agoescape quoted strings
Alan T. DeKok [Fri, 27 Jul 2018 12:19:53 +0000 (08:19 -0400)] 
escape quoted strings

8 years agoreturn early instead of break
Alan T. DeKok [Thu, 26 Jul 2018 22:42:59 +0000 (18:42 -0400)] 
return early instead of break

8 years agocheck "want_section" flag
Alan T. DeKok [Thu, 26 Jul 2018 19:32:07 +0000 (15:32 -0400)] 
check "want_section" flag

8 years agowhitespace
Alan T. DeKok [Thu, 26 Jul 2018 19:31:59 +0000 (15:31 -0400)] 
whitespace

8 years agoRevert "move to enum"
Alan T. DeKok [Thu, 26 Jul 2018 18:50:46 +0000 (14:50 -0400)] 
Revert "move to enum"

This reverts commit 9571b9adc846f5174b6215faf76ccf6999f88b99.

easier on the coder, but the compiler complains

8 years agopartially handle name2 for sections
Alan T. DeKok [Thu, 26 Jul 2018 18:50:07 +0000 (14:50 -0400)] 
partially handle name2 for sections

it still doesn't do checking for section/pair depending on
what the user wants

8 years agostart of tab expansions for "show config section/item"
Alan T. DeKok [Thu, 26 Jul 2018 18:41:15 +0000 (14:41 -0400)] 
start of tab expansions for "show config section/item"

doesn't handle section name2 yet, but it's a start

8 years agoprint syntax if we're getting help for one specific command
Alan T. DeKok [Thu, 26 Jul 2018 16:23:48 +0000 (12:23 -0400)] 
print syntax if we're getting help for one specific command

8 years agocheck syntax_argv, not syntax
Alan T. DeKok [Thu, 26 Jul 2018 16:21:32 +0000 (12:21 -0400)] 
check syntax_argv, not syntax

8 years agoremove "auto_allocated" flag. It's not needed
Alan T. DeKok [Thu, 26 Jul 2018 16:20:15 +0000 (12:20 -0400)] 
remove "auto_allocated" flag.  It's not needed

8 years agosimplify code by removing redundancies
Alan T. DeKok [Thu, 26 Jul 2018 16:17:15 +0000 (12:17 -0400)] 
simplify code by removing redundancies

8 years agomove to enum
Alan T. DeKok [Thu, 26 Jul 2018 16:06:48 +0000 (12:06 -0400)] 
move to enum

8 years agominor cleanups
Alan T. DeKok [Thu, 26 Jul 2018 15:28:45 +0000 (11:28 -0400)] 
minor cleanups

8 years agowe don't need syntax_argc
Alan T. DeKok [Thu, 26 Jul 2018 15:21:47 +0000 (11:21 -0400)] 
we don't need syntax_argc

8 years agohelp for show module
Alan T. DeKok [Thu, 26 Jul 2018 14:57:57 +0000 (10:57 -0400)] 
help for show module

8 years agocheck for "too far" commands, too
Alan T. DeKok [Thu, 26 Jul 2018 14:54:53 +0000 (10:54 -0400)] 
check for "too far" commands, too

8 years agoprint help for partial commands
Alan T. DeKok [Thu, 26 Jul 2018 14:51:53 +0000 (10:51 -0400)] 
print help for partial commands

8 years agocheck total depth of the tree
Alan T. DeKok [Thu, 26 Jul 2018 14:35:50 +0000 (10:35 -0400)] 
check total depth of the tree

8 years agodon't add extraneous newlines
Alan T. DeKok [Thu, 26 Jul 2018 13:19:10 +0000 (09:19 -0400)] 
don't add extraneous newlines

8 years agoadded attribute as found on the net
Alan T. DeKok [Thu, 26 Jul 2018 11:38:20 +0000 (07:38 -0400)] 
added attribute as found on the net

8 years agouse MD5(State) when State is longer than 16 octets
Alan T. DeKok [Wed, 25 Jul 2018 22:52:02 +0000 (18:52 -0400)] 
use MD5(State) when State is longer than 16 octets

8 years agoadd "show config section NAME" and "show config item NAME"
Alan T. DeKok [Tue, 24 Jul 2018 18:32:22 +0000 (14:32 -0400)] 
add "show config section NAME" and "show config item NAME"

which should prove useful.

No tab expansion for that yet.  But I suspect it isn't hard.

8 years agoradsqlrelay: actually do something in debug mode
Matthew Newton [Tue, 24 Jul 2018 21:46:59 +0000 (22:46 +0100)] 
radsqlrelay: actually do something in debug mode

8 years agomove "show module config" to "show config module"
Alan T. DeKok [Tue, 24 Jul 2018 18:16:23 +0000 (14:16 -0400)] 
move "show module config" to "show config module"

8 years agomove compare to common API
Alan T. DeKok [Tue, 24 Jul 2018 17:52:54 +0000 (13:52 -0400)] 
move compare to common API

8 years agotab expand module names
Alan T. DeKok [Tue, 24 Jul 2018 17:45:13 +0000 (13:45 -0400)] 
tab expand module names

8 years agosave the current word, not the whole string
Alan T. DeKok [Tue, 24 Jul 2018 17:44:13 +0000 (13:44 -0400)] 
save the current word, not the whole string

8 years agoadd command to show list of virtual servers
Alan T. DeKok [Tue, 24 Jul 2018 17:30:34 +0000 (13:30 -0400)] 
add command to show list of virtual servers

8 years agoe less code.
Alan T. DeKok [Tue, 24 Jul 2018 16:09:35 +0000 (12:09 -0400)] 
e less code.

8 years agoactually unlock files, rather that just locking them again :(
Matthew Newton [Tue, 24 Jul 2018 16:02:26 +0000 (17:02 +0100)] 
actually unlock files, rather that just locking them again :(

8 years agodon't over-write partial entries
Alan T. DeKok [Mon, 23 Jul 2018 19:30:05 +0000 (15:30 -0400)] 
don't over-write partial entries

8 years agotypo
Alan T. DeKok [Mon, 23 Jul 2018 19:13:40 +0000 (15:13 -0400)] 
typo

8 years agofinish tab expansions in the framework
Alan T. DeKok [Mon, 23 Jul 2018 18:51:59 +0000 (14:51 -0400)] 
finish tab expansions in the framework

8 years agocheck for liveliness on edge nodes
Alan T. DeKok [Mon, 23 Jul 2018 18:17:02 +0000 (14:17 -0400)] 
check for liveliness on edge nodes

8 years agosuppress duplicate expansions in fr_command_complete()
Alan T. DeKok [Mon, 23 Jul 2018 12:57:06 +0000 (08:57 -0400)] 
suppress duplicate expansions in fr_command_complete()

and start checking for tab expansion callbacks

8 years agotrie_parent is used with fr_cond_assert
Alan T. DeKok [Sun, 22 Jul 2018 19:18:30 +0000 (15:18 -0400)] 
trie_parent is used with fr_cond_assert