From 8cba4a0c9639c48ec2433a98529bd8352e9d06c9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 19 Jul 2010 16:45:16 -0700 Subject: Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() and into negprot_spnego() where it belongs (it's not an SPNEGO operation). Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all the gen_negTokenXXX calls. Jeremy. --- source3/libsmb/clispnego.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/libsmb/clispnego.c') diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index 1f2081cb03..2cf276485e 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/libsmb/clispnego.c @@ -24,11 +24,10 @@ #include "smb_krb5.h" /* - generate a negTokenInit packet given a GUID, a list of supported + generate a negTokenInit packet given a list of supported OIDs (the mechanisms) and a principal name string */ -DATA_BLOB spnego_gen_negTokenInit(char guid[16], - const char *OIDs[], +DATA_BLOB spnego_gen_negTokenInit(const char *OIDs[], const char *principal) { int i; @@ -40,7 +39,6 @@ DATA_BLOB spnego_gen_negTokenInit(char guid[16], return data_blob_null; } - asn1_write(data, guid, 16); asn1_push_tag(data,ASN1_APPLICATION(0)); asn1_write_OID(data,OID_SPNEGO); asn1_push_tag(data,ASN1_CONTEXT(0)); -- cgit