mit-samba: Remove unused mit_samba_get_pac_data()
authorAndreas Schneider <asn@samba.org>
Thu, 26 Jan 2017 16:04:19 +0000 (17:04 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 29 Apr 2017 21:31:11 +0000 (23:31 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/kdc/mit_samba.c
source4/kdc/mit_samba.h

index 275a507..82a6dfd 100644 (file)
@@ -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,
index 5be7795..37e7d8d 100644 (file)
@@ -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,