| 
									
										
										
										
											2013-09-13 07:52:27 -04:00
										 |  |  | USING: | 
					
						
							|  |  |  |     byte-arrays | 
					
						
							|  |  |  |     kernel | 
					
						
							|  |  |  |     openssl.libcrypto | 
					
						
							|  |  |  |     sequences | 
					
						
							|  |  |  |     splitting | 
					
						
							|  |  |  |     strings | 
					
						
							|  |  |  |     tools.test ;
 | 
					
						
							|  |  |  | IN: openssl.libcrypto.tests | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 12:39:59 -04:00
										 |  |  | { t } [ "factorcode.org:80" BIO_new_connect bio_st? ] unit-test | 
					
						
							| 
									
										
										
										
											2013-09-13 07:52:27 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 12:39:59 -04:00
										 |  |  | { 1 1 } [ | 
					
						
							| 
									
										
										
										
											2014-09-23 18:45:46 -04:00
										 |  |  |     "factorcode.org:80" BIO_new_connect [ | 
					
						
							|  |  |  |         BIO_C_DO_STATE_MACHINE 0 f BIO_ctrl | 
					
						
							|  |  |  |     ] keep BIO_free | 
					
						
							| 
									
										
										
										
											2013-09-13 07:52:27 -04:00
										 |  |  | ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-03 12:39:59 -04:00
										 |  |  | { "HTTP/1.1 200 Document follows" 1 } [ | 
					
						
							| 
									
										
										
										
											2014-09-23 18:45:46 -04:00
										 |  |  |     "factorcode.org:80" BIO_new_connect [ | 
					
						
							|  |  |  |         [ BIO_C_DO_STATE_MACHINE 0 f BIO_ctrl drop ] | 
					
						
							|  |  |  |         [ | 
					
						
							|  |  |  |             [ "GET / HTTP/1.1\r\nHost: factorcode.org\r\n\r\n" BIO_puts drop ] | 
					
						
							|  |  |  |             [ 1024 <byte-array> dup swapd 1023 BIO_read drop ] bi
 | 
					
						
							|  |  |  |         ] bi >string "\r\n" split first
 | 
					
						
							|  |  |  |     ] keep BIO_free | 
					
						
							| 
									
										
										
										
											2013-09-13 07:52:27 -04:00
										 |  |  | ] unit-test |