Lines Matching refs:sbio
156 BIO *sbio, *out;
168 sbio = BIO_new_ssl_connect(ctx);
169 BIO_get_ssl(sbio, &ssl);
179 BIO_set_conn_hostname(sbio, ":https");
182 if (BIO_do_connect(sbio) <= 0) {
190 BIO_puts(sbio, "GET / HTTP/1.0\n\n");
192 len = BIO_read(sbio, tmpbuf, 1024);
197 BIO_free_all(sbio);
205 BIO *sbio, *bbio, *acpt, *out;
225 sbio = BIO_new_ssl(ctx, 0);
226 BIO_get_ssl(sbio, &ssl);
234 sbio = BIO_push(bbio, sbio);
239 * we automatically have sbio inserted into it. The
243 BIO_set_accept_bios(acpt, sbio);
254 sbio = BIO_pop(acpt);
257 if (BIO_do_handshake(sbio) <= 0) {
263 BIO_puts(sbio, "HTTP/1.0 200 OK\r\nContent-type: text/plain\r\n\r\n");
264 BIO_puts(sbio, "\r\nConnection Established\r\nRequest headers:\r\n");
265 BIO_puts(sbio, "--------------------------------------------------\r\n");
268 len = BIO_gets(sbio, tmpbuf, 1024);
271 BIO_write(sbio, tmpbuf, len);
278 BIO_puts(sbio, "--------------------------------------------------\r\n");
279 BIO_puts(sbio, "\r\n");
280 BIO_flush(sbio);
281 BIO_free_all(sbio);