summaryrefslogtreecommitdiff
path: root/source3/libsmb
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 /source3/libsmb
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>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clispnego.c44
1 files changed, 0 insertions, 44 deletions
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