projects
/
moonshot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libeap is now C++ clean, remove workaround
[moonshot.git]
/
mech_eap
/
gssapiP_eap.h
diff --git
a/mech_eap/gssapiP_eap.h
b/mech_eap/gssapiP_eap.h
index
a12adb4
..
0d1dd4d
100644
(file)
--- a/
mech_eap/gssapiP_eap.h
+++ b/
mech_eap/gssapiP_eap.h
@@
-51,7
+51,9
@@
/* GSS headers */
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
/* GSS headers */
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
-#ifndef HAVE_HEIMDAL_VERSION
+#ifdef HAVE_HEIMDAL_VERSION
+typedef struct gss_any *gss_any_t;
+#else
#include <gssapi/gssapi_ext.h>
#endif
#include "gssapi_eap.h"
#include <gssapi/gssapi_ext.h>
#endif
#include "gssapi_eap.h"
@@
-159,11
+161,9
@@
struct gss_cred_id_struct
struct gss_eap_initiator_ctx {
unsigned int idleWhile;
struct gss_eap_initiator_ctx {
unsigned int idleWhile;
-#ifndef __cplusplus
struct eap_peer_config eapPeerConfig;
struct eap_sm *eap;
struct wpabuf reqData;
struct eap_peer_config eapPeerConfig;
struct eap_sm *eap;
struct wpabuf reqData;
-#endif
};
struct gss_eap_acceptor_ctx {
};
struct gss_eap_acceptor_ctx {
@@
-200,8
+200,8
@@
struct gss_ctx_id_struct
struct gss_eap_acceptor_ctx acceptor;
#define acceptorCtx ctxU.acceptor
#ifdef GSSEAP_ENABLE_REAUTH
struct gss_eap_acceptor_ctx acceptor;
#define acceptorCtx ctxU.acceptor
#ifdef GSSEAP_ENABLE_REAUTH
- gss_ctx_id_t
kerberos
;
- #define
kerberosCtx ctxU.kerberos
+ gss_ctx_id_t
reauth
;
+ #define
reauthCtx ctxU.reauth
#endif
} ctxU;
gss_buffer_desc conversation;
#endif
} ctxU;
gss_buffer_desc conversation;
@@
-262,6
+262,13
@@
gssEapSaveStatusInfo(OM_uint32 minor, const char *format, ...);
#define IS_WIRE_ERROR(err) ((err) > GSSEAP_RESERVED && \
(err) <= GSSEAP_RADIUS_PROT_FAILURE)
#define IS_WIRE_ERROR(err) ((err) > GSSEAP_RESERVED && \
(err) <= GSSEAP_RADIUS_PROT_FAILURE)
+/* export_sec_context.c */
+OM_uint32
+gssEapExportSecContext(OM_uint32 *minor,
+ gss_ctx_id_t ctx,
+ gss_buffer_t token);
+
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif