mech_eap.orig
13 years agoAdd -Werror to CFLAGS
Luke Howard [Tue, 15 Mar 2011 14:06:57 +0000 (01:06 +1100)]
Add -Werror to CFLAGS

13 years agosend GSS mutual auth flag from initiator to acceptor
Luke Howard [Tue, 15 Mar 2011 13:00:47 +0000 (00:00 +1100)]
send GSS mutual auth flag from initiator to acceptor

13 years agorefactor previous commit
Luke Howard [Tue, 15 Mar 2011 09:14:55 +0000 (20:14 +1100)]
refactor previous commit

13 years agoreturn mechanism used, if any, in gss_inquire_name
Luke Howard [Tue, 15 Mar 2011 09:12:25 +0000 (20:12 +1100)]
return mechanism used, if any, in gss_inquire_name

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 08:57:31 +0000 (19:57 +1100)]
Merge branch 'master' into tlv-mic

Conflicts:
mech_eap/util_name.c

13 years agocorrect buffer length check when importing name
Luke Howard [Tue, 15 Mar 2011 08:55:08 +0000 (19:55 +1100)]
correct buffer length check when importing name

13 years agoFix for OpenSSH interoperability
Luke Howard [Tue, 15 Mar 2011 08:48:40 +0000 (19:48 +1100)]
Fix for OpenSSH interoperability

OpenSSH requires the exported name token to include the actual OID
of the selected mechanism. We were using an OID that identified a
family of GSS EAP mechanisms. We now use the concrete OID where
possible.

13 years agopass glue context to defrostAttrContext
Luke Howard [Tue, 15 Mar 2011 08:25:49 +0000 (19:25 +1100)]
pass glue context to defrostAttrContext

13 years agoadd a testing path for setting initiator credentials
Luke Howard [Tue, 15 Mar 2011 07:56:27 +0000 (18:56 +1100)]
add a testing path for setting initiator credentials
requires GSSEAP_DEBUG to be defined, set environment variable
GSSEAP_CREDS to password

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 06:18:03 +0000 (17:18 +1100)]
Merge branch 'master' into tlv-mic

13 years agoDefine AC_GNU_SOURCE to avoid Linux compile warnings
Luke Howard [Tue, 15 Mar 2011 06:17:49 +0000 (17:17 +1100)]
Define AC_GNU_SOURCE to avoid Linux compile warnings

13 years agoplug leak in previous commit
Luke Howard [Tue, 15 Mar 2011 06:14:49 +0000 (17:14 +1100)]
plug leak in previous commit

13 years agoplug leak in previous commit
Luke Howard [Tue, 15 Mar 2011 06:14:49 +0000 (17:14 +1100)]
plug leak in previous commit

13 years agoEnsure credentials are initialized before calling initBegin()
Luke Howard [Tue, 15 Mar 2011 06:12:14 +0000 (17:12 +1100)]
Ensure credentials are initialized before calling initBegin()

13 years agoEnsure credentials are initialized before calling initBegin()
Luke Howard [Tue, 15 Mar 2011 06:12:14 +0000 (17:12 +1100)]
Ensure credentials are initialized before calling initBegin()

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 03:05:07 +0000 (14:05 +1100)]
Merge branch 'master' into tlv-mic

13 years agoinclude stdarg.h for vasprintf
Luke Howard [Tue, 15 Mar 2011 03:04:21 +0000 (14:04 +1100)]
include stdarg.h for vasprintf

13 years agofix unused parameter warning when building without reauth
Luke Howard [Tue, 15 Mar 2011 03:00:54 +0000 (14:00 +1100)]
fix unused parameter warning when building without reauth

13 years agofix unused parameter warning when building without reauth
Luke Howard [Tue, 15 Mar 2011 03:00:54 +0000 (14:00 +1100)]
fix unused parameter warning when building without reauth

13 years agoremove an extraneous GSSEAP_UNUSED
Luke Howard [Tue, 15 Mar 2011 02:19:34 +0000 (13:19 +1100)]
remove an extraneous GSSEAP_UNUSED

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 02:11:51 +0000 (13:11 +1100)]
Merge branch 'master' into tlv-mic

