X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=gssapiP_eap.h;h=81fcf3f686b95a3c574df240eb74345938e8190b;hb=refs%2Fheads%2Fvm-integration;hp=65d01bf72fc7368a4f2c1bb1430025070d0a3dbe;hpb=7db57acddeddad5f96d16288b3776baf6c10c0b1;p=mech_eap.orig diff --git a/gssapiP_eap.h b/gssapiP_eap.h index 65d01bf..81fcf3f 100644 --- a/gssapiP_eap.h +++ b/gssapiP_eap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, JANET(UK) + * Copyright (c) 2011, JANET(UK) * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -44,13 +44,16 @@ #include #include #include +#include #include #include /* GSS headers */ #include #include -#ifndef HAVE_HEIMDAL_VERSION +#ifdef HAVE_HEIMDAL_VERSION +typedef struct gss_any *gss_any_t; +#else #include #endif #include "gssapi_eap.h" @@ -63,6 +66,7 @@ #include #include #include +#include #include /* FreeRADIUS headers */ @@ -103,6 +107,7 @@ struct gss_name_struct { GSSEAP_MUTEX mutex; /* mutex protects attrCtx */ OM_uint32 flags; + gss_OID mechanismUsed; /* this is immutable */ krb5_principal krbPrincipal; /* this is immutable */ struct gss_eap_attr_ctx *attrCtx; }; @@ -139,18 +144,6 @@ struct gss_cred_id_struct #define CTX_IS_INITIATOR(ctx) (((ctx)->flags & CTX_FLAG_INITIATOR) != 0) -enum gss_eap_state { - GSSEAP_STATE_IDENTITY = 0, /* identify peer */ - GSSEAP_STATE_AUTHENTICATE, /* exchange EAP messages */ - GSSEAP_STATE_EXTENSIONS_REQ, /* initiator extensions */ - GSSEAP_STATE_EXTENSIONS_RESP, /* acceptor extensions */ - GSSEAP_STATE_ESTABLISHED, /* context established */ - GSSEAP_STATE_ERROR, /* context error */ -#ifdef GSSEAP_ENABLE_REAUTH - GSSEAP_STATE_KRB_REAUTH /* fast reauthentication */ -#endif -}; - #define CTX_IS_ESTABLISHED(ctx) ((ctx)->state == GSSEAP_STATE_ESTABLISHED) /* Initiator context flags */