From c927c818feb6881a8c7b9959854d73c65e08f49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Wed, 26 Oct 2011 13:44:49 +0200 Subject: [PATCH] s3-netapi: remove pointless use_memory_krb5_ccache. This breaks the ABI. Guenther --- source3/lib/netapi/netapi.c | 14 -------------- source3/lib/netapi/netapi.h | 6 ------ 2 files changed, 0 insertions(+), 20 deletions(-) diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 34a88a9..53d45fd 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -246,20 +246,6 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx) /**************************************************************** ****************************************************************/ -NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx) -{ - ctx->krb5_cc_env = talloc_strdup(ctx, "MEMORY:libnetapi"); - if (!ctx->krb5_cc_env) { - return W_ERROR_V(WERR_NOMEM); - } - setenv(KRB5_ENV_CCNAME, ctx->krb5_cc_env, 1); - ctx->use_memory_krb5_ccache = 1; - return NET_API_STATUS_SUCCESS; -} - -/**************************************************************** -****************************************************************/ - NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx) { ctx->use_ccache = true; diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index 069d526..8976ebd 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -1319,7 +1319,6 @@ struct libnetapi_ctx { char *krb5_cc_env; int use_kerberos; int use_ccache; - int use_memory_krb5_ccache; int disable_policy_handle_cache; void *private_data; @@ -1377,11 +1376,6 @@ NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx); /**************************************************************** ****************************************************************/ -NET_API_STATUS libnetapi_set_use_memory_krb5_ccache(struct libnetapi_ctx *ctx); - -/**************************************************************** -****************************************************************/ - const char *libnetapi_errstr(NET_API_STATUS status); /**************************************************************** -- 1.7.6.4