blob: 1054caec694a19154ab019e61caafdfc6713268e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "pal_x509_root.h"
#include <assert.h>
const char* CryptoNative_GetX509RootStorePath()
{
const char* dir = getenv(X509_get_default_cert_dir_env());
if (!dir)
{
dir = X509_get_default_cert_dir();
}
return dir;
}
const char* CryptoNative_GetX509RootStoreFile()
{
const char* file = getenv(X509_get_default_cert_file_env());
if (!file)
{
file = X509_get_default_cert_file();
}
return file;
}
|