NativeCrypto.ENGINE_SSL_read_direct

Variant of the {@link #SSL_read} for a direct {@link java.nio.ByteBuffer} used by {@link ConscryptEngine}.

@return if positive, represents the number of bytes read into the given buffer. Returns {@code -SSL_ERROR_WANT_READ} if more data is needed. Returns {@code -SSL_ERROR_WANT_WRITE} if data needs to be written out to flush the BIO.

@throws java.io.InterruptedIOException if the read was interrupted. @throws java.io.EOFException if the end of stream has been reached. @throws CertificateException if the application's certificate verification callback failed. Only occurs during handshake processing. @ if any other error occurs.

class NativeCrypto
static
int
ENGINE_SSL_read_direct

Meta