BIO_f_ssl.pod (68651) | BIO_f_ssl.pod (127128) |
---|---|
1=pod 2 3=head1 NAME 4 5BIO_f_ssl, BIO_set_ssl, BIO_get_ssl, BIO_set_ssl_mode, BIO_set_ssl_renegotiate_bytes, 6BIO_get_num_renegotiates, BIO_set_ssl_renegotiate_timeout, BIO_new_ssl, 7BIO_new_ssl_connect, BIO_new_buffer_ssl_connect, BIO_ssl_copy_session_id, 8BIO_ssl_shutdown - SSL BIO --- 273 unchanged lines hidden (view full) --- 282 BIO_free_all(acpt); 283 284 if(BIO_do_handshake(sbio) <= 0) { 285 fprintf(stderr, "Error in SSL handshake\n"); 286 ERR_print_errors_fp(stderr); 287 return 0; 288 } 289 | 1=pod 2 3=head1 NAME 4 5BIO_f_ssl, BIO_set_ssl, BIO_get_ssl, BIO_set_ssl_mode, BIO_set_ssl_renegotiate_bytes, 6BIO_get_num_renegotiates, BIO_set_ssl_renegotiate_timeout, BIO_new_ssl, 7BIO_new_ssl_connect, BIO_new_buffer_ssl_connect, BIO_ssl_copy_session_id, 8BIO_ssl_shutdown - SSL BIO --- 273 unchanged lines hidden (view full) --- 282 BIO_free_all(acpt); 283 284 if(BIO_do_handshake(sbio) <= 0) { 285 fprintf(stderr, "Error in SSL handshake\n"); 286 ERR_print_errors_fp(stderr); 287 return 0; 288 } 289 |
290 BIO_puts(sbio, "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n"); 291 BIO_puts(sbio, "<pre>\r\nConnection Established\r\nRequest headers:\r\n"); | 290 BIO_puts(sbio, "HTTP/1.0 200 OK\r\nContent-type: text/plain\r\n\r\n"); 291 BIO_puts(sbio, "\r\nConnection Established\r\nRequest headers:\r\n"); |
292 BIO_puts(sbio, "--------------------------------------------------\r\n"); 293 294 for(;;) { 295 len = BIO_gets(sbio, tmpbuf, 1024); 296 if(len <= 0) break; 297 BIO_write(sbio, tmpbuf, len); 298 BIO_write(out, tmpbuf, len); 299 /* Look for blank line signifying end of headers*/ 300 if((tmpbuf[0] == '\r') || (tmpbuf[0] == '\n')) break; 301 } 302 303 BIO_puts(sbio, "--------------------------------------------------\r\n"); | 292 BIO_puts(sbio, "--------------------------------------------------\r\n"); 293 294 for(;;) { 295 len = BIO_gets(sbio, tmpbuf, 1024); 296 if(len <= 0) break; 297 BIO_write(sbio, tmpbuf, len); 298 BIO_write(out, tmpbuf, len); 299 /* Look for blank line signifying end of headers*/ 300 if((tmpbuf[0] == '\r') || (tmpbuf[0] == '\n')) break; 301 } 302 303 BIO_puts(sbio, "--------------------------------------------------\r\n"); |
304 BIO_puts(sbio, "</pre>\r\n"); | 304 BIO_puts(sbio, "\r\n"); |
305 306 /* Since there is a buffering BIO present we had better flush it */ 307 BIO_flush(sbio); 308 309 BIO_free_all(sbio); 310 311=head1 SEE ALSO 312 313TBA | 305 306 /* Since there is a buffering BIO present we had better flush it */ 307 BIO_flush(sbio); 308 309 BIO_free_all(sbio); 310 311=head1 SEE ALSO 312 313TBA |