test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java

Print this page

        

*** 230,240 **** // At this point we can verify that both an exception // was thrown and the proper action (a TLS alert) was // sent back to the server. if (gotException == false || !isTlsMessage(cTOs, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, ! TLS_ALERT_INTERNAL_ERROR)) { throw new SSLException( "Client failed to throw Alert:fatal:internal_error"); } } }; --- 230,240 ---- // At this point we can verify that both an exception // was thrown and the proper action (a TLS alert) was // sent back to the server. if (gotException == false || !isTlsMessage(cTOs, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, ! TLS_ALERT_UNEXPECTED_MSG)) { throw new SSLException( "Client failed to throw Alert:fatal:internal_error"); } } };
*** 282,292 **** // At this point we can verify that both an exception // was thrown and the proper action (a TLS alert) was // sent back to the client. if (gotException == false || !isTlsMessage(sTOc, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, ! TLS_ALERT_INTERNAL_ERROR)) { throw new SSLException( "Server failed to throw Alert:fatal:internal_error"); } } }; --- 282,292 ---- // At this point we can verify that both an exception // was thrown and the proper action (a TLS alert) was // sent back to the client. if (gotException == false || !isTlsMessage(sTOc, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, ! TLS_ALERT_UNEXPECTED_MSG)) { throw new SSLException( "Server failed to throw Alert:fatal:internal_error"); } } };