Use `SafePasswordHandle` in the internal certificate APIs. (#9651)
[mono-project.git] / mcs / class / corlib / corefx / Mono.SafePasswordHandle.Unix.cs
blobb1e02633196e8e0be300f5fe04c4ba5eba876846
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System;
6 using System.Runtime.InteropServices;
7 using System.Security;
9 namespace Microsoft.Win32.SafeHandles
11 partial class SafePasswordHandle
13 internal string Mono_DangerousGetString ()
15 return Marshal.PtrToStringAnsi (DangerousGetHandle ());