File: src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslAvailable.cs
Web Access
Project: src\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj (System.Security.Cryptography)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
using System.Runtime.InteropServices;
 
internal static partial class Interop
{
    internal static partial class OpenSslNoInit
    {
        [LibraryImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_OpenSslAvailable")]
        private static partial int OpenSslAvailable();
 
        private static readonly Lazy<bool> s_openSslAvailable =
            new Lazy<bool>(() => OpenSslAvailable() != 0);
 
        internal static bool OpenSslIsAvailable => s_openSslAvailable.Value;
    }
}