diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-03 00:52:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-18 16:23:22 +0100 |
commit | 60e1aa701c18a0871d94f74f565b9abaa41c0de9 (patch) | |
tree | d31e0aba4b50c3ddf8044166c0b23c5b5e24d0a0 /source3/utils/ntlm_auth.c | |
parent | cbd8231e342b1af8194e72fa3bd21fd91691cd1f (diff) | |
download | samba-60e1aa701c18a0871d94f74f565b9abaa41c0de9.tar.gz samba-60e1aa701c18a0871d94f74f565b9abaa41c0de9.tar.bz2 samba-60e1aa701c18a0871d94f74f565b9abaa41c0de9.zip |
s3-build: Rework object lists to allow gse gensec module
This also allows the spnego_parse_krb5_wrap() function to be shared.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils/ntlm_auth.c')
-rw-r--r-- | source3/utils/ntlm_auth.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 00c7d4dbba..ff9b60ed0f 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -1232,45 +1232,6 @@ static void offer_gss_spnego_mechs(void) { return; } -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; - - 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; -} - static void manage_gss_spnego_request(struct ntlm_auth_state *state, char *buf, int length) { |