Arran Cudbard-Bell [Wed, 25 Jun 2014 13:06:52 +0000 (14:06 +0100)]
We don't actually copy...
Arran Cudbard-Bell [Wed, 25 Jun 2014 13:04:11 +0000 (14:04 +0100)]
Do something sane for converting FreeRADIUS values to Kamelschewine. Fixes #707
Apparently Spracheschewine means porcupine
Arran Cudbard-Bell [Wed, 25 Jun 2014 12:59:55 +0000 (13:59 +0100)]
Add fr_cursor_next_peek
Arran Cudbard-Bell [Wed, 25 Jun 2014 12:59:44 +0000 (13:59 +0100)]
Formatting
Arran Cudbard-Bell [Wed, 25 Jun 2014 11:52:33 +0000 (12:52 +0100)]
Populate DHCP-Paramter-Request-List values dynamically
Arran Cudbard-Bell [Wed, 25 Jun 2014 11:06:44 +0000 (12:06 +0100)]
Remove param documentation from all connection callbacks
Alan T. DeKok [Wed, 25 Jun 2014 11:03:18 +0000 (07:03 -0400)]
Doxygen is stupid, so delete doxygen comments.
It keeps complaining that "ctx" isn't documented. Fine. Go away.
Arran Cudbard-Bell [Wed, 25 Jun 2014 10:56:51 +0000 (11:56 +0100)]
Fix spurious soft asserts Fixes #706
Alan T. DeKok [Tue, 24 Jun 2014 23:29:44 +0000 (19:29 -0400)]
Use NULL for talloc ctx in EAP
It's safer
Alan T. DeKok [Tue, 24 Jun 2014 21:22:37 +0000 (17:22 -0400)]
Add in rad_virtual_server() which is now required for libeap
Arran Cudbard-Bell [Fri, 13 Jun 2014 10:12:04 +0000 (11:12 +0100)]
Add support for Vendor Specific Suboptions (RFC 4243)
Add support for array type suboptions
Allow terminating suboption and padding suboption
Add dictionary attributes for a many more DHCP RFCs
Alan T. DeKok [Tue, 24 Jun 2014 18:42:55 +0000 (14:42 -0400)]
Glue channel bindings into the TTLS code
Alan T. DeKok [Tue, 24 Jun 2014 18:42:30 +0000 (14:42 -0400)]
Channel binding encode/decoder and process functions
Alan T. DeKok [Tue, 24 Jun 2014 18:42:10 +0000 (14:42 -0400)]
Attributes and definitions fo channel bindings
Alan T. DeKok [Tue, 24 Jun 2014 18:06:36 +0000 (14:06 -0400)]
Move debug messages into rad_virtual_server
To remove duplication
Arran Cudbard-Bell [Tue, 24 Jun 2014 17:07:12 +0000 (18:07 +0100)]
Move exit functions to debug.c
Arran Cudbard-Bell [Tue, 24 Jun 2014 16:32:01 +0000 (17:32 +0100)]
Merge pull request #700 from mcnewton/rlm_files
make "this file is processed in order" more clear...
Arran Cudbard-Bell [Wed, 8 Jan 2014 18:25:00 +0000 (18:25 +0000)]
Fix build when building on OSX, using non standard libssl, and a non standard version of clang/gcc (or a < OSX 10.9 version of clang/gcc)
Arran Cudbard-Bell [Tue, 24 Jun 2014 14:52:44 +0000 (15:52 +0100)]
Extra include dirs should be specified with -isystem
Matthew Newton [Tue, 24 Jun 2014 10:06:47 +0000 (11:06 +0100)]
make "this file is processed in order" more clear...
Alan T. DeKok [Tue, 24 Jun 2014 13:20:25 +0000 (09:20 -0400)]
talloc_steal the packet after reading it
Arran Cudbard-Bell [Tue, 24 Jun 2014 12:18:27 +0000 (13:18 +0100)]
newvector should be a bool
Alan T. DeKok [Tue, 24 Jun 2014 12:54:48 +0000 (08:54 -0400)]
Ensure packet is parented correctly
Arran Cudbard-Bell [Tue, 24 Jun 2014 11:57:12 +0000 (12:57 +0100)]
Print which packet in the request failed validation
Arran Cudbard-Bell [Tue, 24 Jun 2014 10:11:55 +0000 (11:11 +0100)]
Minor connection API fixes
Arran Cudbard-Bell [Tue, 24 Jun 2014 09:15:03 +0000 (10:15 +0100)]
Print out TAG_ANY attributes correctly
When attributes are inserted into the lists they should have their tag set to TAG_NONE if their tag was previously TAG_ANY
Arran Cudbard-Bell [Mon, 23 Jun 2014 21:14:06 +0000 (22:14 +0100)]
Simpler VERIFY_REQUEST macro in process.c
Alan T. DeKok [Mon, 23 Jun 2014 21:02:29 +0000 (17:02 -0400)]
Thread-safe VERIFY_REQUEST
Arran Cudbard-Bell [Mon, 23 Jun 2014 20:31:17 +0000 (21:31 +0100)]
Increase cbuff size
Alan T. DeKok [Mon, 23 Jun 2014 20:11:44 +0000 (16:11 -0400)]
Allow for dynamically expanded PSK.
When a client connects to a server, the server can now dynamically
determine which PSK to use for that client.
Arran Cudbard-Bell [Mon, 23 Jun 2014 19:34:53 +0000 (20:34 +0100)]
Typo
Arran Cudbard-Bell [Mon, 23 Jun 2014 18:21:26 +0000 (19:21 +0100)]
Multiple fixes for circular buffer based backtraces
Arran Cudbard-Bell [Mon, 23 Jun 2014 18:21:12 +0000 (19:21 +0100)]
Formatting
Arran Cudbard-Bell [Mon, 23 Jun 2014 15:50:42 +0000 (16:50 +0100)]
Other obviously bad, allocations
Arran Cudbard-Bell [Mon, 23 Jun 2014 15:17:42 +0000 (16:17 +0100)]
Remove fr_connection_delete
Arran Cudbard-Bell [Mon, 23 Jun 2014 13:54:13 +0000 (14:54 +0100)]
Pass a threadsafe ctx into fr_connection_pool create callback
Create callbacks should allocate any connection specific data in this specially created thread safe ctx.
For freeing connection specific data, a talloc destructor should be used. The delete callback will be
removed shortly.
Arran Cudbard-Bell [Mon, 23 Jun 2014 12:27:30 +0000 (13:27 +0100)]
Rename mod_socket_create/delete to mod_conn_create/delete
Arran Cudbard-Bell [Mon, 23 Jun 2014 12:01:01 +0000 (13:01 +0100)]
Minor formatting in rlm_couchbase
Arran Cudbard-Bell [Sat, 21 Jun 2014 15:26:01 +0000 (17:26 +0200)]
Same fix for eap session and handler trees
Arran Cudbard-Bell [Sat, 21 Jun 2014 15:21:44 +0000 (17:21 +0200)]
Don't parent the rlm_cache rbtree directly from inst
Arran Cudbard-Bell [Fri, 20 Jun 2014 21:18:51 +0000 (22:18 +0100)]
Alloc connections pools in the NULL ctx
Arran Cudbard-Bell [Fri, 20 Jun 2014 19:17:05 +0000 (20:17 +0100)]
Rbtree shouldn't be allocated from inst
Arran Cudbard-Bell [Fri, 20 Jun 2014 19:12:55 +0000 (20:12 +0100)]
Alloc handlers from the NULL context
Arran Cudbard-Bell [Fri, 20 Jun 2014 19:07:15 +0000 (20:07 +0100)]
Disable NULL context tracking
Arran Cudbard-Bell [Fri, 20 Jun 2014 18:54:20 +0000 (19:54 +0100)]
Don't use prefix variable (used by AC)
Arran Cudbard-Bell [Fri, 20 Jun 2014 18:33:38 +0000 (19:33 +0100)]
Add support for searching in 'prefix' dirs for headers
Arran Cudbard-Bell [Fri, 20 Jun 2014 16:50:40 +0000 (12:50 -0400)]
Merge pull request #696 from leprechau/v3.0.x
multiple fixes and minor additions
Aaron Hurt [Fri, 20 Jun 2014 16:24:14 +0000 (11:24 -0500)]
multiple fixes and minor additions
* fixed json-c header inclusion for new upstream install location
* fixed server string building
* added json-c library to version checking
Arran Cudbard-Bell [Fri, 20 Jun 2014 15:53:44 +0000 (16:53 +0100)]
Cleanup IKEv2 code so it builds again
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:33:15 +0000 (12:33 +0100)]
Similar fix for EAP-MSCHAPV2
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:32:21 +0000 (12:32 +0100)]
Similar fix for EAP-PWD
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:32:03 +0000 (12:32 +0100)]
Similar fix for EAP-TNC
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:28:31 +0000 (12:28 +0100)]
Similar fix for EAP-TTLS
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:23:32 +0000 (12:23 +0100)]
PEAP tunnel data should be parented by the tls_session not the handler
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:28:31 +0000 (12:28 +0100)]
Same fix for EAP-TTLS
Arran Cudbard-Bell [Fri, 20 Jun 2014 11:23:32 +0000 (12:23 +0100)]
PEAP tunnel data should be parented by the tls_session not the handler
There's no need for explicit free functions
Arran Cudbard-Bell [Fri, 20 Jun 2014 09:14:45 +0000 (10:14 +0100)]
Fixup talloc destructors
Arran Cudbard-Bell [Fri, 20 Jun 2014 09:03:04 +0000 (10:03 +0100)]
Name destructors correctly, remove unused/useless request_opaque_free destructor
Arran Cudbard-Bell [Fri, 20 Jun 2014 08:17:39 +0000 (09:17 +0100)]
Add function for allocing fr_tls_server_conf_t
Arran Cudbard-Bell [Fri, 20 Jun 2014 08:17:26 +0000 (09:17 +0100)]
Formatting
Arran Cudbard-Bell [Fri, 20 Jun 2014 08:17:15 +0000 (09:17 +0100)]
Session serialiser's buffer should not be talloced (alloced and freed in the same call)
Arran Cudbard-Bell [Fri, 20 Jun 2014 08:15:16 +0000 (09:15 +0100)]
Freeing the handler must be synchronised too
Arran Cudbard-Bell [Fri, 20 Jun 2014 07:41:41 +0000 (08:41 +0100)]
Formatting
Arran Cudbard-Bell [Fri, 20 Jun 2014 06:14:51 +0000 (07:14 +0100)]
Should write config value to server_raw first in rlm_couchbase
Arran Cudbard-Bell [Fri, 20 Jun 2014 06:11:39 +0000 (07:11 +0100)]
Update ChangeLog
Arran Cudbard-Bell [Fri, 20 Jun 2014 06:03:16 +0000 (07:03 +0100)]
Make client_cert bool everywhere
Alan T. DeKok [Fri, 20 Jun 2014 02:13:45 +0000 (22:13 -0400)]
Can't use "ok = 1" outside of a module call.
Only modules can have their return codes updated. Sections can't.
Arran Cudbard-Bell [Thu, 19 Jun 2014 18:24:02 +0000 (19:24 +0100)]
Allocate SSL session ctx memory under the handler to avoid thread safety issues
Arran Cudbard-Bell [Thu, 19 Jun 2014 15:44:51 +0000 (16:44 +0100)]
Should always set the pointer to NULL to avoid corner case on malloc failure
Arran Cudbard-Bell [Thu, 19 Jun 2014 12:02:01 +0000 (13:02 +0100)]
Fix invalid assert
Arran Cudbard-Bell [Thu, 19 Jun 2014 10:44:42 +0000 (11:44 +0100)]
Fix bug where when using a response filter, requests where the response failed the filter were still written to the capture file
Arran Cudbard-Bell [Thu, 19 Jun 2014 10:39:59 +0000 (11:39 +0100)]
Remove built radtest (accidentally unignored)
Herwin Weststrate [Thu, 19 Jun 2014 08:15:51 +0000 (10:15 +0200)]
Removed some obsolete parentheses in TTLS and PEAP modules
This makes the code a little bit cleaner, but doesn't change any functionality.
Herwin Weststrate [Wed, 18 Jun 2014 18:47:29 +0000 (20:47 +0200)]
Fixed the argument of a talloc_free call
Arran Cudbard-Bell [Wed, 18 Jun 2014 17:09:36 +0000 (18:09 +0100)]
Talloc don't export this macro
Arran Cudbard-Bell [Wed, 18 Jun 2014 16:59:55 +0000 (17:59 +0100)]
Only set M_PERTURB if TALLOC_FREE_FILL is unset
Arran Cudbard-Bell [Wed, 18 Jun 2014 13:40:26 +0000 (14:40 +0100)]
Doxygen
Arran Cudbard-Bell [Wed, 18 Jun 2014 13:29:50 +0000 (14:29 +0100)]
Error out on NULL pointers before doing talloc_get_type_abort in verify functions
Arran Cudbard-Bell [Wed, 18 Jun 2014 13:25:44 +0000 (14:25 +0100)]
Fix VALUE_PAIR parenting in rlm_rest when decoding JSON responses
Alan T. DeKok [Wed, 18 Jun 2014 13:09:43 +0000 (09:09 -0400)]
Free previous accept VPS. Closes #693
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:40:13 +0000 (12:40 +0100)]
Fix merge error
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:39:14 +0000 (12:39 +0100)]
Alloc from the passed context
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:35:23 +0000 (12:35 +0100)]
Parent from the packet, not head of the VP list
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:28:35 +0000 (12:28 +0100)]
Parent rbtrees correctly
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:27:52 +0000 (12:27 +0100)]
Only print Talloc chunk lineage if the ctx is not null
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:06:03 +0000 (12:06 +0100)]
Have a suspicion that enabling null context tracking causes talloc functions to SEGV if you pass NULL context pointers
Arran Cudbard-Bell [Wed, 18 Jun 2014 11:00:10 +0000 (12:00 +0100)]
Fix parenting issues in rlm_file
Arran Cudbard-Bell [Wed, 18 Jun 2014 10:35:59 +0000 (11:35 +0100)]
Fix/Enhance fr_log_talloc_report
Arran Cudbard-Bell [Wed, 18 Jun 2014 10:13:23 +0000 (11:13 +0100)]
Allow setting the filter code from the request
Arran Cudbard-Bell [Wed, 18 Jun 2014 07:49:32 +0000 (08:49 +0100)]
Typo
Arran Cudbard-Bell [Tue, 17 Jun 2014 23:20:48 +0000 (00:20 +0100)]
Update ChangeLog
Arran Cudbard-Bell [Tue, 17 Jun 2014 23:17:58 +0000 (00:17 +0100)]
typo
Arran Cudbard-Bell [Tue, 17 Jun 2014 23:17:21 +0000 (00:17 +0100)]
Update ChangeLog
Arran Cudbard-Bell [Tue, 17 Jun 2014 22:40:37 +0000 (23:40 +0100)]
Add pairdatacpy to fix value parenting issues
Arran Cudbard-Bell [Tue, 17 Jun 2014 22:23:12 +0000 (23:23 +0100)]
More tweaks for CONSISTENCY CHECK readability
Alan T. DeKok [Tue, 17 Jun 2014 19:37:09 +0000 (15:37 -0400)]
Better checks for DEBUG_PACKET
Arran Cudbard-Bell [Tue, 17 Jun 2014 19:04:16 +0000 (20:04 +0100)]
Typo
Arran Cudbard-Bell [Tue, 17 Jun 2014 19:00:33 +0000 (20:00 +0100)]
Probably want to free the VPs we remove from the control list, oops.
Arran Cudbard-Bell [Tue, 17 Jun 2014 18:55:24 +0000 (19:55 +0100)]
Make CONSISTENCY CHECK messages clearer, add checks for string/octet buffer parenting
Herwin Weststrate [Tue, 17 Jun 2014 15:40:07 +0000 (17:40 +0200)]
Fixed permit_only_eap policy