test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java

Print this page

        

*** 129,139 **** sslIS.read(); sslOS.write(85); sslOS.flush(); } throw new Exception("Not reject client initialized renegotiation"); ! } catch (SSLHandshakeException she) { System.out.println("Got the expected exception"); } finally { sslSocket.close(); } } --- 129,139 ---- sslIS.read(); sslOS.write(85); sslOS.flush(); } throw new Exception("Not reject client initialized renegotiation"); ! } catch (IOException ioe) { System.out.println("Got the expected exception"); } finally { sslSocket.close(); } }
*** 179,189 **** sslOS.write(280); sslOS.flush(); sslIS.read(); } throw new Exception("Not reject client initialized renegotiation"); ! } catch (SSLHandshakeException she) { System.out.println("Got the expected exception"); } finally { sslSocket.close(); } } --- 179,189 ---- sslOS.write(280); sslOS.flush(); sslIS.read(); } throw new Exception("Not reject client initialized renegotiation"); ! } catch (IOException ioe) { System.out.println("Got the expected exception"); } finally { sslSocket.close(); } }