Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetPropertyAsString()

static unsafe string Internal.Cryptography.Pal.X509Pal.GetPropertyAsString ( Microsoft::Win32::SafeHandles::SafeBCryptKeyHandle cryptHandle,
string propertyName )
inlinestaticprivate

Definition at line 431 of file X509Pal.cs.

432 {
433 byte[] property = GetProperty(cryptHandle, propertyName);
434 if (property == null || property.Length == 0)
435 {
436 return null;
437 }
438 fixed (byte* ptr = &property[0])
439 {
440 return Marshal.PtrToStringUni((IntPtr)ptr);
441 }
442 }
static unsafe byte[] GetProperty(Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle cryptHandle, string propertyName)
Definition X509Pal.cs:444
static unsafe? string PtrToStringUni(IntPtr ptr)
Definition Marshal.cs:652

References Internal.Cryptography.Pal.X509Pal.GetProperty(), and System.Runtime.InteropServices.Marshal.PtrToStringUni().

Referenced by Internal.Cryptography.Pal.X509Pal.GetCurveName().