Skip to content

Commit e6b4ba8

Browse files
committed
Add exception detail message
1 parent 617c7e6 commit e6b4ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tls/src/main/java/org/bouncycastle/tls/TlsClientProtocol.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,8 @@ protected void processServerHello(ServerHello serverHello)
12361236
*/
12371237
if (null == TlsUtils.getExtensionData(this.clientExtensions, extType))
12381238
{
1239-
throw new TlsFatalAlert(AlertDescription.unsupported_extension);
1239+
throw new TlsFatalAlert(AlertDescription.unsupported_extension,
1240+
"Unrequested extension in ServerHello: " + ExtensionType.getText(extType.intValue()));
12401241
}
12411242

12421243
/*

0 commit comments

Comments
 (0)