summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-03-29 20:19:05 +1030
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-03-29 20:19:05 +1030
commitdffe6e019ea03887b0f1dd9f2ded8a92ff6efcbc (patch)
treef9afee263f055b122db3afc8ee22dafeb9af09b4 /crypto
parentAvoid copies when handshake records not fragmented (diff)
downloadBouncyCastle.NET-ed25519-dffe6e019ea03887b0f1dd9f2ded8a92ff6efcbc.tar.xz
Fix fatal alert type for unexpected server_hello_done
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/tls/TlsClientProtocol.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/tls/TlsClientProtocol.cs b/crypto/src/crypto/tls/TlsClientProtocol.cs
index 24fb3f63d..4e4a7a492 100644
--- a/crypto/src/crypto/tls/TlsClientProtocol.cs
+++ b/crypto/src/crypto/tls/TlsClientProtocol.cs
@@ -427,7 +427,7 @@ namespace Org.BouncyCastle.Crypto.Tls
                     break;
                 }
                 default:
-                    throw new TlsFatalAlert(AlertDescription.handshake_failure);
+                    throw new TlsFatalAlert(AlertDescription.unexpected_message);
                 }
 
                 this.mConnectionState = CS_CLIENT_FINISHED;