Lines Matching refs:bs
58 BIO_SSL *bs = OPENSSL_zalloc(sizeof(*bs));
60 if (bs == NULL) {
65 BIO_set_data(bi, bs);
74 BIO_SSL *bs;
78 bs = BIO_get_data(a);
80 if (bs->ssl != NULL)
81 SSL_shutdown(bs->ssl);
83 SSL_free(bs->ssl);
87 OPENSSL_free(bs);
166 BIO_SSL *bs;
170 bs = BIO_get_data(b);
171 ssl = bs->ssl;
179 if (bs->renegotiate_count > 0) {
180 bs->byte_count += *written;
181 if (bs->byte_count > bs->renegotiate_count) {
182 bs->byte_count = 0;
183 bs->num_renegotiates++;
188 if ((bs->renegotiate_timeout > 0) && (!r)) {
192 if (tm > bs->last_time + bs->renegotiate_timeout) {
193 bs->last_time = tm;
194 bs->num_renegotiates++;
226 BIO_SSL *bs, *dbs;
231 bs = BIO_get_data(b);
233 ssl = bs->ssl;
267 ret = bs->renegotiate_timeout;
270 bs->renegotiate_timeout = (unsigned long)num;
271 bs->last_time = (unsigned long)time(NULL);
274 ret = bs->renegotiate_count;
276 bs->renegotiate_count = (unsigned long)num;
279 ret = bs->num_renegotiates;
286 bs = BIO_get_data(b);
290 bs->ssl = ssl;
373 dbs->num_renegotiates = bs->num_renegotiates;
374 dbs->renegotiate_count = bs->renegotiate_count;
375 dbs->byte_count = bs->byte_count;
376 dbs->renegotiate_timeout = bs->renegotiate_timeout;
377 dbs->last_time = bs->last_time;
396 BIO_SSL *bs;
399 bs = BIO_get_data(b);
400 ssl = bs->ssl;