Lines Matching refs:ret

43     int ret, const char *fmt, ...);
297 int ret; in nxt_cyassl_conn_handshake() local
310 ret = CyaSSL_negotiate(ssltls->session); in nxt_cyassl_conn_handshake()
312 err = (ret != 0) ? nxt_socket_errno : 0; in nxt_cyassl_conn_handshake()
316 nxt_log_debug(thr->log, "CyaSSL_negotiate(%d): %d", c->socket.fd, ret); in nxt_cyassl_conn_handshake()
318 if (ret == 0) { in nxt_cyassl_conn_handshake()
323 n = nxt_cyassl_conn_test_error(thr, c, ret, nxt_cyassl_conn_handshake); in nxt_cyassl_conn_handshake()
341 int ret; in nxt_cyassl_conn_io_read() local
361 ret = CyaSSL_read(ssltls->session, b->mem.free, in nxt_cyassl_conn_io_read()
364 err = (ret <= 0) ? nxt_socket_errno : 0; in nxt_cyassl_conn_io_read()
367 c->socket.fd, b->mem.free, b->mem.end - b->mem.free, ret); in nxt_cyassl_conn_io_read()
369 if (ret > 0) { in nxt_cyassl_conn_io_read()
371 b->mem.free += ret; in nxt_cyassl_conn_io_read()
375 n = nxt_cyassl_conn_test_error(thr, c, ret, in nxt_cyassl_conn_io_read()
411 int ret; in nxt_cyassl_conn_io_send() local
420 ret = CyaSSL_write(ssltls->session, buf, size); in nxt_cyassl_conn_io_send()
422 if (ret <= 0) { in nxt_cyassl_conn_io_send()
431 c->socket.fd, buf, size, ret); in nxt_cyassl_conn_io_send()
433 if (ret > 0) { in nxt_cyassl_conn_io_send()
434 return ret; in nxt_cyassl_conn_io_send()
437 n = nxt_cyassl_conn_test_error(nxt_thread(), c, ret, in nxt_cyassl_conn_io_send()
452 int ret; in nxt_cyassl_conn_io_shutdown() local
462 ret = CyaSSL_shutdown(ssltls->session); in nxt_cyassl_conn_io_shutdown()
464 nxt_log_debug(thr->log, "CyaSSL_shutdown(%d): %d", c->socket.fd, ret); in nxt_cyassl_conn_io_shutdown()
466 if (nxt_slow_path(ret != SSL_SUCCESS)) { in nxt_cyassl_conn_io_shutdown()
476 nxt_cyassl_conn_test_error(nxt_thread_t *thr, nxt_event_conn_t *c, int ret, in nxt_cyassl_conn_test_error() argument
483 ssltls->ssl_error = CyaSSL_get_error(ssltls->session, ret); in nxt_cyassl_conn_test_error()