Lines Matching refs:wctx
1614 struct wolfssl_ctx *wctx = (struct wolfssl_ctx *)connssl->backend; in wolfssl_shutdown() local
1622 DEBUGASSERT(wctx); in wolfssl_shutdown()
1623 if(!wctx->handle || cf->shutdown) { in wolfssl_shutdown()
1628 wctx->shutting_down = TRUE; in wolfssl_shutdown()
1631 if(!(wolfSSL_get_shutdown(wctx->handle) & WOLFSSL_SENT_SHUTDOWN)) { in wolfssl_shutdown()
1635 nread = wolfSSL_read(wctx->handle, buf, (int)sizeof(buf)); in wolfssl_shutdown()
1636 err = wolfSSL_get_error(wctx->handle, nread); in wolfssl_shutdown()
1662 if(wolfSSL_shutdown(wctx->handle) == 1) { in wolfssl_shutdown()
1667 if(WOLFSSL_ERROR_WANT_WRITE == wolfSSL_get_error(wctx->handle, nread)) { in wolfssl_shutdown()
1678 nread = wolfSSL_read(wctx->handle, buf, (int)sizeof(buf)); in wolfssl_shutdown()
1682 err = wolfSSL_get_error(wctx->handle, nread); in wolfssl_shutdown()
1700 detail = wolfSSL_get_error(wctx->handle, err); in wolfssl_shutdown()