Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-10 Thread Bradford Wetmore
On 8/9/2018 5:57 PM, Xuelei Fan wrote: Thank you, Tim!   Please feel free to submit bugs and comments. I went through a standard SSLEngineTemplate handshake/data/close with a fine-tooth comb (debugger), and found two bugs based on your -04 patch. 1. Things may have changed since the origi

Re: Code Review Request, JDK-8207009 SSLEngine#closeInbound mentions SSLException when no close_notify is received

2018-08-10 Thread Jamil Nimeh
I'm good with the changes. --Jamil On 8/7/2018 5:24 PM, Xuelei Fan wrote: Hi Jamil, Thanks for comments.  Here is the updated webrev:    http://cr.openjdk.java.net/~xuelei/8207009/webrev.04/ Thanks, Xuelei On 8/7/2018 3:12 PM, Jamil Nimeh wrote: Hi Xuelei, mostly small stuff:   * SSLEngine

Re: CSR Review: 8208641: SSLSocket should throw an exception when configuring DTLS

2018-08-10 Thread Anthony Scarpino
On 08/09/2018 06:49 AM, Xuelei Fan wrote: On 8/9/2018 4:25 AM, Sean Mullan wrote: On 8/8/18 5:29 PM, Xuelei Fan wrote: The "Default" algorithm defined in the SunJSSE provider is for TLS protocols. What if I set DTLS to be the default, though? Ex: SSLContext.setDefault(SSLContext.getInst

Re: [RFR] 8205525 : Improve exception messages during manifest parsing of jar archives

2018-08-10 Thread Sean Mullan
I need more time to finish my review but here are some initial comments: - java.security 1079 # jarpath - enables more detailed information in the IOExceptions thrown Use "jarPath" to be consistent with "hostInfo". 1080 #by java.util.jar.Attributes and java.util.jar.Manifest a

Re: RFR: JDK-8209129 :Further improvements to cipher buffer management

2018-08-10 Thread Seán Coffey
Thanks for the review Max - comments inline.. Regards, Sean. On 10/08/18 11:53, Weijun Wang wrote: HmacPKCS12PBESHA1.java: 76 byte[] passwdBytes = key.getEncoded(); 77 if ((passwdBytes == null) || 78 !(key.getAlgorithm().regionMatches(true, 0, "

Re: RFR: JDK-8209129 :Further improvements to cipher buffer management

2018-08-10 Thread Weijun Wang
HmacPKCS12PBESHA1.java: 76 byte[] passwdBytes = key.getEncoded(); 77 if ((passwdBytes == null) || 78 !(key.getAlgorithm().regionMatches(true, 0, "PBE", 0, 3))) { 79 throw new InvalidKeyException("Missing password"); 80