Conflicts:
mech_eap/accept_sec_context.c
mech_eap/init_sec_context.c
mech_eap/util_context.c

13 years agoDon't specify -g -O in Makefile.am, configure does it for us
Luke Howard [Tue, 15 Mar 2011 02:05:32 +0000 (13:05 +1100)]
Don't specify -g -O in Makefile.am, configure does it for us

13 years agoMerge branch 'tlv'
Luke Howard [Tue, 15 Mar 2011 02:00:26 +0000 (13:00 +1100)]
Merge branch 'tlv'

13 years agocleanup unused parameter warnings
Luke Howard [Tue, 15 Mar 2011 01:57:57 +0000 (12:57 +1100)]
cleanup unused parameter warnings

13 years agoMerge branch 'master' into tlv
Luke Howard [Tue, 15 Mar 2011 01:19:11 +0000 (12:19 +1100)]
Merge branch 'master' into tlv

Conflicts:
mech_eap/README
mech_eap/accept_sec_context.c

13 years agoremove -fno-strict-aliasing and -Wunused-parameter
Luke Howard [Tue, 15 Mar 2011 01:14:04 +0000 (12:14 +1100)]
remove -fno-strict-aliasing and -Wunused-parameter

13 years agoput some state machine plumbing in acceptor to allow us to use iakerb
Luke Howard [Tue, 15 Mar 2011 00:57:12 +0000 (11:57 +1100)]
put some state machine plumbing in acceptor to allow us to use iakerb

13 years agoadd some documentation
Luke Howard [Tue, 15 Mar 2011 00:27:36 +0000 (11:27 +1100)]
add some documentation

13 years agomore cleanups
Luke Howard [Mon, 14 Mar 2011 19:39:41 +0000 (06:39 +1100)]
more cleanups

13 years agocleanup previous commit
Luke Howard [Mon, 14 Mar 2011 19:37:00 +0000 (06:37 +1100)]
cleanup previous commit

13 years agominor refactoring
Luke Howard [Mon, 14 Mar 2011 19:35:15 +0000 (06:35 +1100)]
minor refactoring

13 years agocleanup
Luke Howard [Mon, 14 Mar 2011 14:06:35 +0000 (01:06 +1100)]
cleanup

13 years agos/ITOK_TYPE_xxx_EXTS/ITOK_TYPE_SUPPORTED_xxx_EXTS
Luke Howard [Mon, 14 Mar 2011 13:49:54 +0000 (00:49 +1100)]
s/ITOK_TYPE_xxx_EXTS/ITOK_TYPE_SUPPORTED_xxx_EXTS

13 years agouse Kerberos GSS chan bindings to handle initiator MIC in reauth case
Luke Howard [Mon, 14 Mar 2011 13:47:19 +0000 (00:47 +1100)]
use Kerberos GSS chan bindings to handle initiator MIC in reauth case

13 years agoAdd some extension feature negotiation
Luke Howard [Mon, 14 Mar 2011 11:03:19 +0000 (22:03 +1100)]
Add some extension feature negotiation

13 years agoRevert "Don't set GSS_C_MUTUAL_FLAG because we don't yet support mutual auth"
Luke Howard [Mon, 14 Mar 2011 09:40:46 +0000 (20:40 +1100)]
Revert "Don't set GSS_C_MUTUAL_FLAG because we don't yet support mutual auth"

This reverts commit 7c61880a39e0c3363aa7ec21760df6ba47466202.

13 years agoDon't set GSS_C_MUTUAL_FLAG because we don't yet support mutual auth
Luke Howard [Mon, 14 Mar 2011 09:39:43 +0000 (20:39 +1100)]
Don't set GSS_C_MUTUAL_FLAG because we don't yet support mutual auth

13 years agoremove redundant state machine attribute
Luke Howard [Mon, 14 Mar 2011 08:32:19 +0000 (19:32 +1100)]
remove redundant state machine attribute

