bf_nbio.c (160815) | bf_nbio.c (215697) |
---|---|
1/* crypto/bio/bf_nbio.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 111 unchanged lines hidden (view full) --- 120 a->ptr=NULL; 121 a->init=0; 122 a->flags=0; 123 return(1); 124 } 125 126static int nbiof_read(BIO *b, char *out, int outl) 127 { | 1/* crypto/bio/bf_nbio.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 111 unchanged lines hidden (view full) --- 120 a->ptr=NULL; 121 a->init=0; 122 a->flags=0; 123 return(1); 124 } 125 126static int nbiof_read(BIO *b, char *out, int outl) 127 { |
128 NBIO_TEST *nt; | |
129 int ret=0; 130#if 1 131 int num; 132 unsigned char n; 133#endif 134 135 if (out == NULL) return(0); 136 if (b->next_bio == NULL) return(0); | 128 int ret=0; 129#if 1 130 int num; 131 unsigned char n; 132#endif 133 134 if (out == NULL) return(0); 135 if (b->next_bio == NULL) return(0); |
137 nt=(NBIO_TEST *)b->ptr; | |
138 139 BIO_clear_retry_flags(b); 140#if 1 141 RAND_pseudo_bytes(&n,1); 142 num=(n&0x07); 143 144 if (outl > num) outl=num; 145 --- 110 unchanged lines hidden --- | 136 137 BIO_clear_retry_flags(b); 138#if 1 139 RAND_pseudo_bytes(&n,1); 140 num=(n&0x07); 141 142 if (outl > num) outl=num; 143 --- 110 unchanged lines hidden --- |