try harder to handle names better. handle missing acceptor and initator creds better (ie dont propose/accept mech that there are no credentials for) split NegTokenInit and NegTokenResp in acceptor

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19397 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-18 12:59:50 +00:00
parent 471a5b53bb
commit 62270350bc
5 changed files with 666 additions and 192 deletions

View File

@@ -67,6 +67,7 @@
#include <gssapi_mech.h>
#include "spnego_asn1.h"
#include "mech/utils.h"
#include <der.h>
#include <roken.h>
@@ -92,8 +93,20 @@ typedef struct {
unsigned int verified_mic : 1;
unsigned int maybe_open : 1;
HEIMDAL_MUTEX ctx_id_mutex;
gss_name_t target_name;
u_char oidbuf[17];
size_t oidlen;
} *gssspnego_ctx;
typedef struct {
gss_OID_desc type;
gss_buffer_desc value;
gss_name_t mech;
} *spnego_name;
#include <spnego/spnego-private.h>
#endif /* SPNEGO_LOCL_H */