• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/bio/

Lines Matching refs:bio

19 /* crypto/bio/bio_lib.c */
81 #include <openssl/bio.h>
105 int BIO_set(BIO *bio, const BIO_METHOD *method)
107 bio->method=method;
108 bio->callback=NULL;
109 bio->cb_arg=NULL;
110 bio->init=0;
111 bio->shutdown=1;
112 bio->flags=0;
113 bio->retry_reason=0;
114 bio->num=0;
115 bio->ptr=NULL;
116 bio->prev_bio=NULL;
117 bio->next_bio=NULL;
118 bio->references=1;
119 bio->num_read=0L;
120 bio->num_write=0L;
121 CRYPTO_new_ex_data(bio_meth,bio,&bio->ex_data);
123 if (!method->create(bio))
368 size_t BIO_ctrl_pending(BIO *bio)
370 return BIO_ctrl(bio, BIO_CTRL_PENDING, 0, NULL);
373 size_t BIO_ctrl_wpending(BIO *bio)
375 return BIO_ctrl(bio, BIO_CTRL_WPENDING, 0, NULL);
379 /* put the 'bio' on the end of b's list of operators */
380 BIO *BIO_push(BIO *b, BIO *bio)
384 if (b == NULL) return(bio);
388 lb->next_bio=bio;
389 if (bio != NULL)
390 bio->prev_bio=lb;
415 BIO *BIO_get_retry_BIO(BIO *bio, int *reason)
419 b=last=bio;
431 int BIO_get_retry_reason(BIO *bio)
433 return(bio->retry_reason);
436 BIO *BIO_find_type(BIO *bio, int type)
442 if (bio->method != NULL)
444 mt=bio->method->type;
448 if (mt & type) return(bio);
451 return(bio);
453 bio=bio->next_bio;
454 } while (bio != NULL);
458 void BIO_free_all(BIO *bio)
463 while (bio != NULL)
465 b=bio;
467 bio=bio->next_bio;
476 BIO *ret=NULL,*eoc=NULL,*bio,*new;
478 for (bio=in; bio != NULL; bio=bio->next_bio)
480 if ((new=BIO_new(bio->method)) == NULL) goto err;
481 new->callback=bio->callback;
482 new->cb_arg=bio->cb_arg;
483 new->init=bio->init;
484 new->shutdown=bio->shutdown;
485 new->flags=bio->flags;
488 new->num=bio->num;
490 if (!BIO_dup_state(bio,(char *)new))
497 if (!CRYPTO_dup_ex_data(bio_meth,&new->ex_data,&bio->ex_data))
532 int BIO_set_ex_data(BIO *bio, int idx, void *data)
534 return(CRYPTO_set_ex_data(&(bio->ex_data),idx,data));
537 void *BIO_get_ex_data(BIO *bio, int idx)
539 return(CRYPTO_get_ex_data(&(bio->ex_data),idx));
542 unsigned long BIO_number_read(BIO *bio)
544 if(bio) return bio->num_read;
548 unsigned long BIO_number_written(BIO *bio)
550 if(bio) return bio->num_write;