@@ -398,6 +398,24 @@ internal static extern int git_cred_userpass_plaintext_new(
398398 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string username ,
399399 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string password ) ;
400400
401+ [ DllImport ( libgit2 ) ]
402+ internal static extern int git_cred_ssh_key_new (
403+ out IntPtr cred ,
404+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string username ,
405+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string publickey ,
406+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string privatekey ,
407+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string passphrase ) ;
408+
409+ [ DllImport ( libgit2 ) ]
410+ internal static extern int git_cred_username_new (
411+ out IntPtr cred ,
412+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string username ) ;
413+
414+ [ DllImport ( libgit2 ) ]
415+ internal static extern int git_cred_ssh_key_from_agent (
416+ out IntPtr cred ,
417+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string username ) ;
418+
401419 [ DllImport ( libgit2 ) ]
402420 internal static extern int git_describe_commit (
403421 out DescribeResultSafeHandle describe ,
0 commit comments