Lines Matching refs:ret

100     int ret, nxt_err_t sys_err, nxt_openssl_io_t io);
147 nxt_int_t ret; in nxt_openssl_library_init() local
161 ret = nxt_openssl_locks_init(); in nxt_openssl_library_init()
162 if (nxt_slow_path(ret != NXT_OK)) { in nxt_openssl_library_init()
163 return ret; in nxt_openssl_library_init()
220 nxt_int_t ret; in nxt_openssl_locks_init() local
230 ret = nxt_thread_mutex_create(&nxt_openssl_locks[i]); in nxt_openssl_locks_init()
231 if (nxt_slow_path(ret != NXT_OK)) { in nxt_openssl_locks_init()
232 return ret; in nxt_openssl_locks_init()
457 nxt_int_t ret; local
460 ret = NXT_ERROR;
523 ret = NXT_OK;
530 if (ret != NXT_OK) {
540 return ret;
550 int ret; local
588 ret = SSL_CONF_cmd(cctx, zcmd, zvalue);
589 if (ret == -2) {
596 if (ret <= 0) {
980 nxt_int_t ret; local
1005 ret = nxt_lvlhsh_insert(lvlhsh, &lhq);
1006 if (nxt_fast_path(ret == NXT_OK)) {
1012 if (nxt_fast_path(ret == NXT_DECLINED)) {
1116 nxt_int_t ret; local
1124 ret = nxt_lvlhsh_find(&conf->bundle_hash, &lhq);
1125 if (ret != NXT_OK) {
1163 int ret; local
1191 ret = SSL_set_fd(s, c->socket.fd);
1193 if (ret == 0) {
1240 int ret; local
1267 ret = SSL_do_handshake(tls->session);
1269 err = (ret <= 0) ? nxt_socket_errno : 0;
1273 nxt_debug(task, "SSL_do_handshake(%d): %d err:%d", c->socket.fd, ret, err);
1277 if (ret > 0) {
1300 n = nxt_openssl_conn_test_error(task, c, ret, err,
1334 int ret; local
1343 ret = SSL_read(tls->session, b->mem.free, size);
1345 err = (ret <= 0) ? nxt_socket_errno : 0;
1348 c->socket.fd, b->mem.free, size, ret, err);
1350 if (ret > 0) {
1351 return ret;
1354 n = nxt_openssl_conn_test_error(c->socket.task, c, ret, err,
1386 int ret; local
1394 ret = SSL_write(tls->session, buf, size);
1396 err = (ret <= 0) ? nxt_socket_errno : 0;
1399 sb->socket, buf, size, ret, err);
1401 if (ret > 0) {
1402 return ret;
1408 n = nxt_openssl_conn_test_error(task, c, ret, err, NXT_OPENSSL_WRITE);
1425 int ret, mode; local
1475 ret = SSL_shutdown(s);
1477 err = (ret <= 0) ? nxt_socket_errno : 0;
1480 c->socket.fd, mode, quiet, ret, err);
1482 if (ret > 0) {
1488 if (ret == 0) {
1503 ret = -1;
1515 n = nxt_openssl_conn_test_error(task, c, ret, err, NXT_OPENSSL_SHUTDOWN);
1544 nxt_openssl_conn_test_error(nxt_task_t *task, nxt_conn_t *c, int ret, argument
1552 tls->ssl_error = SSL_get_error(tls->session, ret);