auth/credentials: also do a shallow copy of the krb5_ccache.
[samba.git] / auth / credentials / credentials.c
index 3b7d42a29a5a0b525b687a11c71a196f96c86855..bfa397cc92d7a58ea44213f9d222944a04aac14b 100644 (file)
@@ -129,21 +129,6 @@ _PUBLIC_ void *_cli_credentials_callback_data(struct cli_credentials *cred)
        return cred->priv_data;
 }
 
-_PUBLIC_ struct cli_credentials *cli_credentials_shallow_copy(TALLOC_CTX *mem_ctx,
-                                               struct cli_credentials *src)
-{
-       struct cli_credentials *dst;
-
-       dst = talloc(mem_ctx, struct cli_credentials);
-       if (dst == NULL) {
-               return NULL;
-       }
-
-       *dst = *src;
-
-       return dst;
-}
-
 /**
  * Create a new anonymous credential
  * @param mem_ctx TALLOC_CTX parent for credentials structure