diff options
author | Günther Deschner <gd@samba.org> | 2014-05-08 17:06:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-07-21 19:04:14 +0200 |
commit | 38e5d8d4aa5662c2f19da9d60da879b4b88d5c67 (patch) | |
tree | 406a6f6933ec9f245d6cc31bf2b4ef7d3a446e6a | |
parent | 893963cf7844e455a5b7e9bf5c4802fc2fd25237 (diff) | |
download | samba-38e5d8d4aa5662c2f19da9d60da879b4b88d5c67.tar.gz |
s4-kdc/pac_glue: remove old samba_kdc_build_edata_reply().
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r-- | source4/kdc/pac-glue.c | 34 | ||||
-rw-r--r-- | source4/kdc/pac-glue.h | 2 |
2 files changed, 0 insertions, 36 deletions
diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index e6794a768c2..995e31885c5 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -378,40 +378,6 @@ NTSTATUS samba_kdc_update_delegation_info_blob(TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } -/* this function allocates 'data' using malloc. - * The caller is responsible for freeing it */ -void samba_kdc_build_edata_reply(NTSTATUS nt_status, DATA_BLOB *e_data) -{ - PA_DATA pa; - unsigned char *buf; - size_t len; - krb5_error_code ret = 0; - - if (!e_data) - return; - - pa.padata_type = KRB5_PADATA_PW_SALT; - pa.padata_value.length = 12; - pa.padata_value.data = malloc(pa.padata_value.length); - if (!pa.padata_value.data) { - e_data->length = 0; - e_data->data = NULL; - return; - } - - SIVAL(pa.padata_value.data, 0, NT_STATUS_V(nt_status)); - SIVAL(pa.padata_value.data, 4, 0); - SIVAL(pa.padata_value.data, 8, 1); - - ASN1_MALLOC_ENCODE(PA_DATA, buf, len, &pa, &len, ret); - free(pa.padata_value.data); - - e_data->data = buf; - e_data->length = len; - - return; -} - /* function to map policy errors */ krb5_error_code samba_kdc_map_policy_err(NTSTATUS nt_status) { diff --git a/source4/kdc/pac-glue.h b/source4/kdc/pac-glue.h index 22b50dc69bb..a18d1fea6fd 100644 --- a/source4/kdc/pac-glue.h +++ b/source4/kdc/pac-glue.h @@ -49,8 +49,6 @@ NTSTATUS samba_kdc_update_delegation_info_blob(TALLOC_CTX *mem_ctx, const krb5_principal proxy_principal, DATA_BLOB *pac_blob); -void samba_kdc_build_edata_reply(NTSTATUS nt_status, DATA_BLOB *e_data); - krb5_error_code samba_kdc_map_policy_err(NTSTATUS nt_status); NTSTATUS samba_kdc_check_client_access(struct samba_kdc_entry *kdc_entry, |