summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-11 12:30:22 +1100
committerStefan Metzmacher <metze@samba.org>2012-04-03 17:47:32 +0200
commit4e3e323080b4b934870ff05630444f4e5ed26d98 (patch)
tree547cff1c8a533a6771fb57232bc9eb5db3a8d744
parentc7d29e8cda3f048f286c51939c0b3c8defa02c99 (diff)
downloadsamba-4e3e323080b4b934870ff05630444f4e5ed26d98.tar.gz
samba-4e3e323080b4b934870ff05630444f4e5ed26d98.tar.bz2
samba-4e3e323080b4b934870ff05630444f4e5ed26d98.zip
s3-libsmb: Remove unused spnego_parse_krb5_wrap()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/libsmb/clispnego.c44
2 files changed, 0 insertions, 45 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 779745a13e..e08c175eb6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -858,7 +858,6 @@ bool spnego_parse_negTokenInit(TALLOC_CTX *ctx,
char **principal,
DATA_BLOB *secblob);
DATA_BLOB spnego_gen_krb5_wrap(TALLOC_CTX *ctx, const DATA_BLOB ticket, const uint8 tok_id[2]);
-bool spnego_parse_krb5_wrap(TALLOC_CTX *ctx, DATA_BLOB blob, DATA_BLOB *ticket, uint8 tok_id[2]);
int spnego_gen_krb5_negTokenInit(TALLOC_CTX *ctx,
const char *principal, int time_offset,
DATA_BLOB *targ,
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index bf3fac658d..81f9dfb20c 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -247,50 +247,6 @@ DATA_BLOB spnego_gen_krb5_wrap(TALLOC_CTX *ctx, const DATA_BLOB ticket, const ui
return ret;
}
-/*
- parse a krb5 GSS-API wrapper packet giving a ticket
-*/
-bool spnego_parse_krb5_wrap(TALLOC_CTX *ctx, DATA_BLOB blob, DATA_BLOB *ticket, uint8 tok_id[2])
-{
- bool ret;
- ASN1_DATA *data;
- int data_remaining;
- *ticket = data_blob_null;
-
- data = asn1_init(talloc_tos());
- if (data == NULL) {
- return false;
- }
-
- asn1_load(data, blob);
- asn1_start_tag(data, ASN1_APPLICATION(0));
- asn1_check_OID(data, OID_KERBEROS5);
-
- data_remaining = asn1_tag_remaining(data);
-
- if (data_remaining < 3) {
- data->has_error = True;
- } else {
- asn1_read(data, tok_id, 2);
- data_remaining -= 2;
- *ticket = data_blob_talloc(ctx, NULL, data_remaining);
- asn1_read(data, ticket->data, ticket->length);
- }
-
- asn1_end_tag(data);
-
- ret = !data->has_error;
-
- if (data->has_error) {
- data_blob_free(ticket);
- }
-
- asn1_free(data);
-
- return ret;
-}
-
-
/*
generate a SPNEGO krb5 negTokenInit packet, ready for a EXTENDED_SECURITY
kerberos session setup