diff options
Diffstat (limited to 'Crypto/src/crypto/tls/AlwaysValidVerifyer.cs')
-rw-r--r-- | Crypto/src/crypto/tls/AlwaysValidVerifyer.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Crypto/src/crypto/tls/AlwaysValidVerifyer.cs b/Crypto/src/crypto/tls/AlwaysValidVerifyer.cs new file mode 100644 index 000000000..e26c6fc3f --- /dev/null +++ b/Crypto/src/crypto/tls/AlwaysValidVerifyer.cs @@ -0,0 +1,24 @@ +using System; + +using Org.BouncyCastle.Asn1.X509; + +namespace Org.BouncyCastle.Crypto.Tls +{ + /// <remarks> + /// A certificate verifyer, that will always return true. + /// <pre> + /// DO NOT USE THIS FILE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING. + /// </pre> + /// </remarks> + [Obsolete("Perform certificate verification in TlsAuthentication implementation")] + public class AlwaysValidVerifyer + : ICertificateVerifyer + { + /// <summary>Return true.</summary> + public bool IsValid( + X509CertificateStructure[] certs) + { + return true; + } + } +} |