Skip to content

Commit 9abdff2

Browse files
committed
Add X509Certificates reference
1 parent 2557d8c commit 9abdff2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

LibGit2Sharp.Portable/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dependencies": {
66
"Microsoft.NETCore": "5.0.0",
77
"Microsoft.NETCore.Portable.Compatibility": "1.0.0",
8+
"System.Security.Cryptography.X509Certificates": "4.0.0-beta-23409",
89
"LibGit2Sharp.NativeBinaries": "[1.0.132]",
910
"Nerdbank.GitVersioning": "1.3.16"
1011
},

LibGit2Sharp.Shared/CertificateX509.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal unsafe IntPtr ToPointers(out IntPtr dataPtr)
3939
{
4040
cert_type = GitCertificateType.X509,
4141
data = (byte*) dataPtr.ToPointer(),
42-
len = (UIntPtr)certData.LongLength,
42+
len = (UIntPtr)certData.Length,
4343
};
4444

4545
var ptr = Marshal.AllocHGlobal(Marshal.SizeOf(gitCert));

0 commit comments

Comments
 (0)