From 2d46992337befd46c65df5e60a821bdf9f340b6e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 24 Oct 2008 04:38:31 +0200 Subject: Remove const so return value can be freed. --- source4/param/loadparm.c | 10 +++++----- source4/param/param.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 2808cb9f28..fb8afe456c 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2634,27 +2634,27 @@ void lp_smbcli_session_options(struct loadparm_context *lp_ctx, options->plaintext_auth = lp_client_plaintext_auth(lp_ctx); } -_PUBLIC_ const char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) +_PUBLIC_ char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_keyfile); } -_PUBLIC_ const char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) +_PUBLIC_ char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_certfile); } -_PUBLIC_ const char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) +_PUBLIC_ char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_cafile); } -_PUBLIC_ const char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) +_PUBLIC_ char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_crlfile); } -_PUBLIC_ const char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) +_PUBLIC_ char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { return private_path(mem_ctx, lp_ctx, lp_ctx->globals->tls_dhpfile); } diff --git a/source4/param/param.h b/source4/param/param.h index 9c20931186..6dec44b61c 100644 --- a/source4/param/param.h +++ b/source4/param/param.h @@ -78,11 +78,11 @@ int lp_kpasswd_port(struct loadparm_context *); int lp_web_port(struct loadparm_context *); const char *lp_swat_directory(struct loadparm_context *); bool lp_tls_enabled(struct loadparm_context *); -const char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); -const char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); -const char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *); -const char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); -const char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); +char *lp_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); +char *lp_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); +char *lp_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *); +char *lp_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); +char *lp_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *); const char *lp_share_backend(struct loadparm_context *); const char *lp_sam_url(struct loadparm_context *); const char *lp_idmap_url(struct loadparm_context *); -- cgit