boolean wasShutdownReceived() {
        lock.readLock().lock();
        try {
            return (NativeCrypto.SSL_get_shutdown(ssl, this) & SSL_RECEIVED_SHUTDOWN) != 0;
        } finally {
            lock.readLock().unlock();
        }
    }
A utility wrapper that abstracts operations on the underlying native SSL instance.
common/src/main/java/org/conscrypt/NativeSsl.java