diff options
Diffstat (limited to 'crypto/src/crypto/tls/TlsECDHKeyExchange.cs')
-rw-r--r-- | crypto/src/crypto/tls/TlsECDHKeyExchange.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/tls/TlsECDHKeyExchange.cs b/crypto/src/crypto/tls/TlsECDHKeyExchange.cs index c508fb993..44fd94cbd 100644 --- a/crypto/src/crypto/tls/TlsECDHKeyExchange.cs +++ b/crypto/src/crypto/tls/TlsECDHKeyExchange.cs @@ -69,7 +69,7 @@ namespace Org.BouncyCastle.Crypto.Tls if (mKeyExchange == KeyExchangeAlgorithm.ECDH_anon) throw new TlsFatalAlert(AlertDescription.unexpected_message); if (serverCertificate.IsEmpty) - throw new TlsFatalAlert(AlertDescription.bad_certificate); + throw new TlsFatalAlert(AlertDescription.decode_error); X509CertificateStructure x509Cert = serverCertificate.GetCertificateAt(0); |