Lines Matching refs:ret
35 * called when the connection is initially made callback(BIO,state,ret);
36 * The callback should return 'ret'. state is for compatibility with the
80 int ret = -1, i;
140 ret = BIO_socket(BIO_ADDRINFO_family(c->addr_iter),
143 if (ret == (int)INVALID_SOCKET) {
150 b->num = ret;
157 ret = BIO_connect(b->num, BIO_ADDRINFO_address(c->addr_iter),
160 if (ret == 0) {
161 if (BIO_sock_should_retry(ret)) {
209 ret = 0;
227 ret = 0;
231 ret = 1;
239 if ((ret = cb((BIO *)b, c->state, ret)) == 0)
247 ret = cb((BIO *)b, c->state, ret);
249 return ret;
254 BIO_CONNECT *ret;
256 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
260 ret->state = BIO_CONN_S_BEFORE;
261 ret->connect_family = BIO_FAMILY_IPANY;
262 return ret;
325 int ret = 0;
330 ret = conn_state(b, data);
331 if (ret <= 0)
332 return ret;
339 ret = ktls_read_record(b->num, out, outl);
342 ret = readsocket(b->num, out, outl);
344 if (ret <= 0) {
345 if (BIO_sock_should_retry(ret))
347 else if (ret == 0)
351 return ret;
356 int ret;
361 ret = conn_state(b, data);
362 if (ret <= 0)
363 return ret;
369 ret = ktls_send_ctrl_message(b->num, data->record_type, in, inl);
370 if (ret >= 0) {
371 ret = inl;
376 ret = writesocket(b->num, in, inl);
378 if (ret <= 0) {
379 if (BIO_sock_should_retry(ret))
382 return ret;
390 long ret = 1;
400 ret = 0;
410 ret = (long)conn_state(b, data);
412 ret = 1;
427 ret = BIO_FAMILY_IPV6;
431 ret = BIO_FAMILY_IPV4;
434 ret = data->connect_family;
437 ret = -1;
441 ret = 0;
444 ret = 0;
459 ret = BIO_parse_hostserv(ptr,
468 ret = 0;
474 ret = host != NULL && service != NULL;
475 if (ret) {
490 ret = 0;
508 ret = b->num;
510 ret = -1;
513 ret = b->shutdown;
520 ret = 0;
541 ret = 0; /* use callback ctrl */
552 ret = (b->flags & BIO_FLAGS_IN_EOF) != 0;
557 ret = ktls_start(b->num, crypto_info, num);
558 if (ret)
568 ret = 0;
572 ret = 0;
576 ret = 0;
579 return ret;
584 long ret = 1;
596 ret = 0;
599 return ret;
604 int n, ret;
607 ret = conn_write(bp, str, n);
608 return ret;
613 BIO *ret;
615 ret = BIO_new(BIO_s_connect());
616 if (ret == NULL)
618 if (BIO_set_conn_hostname(ret, str))
619 return ret;
620 BIO_free(ret);