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);
261 sbio = BIO_pop(acpt);
264 if (BIO_do_handshake(sbio) <= 0) {
270 BIO_puts(sbio, "HTTP/1.0 200 OK\r\nContent-type: text/plain\r\n\r\n");
271 BIO_puts(sbio, "\r\nConnection Established\r\nRequest headers:\r\n");
272 BIO_puts(sbio, "--------------------------------------------------\r\n");
275 len = BIO_gets(sbio, tmpbuf, 1024);
278 BIO_write(sbio, tmpbuf, len);
285 BIO_puts(sbio, "--------------------------------------------------\r\n");
286 BIO_puts(sbio, "\r\n");
287 BIO_flush(sbio);
288 BIO_free_all(sbio);