/** * Calls {@link SSLEngine#unwrap(ByteBuffer, ByteBuffer)} with an empty buffer to handle handshakes, etc. */ private void unwrapNonAppData( ChannelHandlerContext ctx, Channel channel, boolean mightNeedHandshake) throws SSLException { unwrap(ctx, channel, EMPTY_BUFFER, -1, mightNeedHandshake); }
unwrapped = unwrap(ctx, channel, inNetBuf, totalLength, true);