using System;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
///
/// A credential object that will provide the "default" credentials
/// (logged-in user information) via NTLM or SPNEGO authentication.
///
public sealed class DefaultCredentials : Credentials
{
///
/// Callback to acquire a credential object.
///
/// The newly created credential object.
/// 0 for success, < 0 to indicate an error, > 0 to indicate no credential was acquired.
protected internal override int GitCredentialHandler(out IntPtr cred)
{
return NativeMethods.git_cred_default_new(out cred);
}
}
}