From e28e013589ffec256e1d39b339b9eff9a2ea71c5 Mon Sep 17 00:00:00 2001 From: Martin Regen Date: Fri, 18 Aug 2017 15:44:15 +0200 Subject: [PATCH] add supportsCRLs method back in --- .../Security/Certificates/DirectoryCertificateStore.cs | 5 +++++ Stack/Opc.Ua.Core/Security/Certificates/ICertificateStore.cs | 5 +++++ .../Security/Certificates/X509CertificateStore.cs | 2 ++ 3 files changed, 12 insertions(+) diff --git a/Stack/Opc.Ua.Core/Security/Certificates/DirectoryCertificateStore.cs b/Stack/Opc.Ua.Core/Security/Certificates/DirectoryCertificateStore.cs index 36cb3b7d26..42112aaf4b 100644 --- a/Stack/Opc.Ua.Core/Security/Certificates/DirectoryCertificateStore.cs +++ b/Stack/Opc.Ua.Core/Security/Certificates/DirectoryCertificateStore.cs @@ -417,6 +417,11 @@ namespace Opc.Ua return StatusCodes.BadCertificateRevocationUnknown; } + /// + /// Whether the the store support CRLs. + /// + public bool SupportsCRLs { get { return true; } } + /// /// Returns the CRLs in the store. /// diff --git a/Stack/Opc.Ua.Core/Security/Certificates/ICertificateStore.cs b/Stack/Opc.Ua.Core/Security/Certificates/ICertificateStore.cs index 9f33be5496..325abdae75 100644 --- a/Stack/Opc.Ua.Core/Security/Certificates/ICertificateStore.cs +++ b/Stack/Opc.Ua.Core/Security/Certificates/ICertificateStore.cs @@ -66,6 +66,11 @@ namespace Opc.Ua /// StatusCode IsRevoked(X509Certificate2 issuer, X509Certificate2 certificate); + /// + /// Whether the store supports CRLs. + /// + bool SupportsCRLs { get; } + /// /// Returns the CRLs in the store. /// diff --git a/Stack/Opc.Ua.Core/Security/Certificates/X509CertificateStore.cs b/Stack/Opc.Ua.Core/Security/Certificates/X509CertificateStore.cs index 5fb8ead666..909b4a26b5 100644 --- a/Stack/Opc.Ua.Core/Security/Certificates/X509CertificateStore.cs +++ b/Stack/Opc.Ua.Core/Security/Certificates/X509CertificateStore.cs @@ -165,6 +165,8 @@ namespace Opc.Ua } } + public bool SupportsCRLs { get { return false; } } + public StatusCode IsRevoked(X509Certificate2 issuer, X509Certificate2 certificate) { throw new ServiceResultException(StatusCodes.BadNotSupported);