Lines Matching defs: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);
79 if (bs->ssl != NULL)
80 SSL_shutdown(bs->ssl);
83 SSL_free(bs->ssl);
88 OPENSSL_free(bs);
167 BIO_SSL *bs;
171 bs = BIO_get_data(b);
172 ssl = bs->ssl;
180 if (bs->renegotiate_count > 0) {
181 bs->byte_count += *written;
182 if (bs->byte_count > bs->renegotiate_count) {
183 bs->byte_count = 0;
184 bs->num_renegotiates++;
189 if ((bs->renegotiate_timeout > 0) && (!r)) {
193 if (tm > bs->last_time + bs->renegotiate_timeout) {
194 bs->last_time = tm;
195 bs->num_renegotiates++;
227 BIO_SSL *bs, *dbs;
232 bs = BIO_get_data(b);
234 ssl = bs->ssl;
268 ret = bs->renegotiate_timeout;
271 bs->renegotiate_timeout = (unsigned long)num;
272 bs->last_time = (unsigned long)time(NULL);
275 ret = bs->renegotiate_count;
277 bs->renegotiate_count = (unsigned long)num;
280 ret = bs->num_renegotiates;
287 bs = BIO_get_data(b);
291 bs->ssl = ssl;
374 dbs->num_renegotiates = bs->num_renegotiates;
375 dbs->renegotiate_count = bs->renegotiate_count;
376 dbs->byte_count = bs->byte_count;
377 dbs->renegotiate_timeout = bs->renegotiate_timeout;
378 dbs->last_time = bs->last_time;
397 BIO_SSL *bs;
400 bs = BIO_get_data(b);
401 ssl = bs->ssl;