summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-01-26 17:04:19 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-04-29 23:31:11 +0200
commita72eecd5bf4f001b22cf46ee70752ca3be37245d (patch)
tree1d9f4439f6d509e8b7926d0b1525b22a2fd60c39 /source4
parentbff4311ec4c4a8bcc9cfbee7cbf7cf6138f0c306 (diff)
downloadsamba-a72eecd5bf4f001b22cf46ee70752ca3be37245d.tar.gz
mit-samba: Remove unused mit_samba_get_pac_data()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/kdc/mit_samba.c35
-rw-r--r--source4/kdc/mit_samba.h4
2 files changed, 0 insertions, 39 deletions
diff --git a/source4/kdc/mit_samba.c b/source4/kdc/mit_samba.c
index 275a507e86e..82a6dfddbe1 100644
--- a/source4/kdc/mit_samba.c
+++ b/source4/kdc/mit_samba.c
@@ -331,41 +331,6 @@ int mit_samba_get_nextkey(struct mit_samba_context *ctx,
return ret;
}
-int mit_samba_get_pac_data(struct mit_samba_context *ctx,
- krb5_db_entry *client,
- DATA_BLOB *data)
-{
- TALLOC_CTX *tmp_ctx;
- DATA_BLOB *pac_blob;
- NTSTATUS nt_status;
- struct samba_kdc_entry *skdc_entry;
-
- skdc_entry = talloc_get_type_abort(client->e_data,
- struct samba_kdc_entry);
-
- tmp_ctx = talloc_named(ctx, 0, "mit_samba_get_pac_data context");
- if (!tmp_ctx) {
- return ENOMEM;
- }
-
- nt_status = samba_kdc_get_pac_blob(tmp_ctx, skdc_entry, &pac_blob);
- if (!NT_STATUS_IS_OK(nt_status)) {
- talloc_free(tmp_ctx);
- return EINVAL;
- }
-
- data->data = (uint8_t *)malloc(pac_blob->length);
- if (!data->data) {
- talloc_free(tmp_ctx);
- return ENOMEM;
- }
- memcpy(data->data, pac_blob->data, pac_blob->length);
- data->length = pac_blob->length;
-
- talloc_free(tmp_ctx);
- return 0;
-}
-
int mit_samba_get_pac(struct mit_samba_context *smb_ctx,
krb5_context context,
krb5_db_entry *client,
diff --git a/source4/kdc/mit_samba.h b/source4/kdc/mit_samba.h
index 5be77958dc4..37e7d8d5126 100644
--- a/source4/kdc/mit_samba.h
+++ b/source4/kdc/mit_samba.h
@@ -47,10 +47,6 @@ int mit_samba_get_firstkey(struct mit_samba_context *ctx,
int mit_samba_get_nextkey(struct mit_samba_context *ctx,
krb5_db_entry **_kentry);
-int mit_samba_get_pac_data(struct mit_samba_context *ctx,
- krb5_db_entry *client,
- DATA_BLOB *data);
-
int mit_samba_get_pac(struct mit_samba_context *smb_ctx,
krb5_context context,
krb5_db_entry *client,