13 years agoremove trailing whitespace
Luke Howard [Mon, 14 Mar 2011 08:20:43 +0000 (19:20 +1100)]
remove trailing whitespace

13 years agodo MIC round trip for fast reauth case
Luke Howard [Mon, 14 Mar 2011 07:31:58 +0000 (18:31 +1100)]
do MIC round trip for fast reauth case

13 years agoadd acceptor MIC
Luke Howard [Mon, 14 Mar 2011 06:17:49 +0000 (17:17 +1100)]
add acceptor MIC

13 years agocompute initiator MIC
Luke Howard [Mon, 14 Mar 2011 06:14:55 +0000 (17:14 +1100)]
compute initiator MIC

13 years agoadd get/verify conversation MIC APIs
Luke Howard [Mon, 14 Mar 2011 06:02:21 +0000 (17:02 +1100)]
add get/verify conversation MIC APIs

13 years agoimport/export conversation
Luke Howard [Mon, 14 Mar 2011 05:39:59 +0000 (16:39 +1100)]
import/export conversation

13 years agorecord EAP conversation in context
Luke Howard [Mon, 14 Mar 2011 05:27:39 +0000 (16:27 +1100)]
record EAP conversation in context

13 years agoadd MIC symbols
Luke Howard [Sun, 13 Mar 2011 22:56:39 +0000 (09:56 +1100)]
add MIC symbols

13 years agodon't leak RADIUS response packet
Luke Howard [Sun, 13 Mar 2011 22:46:16 +0000 (09:46 +1100)]
don't leak RADIUS response packet

13 years agoremove trailing space
Luke Howard [Sat, 12 Mar 2011 07:58:34 +0000 (18:58 +1100)]
remove trailing space

13 years agoremove trailing space
Luke Howard [Sat, 12 Mar 2011 07:58:34 +0000 (18:58 +1100)]
remove trailing space

13 years agoHEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
Luke Howard [Sat, 12 Mar 2011 03:50:46 +0000 (14:50 +1100)]
HEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
instead of $prefix/share/freeradius/dictionary on advice from
Alan DeKok

13 years agodon't free RADIUS context before packet
Luke Howard [Sat, 12 Mar 2011 07:46:13 +0000 (18:46 +1100)]
don't free RADIUS context before packet

13 years agodon't free RADIUS context before packet
Luke Howard [Sat, 12 Mar 2011 07:46:13 +0000 (18:46 +1100)]
don't free RADIUS context before packet

13 years agoDon't promote bindings unwrap failure to GSS_S_BAD_BINDINGS
Luke Howard [Sat, 12 Mar 2011 04:59:44 +0000 (15:59 +1100)]
Don't promote bindings unwrap failure to GSS_S_BAD_BINDINGS

13 years agoMerge branch 'master' into tlv
Luke Howard [Sat, 12 Mar 2011 04:19:25 +0000 (15:19 +1100)]
Merge branch 'master' into tlv

13 years agocleanup commit 87b8bd5ef53b7813f138949b6cd2a1712f14eef5
Luke Howard [Sat, 12 Mar 2011 04:18:50 +0000 (15:18 +1100)]
cleanup commit 87b8bd5ef53b7813f138949b6cd2a1712f14eef5

13 years agoHEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
Luke Howard [Sat, 12 Mar 2011 03:50:46 +0000 (14:50 +1100)]
HEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
instead of $prefix/share/freeradius/dictionary on advice from
Alan DeKok

13 years agoCleanup builds without reauth
Luke Howard [Sat, 12 Mar 2011 03:44:35 +0000 (14:44 +1100)]
Cleanup builds without reauth

13 years agoutil_radius: radius only permits 253 octets
Sam Hartman [Fri, 11 Mar 2011 19:53:22 +0000 (14:53 -0500)]
util_radius: radius only permits 253 octets

There is an off by one error because MAX_STR_LEN from freeradius has a pad byte.
Only store 253 bytes of AVP at a time.

