]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth:creds: Add cli_credentials_get_out_ccache_name()
authorAndreas Schneider <asn@samba.org>
Fri, 4 Apr 2025 11:33:19 +0000 (13:33 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 5 Aug 2025 10:49:34 +0000 (10:49 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
auth/credentials/credentials.h
auth/credentials/credentials_krb5.c

index cae6a94b4507cbe649ffd61cdeb4b2390190dddb..9f9457264400222cc7a79d37845e88d76b770eba 100644 (file)
@@ -262,6 +262,7 @@ int cli_credentials_set_ccache(struct cli_credentials *cred,
                               const char *name,
                               enum credentials_obtained obtained,
                               const char **error_string);
+const char *cli_credentials_get_out_ccache_name(struct cli_credentials *cred);
 bool cli_credentials_parse_password_file(struct cli_credentials *credentials, const char *file, enum credentials_obtained obtained);
 bool cli_credentials_parse_password_fd(struct cli_credentials *credentials,
                                       int fd, enum credentials_obtained obtained);
index e5d16bebd3a0515b601d5d7a10b0531840a38841..4dc7e7be67e34ed30b6bf4946304f85ded30cec6 100644 (file)
@@ -280,6 +280,11 @@ static int cli_credentials_set_from_ccache(struct cli_credentials *cred,
        return 0;
 }
 
+_PUBLIC_ const char *cli_credentials_get_out_ccache_name(struct cli_credentials *cred)
+{
+       return cred->ccache_name;
+}
+
 _PUBLIC_ int cli_credentials_set_ccache(struct cli_credentials *cred,
                                        struct loadparm_context *lp_ctx,
                                        const char *name,