Lines Matching defs:ret
41 long ret = inret;
71 ret = b->callback(b, oper, argp, argi, argl, inret);
73 if (ret > 0 && (oper & BIO_CB_RETURN) && bareoper != BIO_CB_CTRL) {
74 *processed = (size_t)ret;
75 ret = 1;
78 return ret;
128 int ret;
133 if (CRYPTO_DOWN_REF(&a->references, &ret, a->lock) <= 0)
137 if (ret > 0)
139 REF_ASSERT_ISNT(ret < 0);
142 ret = (int)bio_call_callback(a, BIO_CB_FREE, NULL, 0, 0, 0L, 1L, NULL);
143 if (ret <= 0)
271 int ret;
283 ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L,
285 return ret;
292 ret = b->method->bread(b, data, dlen, readbytes);
294 if (ret > 0)
298 ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,
299 dlen, 0, 0L, ret, readbytes);
302 if (ret > 0 && *readbytes > dlen) {
307 return ret;
313 int ret;
318 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes);
320 if (ret > 0) {
322 ret = (int)readbytes;
325 return ret;
337 int ret;
354 ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L,
356 return ret;
363 ret = b->method->bwrite(b, data, dlen, &local_written);
365 if (ret > 0)
369 ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN, data,
370 dlen, 0, 0L, ret, &local_written);
374 return ret;
380 int ret;
385 ret = bio_write_intern(b, data, (size_t)dlen, &written);
387 if (ret > 0) {
389 ret = (int)written;
392 return ret;
403 int ret;
416 ret = (int)bio_call_callback(b, BIO_CB_PUTS, buf, 0, 0, 0L, 1L, NULL);
417 if (ret <= 0)
418 return ret;
426 ret = b->method->bputs(b, buf);
428 if (ret > 0) {
429 b->num_write += (uint64_t)ret;
430 written = ret;
431 ret = 1;
435 ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0,
436 0L, ret, &written);
438 if (ret > 0) {
441 ret = -1;
443 ret = (int)written;
447 return ret;
452 int ret;
470 ret = (int)bio_call_callback(b, BIO_CB_GETS, buf, size, 0, 0L, 1, NULL);
471 if (ret <= 0)
472 return ret;
480 ret = b->method->bgets(b, buf, size);
482 if (ret > 0) {
483 readbytes = ret;
484 ret = 1;
488 ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size,
489 0, 0L, ret, &readbytes);
491 if (ret > 0) {
494 ret = -1;
496 ret = (int)readbytes;
499 return ret;
504 int ret = 0;
526 while (size-- > 1 && (ret = BIO_read(bio, ptr, 1)) > 0)
530 return ret > 0 || BIO_eof(bio) ? ptr - buf : ret;
565 long ret;
575 ret = bio_call_callback(b, BIO_CB_CTRL, parg, 0, cmd, larg, 1L, NULL);
576 if (ret <= 0)
577 return ret;
580 ret = b->method->ctrl(b, cmd, larg, parg);
583 ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0, cmd,
584 larg, ret, NULL);
586 return ret;
591 long ret;
602 ret = bio_call_callback(b, BIO_CB_CTRL, (void *)&fp, 0, cmd, 0, 1L,
604 if (ret <= 0)
605 return ret;
608 ret = b->method->callback_ctrl(b, cmd, fp);
611 ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, (void *)&fp, 0,
612 cmd, 0, ret, NULL);
614 return ret;
624 long ret = BIO_ctrl(bio, BIO_CTRL_PENDING, 0, NULL);
626 if (ret < 0)
627 ret = 0;
629 if (ret > SIZE_MAX)
630 ret = SIZE_MAX;
632 return (size_t)ret;
637 long ret = BIO_ctrl(bio, BIO_CTRL_WPENDING, 0, NULL);
639 if (ret < 0)
640 ret = 0;
642 if (ret > SIZE_MAX)
643 ret = SIZE_MAX;
645 return (size_t)ret;
669 BIO *ret;
673 ret = b->next_bio;
684 return ret;
770 BIO *ret = NULL, *eoc = NULL, *bio, *new_bio;
799 if (ret == NULL) {
801 ret = eoc;
807 return ret;
809 BIO_free_all(ret);