diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-12 18:37:06 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-04-03 17:47:32 +0200 |
commit | 8c40253cc1a7e953bfc972ad06863d31e5087907 (patch) | |
tree | 1079a95d4cb8a037cb74694363ee91409d681f6d /source3 | |
parent | 296f7705f6c551b9240d9b3e2f30dea730978832 (diff) | |
download | samba-8c40253cc1a7e953bfc972ad06863d31e5087907.tar.gz samba-8c40253cc1a7e953bfc972ad06863d31e5087907.tar.bz2 samba-8c40253cc1a7e953bfc972ad06863d31e5087907.zip |
s3-krb5: remove unused unwrap_pac()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/krb5_protos.h | 1 | ||||
-rw-r--r-- | source3/libsmb/clikrb5.c | 48 |
2 files changed, 0 insertions, 49 deletions
diff --git a/source3/include/krb5_protos.h b/source3/include/krb5_protos.h index 392fafd08c..8ea12705c2 100644 --- a/source3/include/krb5_protos.h +++ b/source3/include/krb5_protos.h @@ -138,6 +138,5 @@ int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx, bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx, DATA_BLOB *edata, DATA_BLOB *edata_out); -bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_pac_data); #endif /* _INCLUDE_KRB5_PROTOS_H_ */ diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index d83b1b685b..6d763b23be 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -230,48 +230,6 @@ bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx, } -bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_pac_data) -{ - DATA_BLOB pac_contents; - ASN1_DATA *data; - int data_type; - - if (!auth_data->length) { - return False; - } - - data = asn1_init(mem_ctx); - if (data == NULL) { - return false; - } - - asn1_load(data, *auth_data); - asn1_start_tag(data, ASN1_SEQUENCE(0)); - asn1_start_tag(data, ASN1_SEQUENCE(0)); - asn1_start_tag(data, ASN1_CONTEXT(0)); - asn1_read_Integer(data, &data_type); - - if (data_type != KRB5_AUTHDATA_WIN2K_PAC ) { - DEBUG(10,("authorization data is not a Windows PAC (type: %d)\n", data_type)); - asn1_free(data); - return False; - } - - asn1_end_tag(data); - asn1_start_tag(data, ASN1_CONTEXT(1)); - asn1_read_OctetString(data, talloc_tos(), &pac_contents); - asn1_end_tag(data); - asn1_end_tag(data); - asn1_end_tag(data); - asn1_free(data); - - *unwrapped_pac_data = data_blob_talloc(mem_ctx, pac_contents.data, pac_contents.length); - - data_blob_free(&pac_contents); - - return True; -} - static bool ads_cleanup_expired_creds(krb5_context context, krb5_ccache ccache, krb5_creds *credsp) @@ -1602,10 +1560,4 @@ char *smb_krb5_principal_get_realm(krb5_context context, return 1; } -bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_pac_data) -{ - DEBUG(0,("NO KERBEROS SUPPORT\n")); - return false; -} - #endif /* HAVE_KRB5 */ |