13 years agoFix macro errors in tlv
Sam Hartman [Fri, 11 Mar 2011 02:35:49 +0000 (21:35 -0500)]
Fix macro errors in tlv

util.h: state cannot be a macro argument and a referenced structure member

init_sec_context.c: do not reference Kerberos context if reauth not enabled

13 years agofallback to paircreate() if dictionary lookup fails
Luke Howard [Thu, 10 Mar 2011 06:34:04 +0000 (17:34 +1100)]
fallback to paircreate() if dictionary lookup fails

13 years agoremove stuff about RADIUS attribute release, it's wrong
Luke Howard [Thu, 10 Mar 2011 06:23:59 +0000 (17:23 +1100)]
remove stuff about RADIUS attribute release, it's wrong

13 years agouse directional GSS token types
Luke Howard [Thu, 10 Mar 2011 05:01:02 +0000 (16:01 +1100)]
use directional GSS token types

13 years agomore notes in README
Luke Howard [Thu, 10 Mar 2011 02:07:46 +0000 (13:07 +1100)]
more notes in README

13 years agofuture-proof: allow multiple round trip Kerberos exchanges at acceptor
Luke Howard [Thu, 10 Mar 2011 01:36:36 +0000 (12:36 +1100)]
future-proof: allow multiple round trip Kerberos exchanges at acceptor

13 years agoremove SM_FLAG_RESTART
Luke Howard [Wed, 9 Mar 2011 15:46:02 +0000 (02:46 +1100)]
remove SM_FLAG_RESTART

13 years agoremove SM_FLAG_STOP_EVAL, unused
Luke Howard [Wed, 9 Mar 2011 14:32:25 +0000 (01:32 +1100)]
remove SM_FLAG_STOP_EVAL, unused

13 years agoformatting cleanup
Luke Howard [Wed, 9 Mar 2011 14:30:37 +0000 (01:30 +1100)]
formatting cleanup

13 years agoadd an extra assert
Luke Howard [Wed, 9 Mar 2011 14:30:09 +0000 (01:30 +1100)]
add an extra assert

13 years agoif reauth token marked critical, don't allow EAP fallback
Luke Howard [Wed, 9 Mar 2011 14:27:48 +0000 (01:27 +1100)]
if reauth token marked critical, don't allow EAP fallback

13 years agoupdate README
Luke Howard [Wed, 9 Mar 2011 14:24:32 +0000 (01:24 +1100)]
update README

13 years agoadd some more assertion checks
Luke Howard [Wed, 9 Mar 2011 14:22:09 +0000 (01:22 +1100)]
add some more assertion checks

13 years agodelegate output token criticality to handler
Luke Howard [Wed, 9 Mar 2011 14:12:25 +0000 (01:12 +1100)]
delegate output token criticality to handler

13 years agoif client fails reauth, allow it to retry EAP
Luke Howard [Wed, 9 Mar 2011 13:53:53 +0000 (00:53 +1100)]
if client fails reauth, allow it to retry EAP

13 years agodon't leak Kerberos context if reauth not supported
Luke Howard [Wed, 9 Mar 2011 13:53:44 +0000 (00:53 +1100)]
don't leak Kerberos context if reauth not supported

13 years agocleanup formatting
Luke Howard [Wed, 9 Mar 2011 13:52:28 +0000 (00:52 +1100)]
cleanup formatting

13 years agoremove __attribute__((__unused__)) for now until we have a portable solution
Luke Howard [Wed, 9 Mar 2011 13:43:25 +0000 (00:43 +1100)]
remove __attribute__((__unused__)) for now until we have a portable solution

13 years agoAlways request mutual on reauth to even out number of round trips
Luke Howard [Wed, 9 Mar 2011 13:39:47 +0000 (00:39 +1100)]
Always request mutual on reauth to even out number of round trips

13 years agoimplement preliminary acceptor name exchange
Luke Howard [Wed, 9 Mar 2011 05:34:55 +0000 (16:34 +1100)]
implement preliminary acceptor name exchange

