diff options
Diffstat (limited to 'src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs')
-rw-r--r-- | src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs b/src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs index 7f8efb0..7c2c07b 100644 --- a/src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs +++ b/src/main.lib/Plugins/StorePlugins/CertificateStore/FindPrivateKey.cs @@ -16,7 +16,7 @@ namespace PKISharp.WACS.Plugins.StorePlugins public FindPrivateKey(ILogService log) => _log = log; - internal FileInfo Find(X509Certificate2 cert) + internal FileInfo? Find(X509Certificate2 cert) { string file; string dir; @@ -47,7 +47,7 @@ namespace PKISharp.WACS.Plugins.StorePlugins var freeProvider = false; // Do we need to free the CSP ? uint acquireFlags = 0; var _keyNumber = 0; - string keyFileName = null; + string? keyFileName = null; // Determine whether there is private key information available for this certificate in the key store if (CryptAcquireCertificatePrivateKey(cert.Handle, acquireFlags, IntPtr.Zero, ref hProvider, ref _keyNumber, ref freeProvider)) |