summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-29 09:11:17 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-08-31 20:59:14 +0200
commit167c1ce3312bd94def0aefb2955ee6b6d67e9827 (patch)
treeea64209cffd3d8680ef188c8ba7e06b1222339be
parenta3852bc0b96aa440d7095f50715ea10b5d4a54cc (diff)
downloadsamba-167c1ce3312bd94def0aefb2955ee6b6d67e9827.tar.gz
krb5_wrap: Remove unused handle_krberror_packet()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--lib/krb5_wrap/krb5_samba.c53
-rw-r--r--lib/krb5_wrap/krb5_samba.h3
2 files changed, 0 insertions, 56 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index 8e1c7d02e15..1aaf33a7f87 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -896,59 +896,6 @@ krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr
return ret;
}
- krb5_error_code handle_krberror_packet(krb5_context context,
- krb5_data *packet)
-{
- krb5_error_code ret;
- bool got_error_code = false;
-
- DEBUG(10,("handle_krberror_packet: got error packet\n"));
-
-#ifdef HAVE_E_DATA_POINTER_IN_KRB5_ERROR /* Heimdal */
- {
- krb5_error krberror;
-
- if ((ret = krb5_rd_error(context, packet, &krberror))) {
- DEBUG(10,("handle_krberror_packet: krb5_rd_error failed with: %s\n",
- error_message(ret)));
- return ret;
- }
-
- if (krberror.e_data == NULL || krberror.e_data->data == NULL) {
- ret = (krb5_error_code) krberror.error_code;
- got_error_code = true;
- }
-
- krb5_free_error(context, &krberror);
- }
-#else /* MIT */
- {
- krb5_error *krberror;
-
- if ((ret = krb5_rd_error(context, packet, &krberror))) {
- DEBUG(10,("handle_krberror_packet: krb5_rd_error failed with: %s\n",
- error_message(ret)));
- return ret;
- }
-
- if (krberror->e_data.data == NULL) {
-#if defined(ERROR_TABLE_BASE_krb5)
- ret = ERROR_TABLE_BASE_krb5 + (krb5_error_code) krberror->error;
-#else
- ret = (krb5_error_code)krberror->error;
-#endif
- got_error_code = true;
- }
- krb5_free_error(context, krberror);
- }
-#endif
- if (got_error_code) {
- DEBUG(5,("handle_krberror_packet: got KERBERR from kpasswd: %s (%d)\n",
- error_message(ret), ret));
- }
- return ret;
-}
-
krb5_error_code smb_krb5_get_init_creds_opt_alloc(krb5_context context,
krb5_get_init_creds_opt **opt)
{
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index 687a9f15ae0..68a3c1d026f 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -197,9 +197,6 @@ krb5_error_code smb_krb5_free_addresses(krb5_context context, smb_krb5_addresses
NTSTATUS krb5_to_nt_status(krb5_error_code kerberos_error);
krb5_error_code nt_status_to_krb5(NTSTATUS nt_status);
-krb5_error_code handle_krberror_packet(krb5_context context,
- krb5_data *packet);
-
void smb_krb5_get_init_creds_opt_free(krb5_context context,
krb5_get_init_creds_opt *opt);
krb5_error_code smb_krb5_get_init_creds_opt_alloc(krb5_context context,