13 years agoAllow for graceful restart if acceptor ignores reauth token
Luke Howard [Wed, 9 Mar 2011 04:31:48 +0000 (15:31 +1100)]
Allow for graceful restart if acceptor ignores reauth token

13 years agouse macros for state accessors
Luke Howard [Wed, 9 Mar 2011 02:46:49 +0000 (13:46 +1100)]
use macros for state accessors

13 years agoadd some comments
Luke Howard [Wed, 9 Mar 2011 00:53:19 +0000 (11:53 +1100)]
add some comments

13 years agoadd some explanations to tlv code
Luke Howard [Tue, 8 Mar 2011 13:52:15 +0000 (00:52 +1100)]
add some explanations to tlv code

13 years agocleanup
Luke Howard [Tue, 8 Mar 2011 13:32:43 +0000 (00:32 +1100)]
cleanup

13 years agoforce load of global dictionary in RADIUS attr provider initialisation
Luke Howard [Tue, 8 Mar 2011 13:29:40 +0000 (00:29 +1100)]
force load of global dictionary in RADIUS attr provider initialisation

13 years agocleanup
Luke Howard [Tue, 8 Mar 2011 13:17:24 +0000 (00:17 +1100)]
cleanup

13 years agocheck for non-NULL before calling pairbasicfree()
Luke Howard [Tue, 8 Mar 2011 13:17:14 +0000 (00:17 +1100)]
check for non-NULL before calling pairbasicfree()

13 years agoadd test vendor info acceptor
Luke Howard [Tue, 8 Mar 2011 13:13:12 +0000 (00:13 +1100)]
add test vendor info acceptor

13 years agodon't fail hard if reauth cred generation fails
Luke Howard [Tue, 8 Mar 2011 13:04:28 +0000 (00:04 +1100)]
don't fail hard if reauth cred generation fails

13 years agofix some error token nits
Luke Howard [Tue, 8 Mar 2011 12:53:13 +0000 (23:53 +1100)]
fix some error token nits

13 years agomore TLV cleanups
Luke Howard [Tue, 8 Mar 2011 12:36:11 +0000 (23:36 +1100)]
more TLV cleanups

13 years agofor state transitions through gssEapSmTransition
Luke Howard [Tue, 8 Mar 2011 07:11:46 +0000 (18:11 +1100)]
for state transitions through gssEapSmTransition

13 years agomore cleanup on TLV
Luke Howard [Tue, 8 Mar 2011 07:05:32 +0000 (18:05 +1100)]
more cleanup on TLV

13 years agocleanup TLV code
Luke Howard [Tue, 8 Mar 2011 07:02:55 +0000 (18:02 +1100)]
cleanup TLV code

13 years agocleanup, refactor TLV code
Luke Howard [Tue, 8 Mar 2011 06:41:24 +0000 (17:41 +1100)]
cleanup, refactor TLV code

13 years agoget GSS-EAP working again with TLV
Luke Howard [Tue, 8 Mar 2011 06:24:09 +0000 (17:24 +1100)]
get GSS-EAP working again with TLV

13 years agomake state transition explicit rather than side-effect of GSS status code
Luke Howard [Tue, 8 Mar 2011 02:50:46 +0000 (13:50 +1100)]
make state transition explicit rather than side-effect of GSS status code

13 years agoinitial TLV refactor
Luke Howard [Tue, 8 Mar 2011 02:32:56 +0000 (13:32 +1100)]
initial TLV refactor

13 years agoTry building with eap from source tree
Sam Hartman [Tue, 8 Mar 2011 02:35:46 +0000 (21:35 -0500)]
Try building with eap from source tree

13 years agomark *_err.c as built sources
Sam Hartman [Tue, 8 Mar 2011 02:08:46 +0000 (21:08 -0500)]
mark *_err.c as built sources

13 years agoLook for mech_eap dependencies in
Sam Hartman [Tue, 8 Mar 2011 01:46:45 +0000 (20:46 -0500)]
Look for mech_eap dependencies in