| 
									
										
										
										
											2016-05-18 02:24:17 +08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2018-02-13 20:51:29 +08:00
										 |  |  |  * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2016-03-22 17:21:29 +08:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-12-06 20:12:35 +08:00
										 |  |  |  * Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2016-05-18 02:24:17 +08:00
										 |  |  |  * this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  |  * in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  |  * https://www.openssl.org/source/license.html
 | 
					
						
							| 
									
										
										
										
											2016-03-22 17:21:29 +08:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <openssl/bio.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct bio_method_st { | 
					
						
							|  |  |  |     int type; | 
					
						
							| 
									
										
										
										
											2018-02-11 02:36:47 +08:00
										 |  |  |     char *name; | 
					
						
							| 
									
										
										
										
											2016-10-20 22:18:39 +08:00
										 |  |  |     int (*bwrite) (BIO *, const char *, size_t, size_t *); | 
					
						
							|  |  |  |     int (*bwrite_old) (BIO *, const char *, int); | 
					
						
							| 
									
										
										
										
											2016-09-06 00:26:58 +08:00
										 |  |  |     int (*bread) (BIO *, char *, size_t, size_t *); | 
					
						
							|  |  |  |     int (*bread_old) (BIO *, char *, int); | 
					
						
							| 
									
										
										
										
											2016-03-22 17:21:29 +08:00
										 |  |  |     int (*bputs) (BIO *, const char *); | 
					
						
							|  |  |  |     int (*bgets) (BIO *, char *, int); | 
					
						
							|  |  |  |     long (*ctrl) (BIO *, int, long, void *); | 
					
						
							|  |  |  |     int (*create) (BIO *); | 
					
						
							|  |  |  |     int (*destroy) (BIO *); | 
					
						
							| 
									
										
										
										
											2017-12-16 02:33:48 +08:00
										 |  |  |     long (*callback_ctrl) (BIO *, int, BIO_info_cb *); | 
					
						
							| 
									
										
										
										
											2016-03-22 17:21:29 +08:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-15 04:28:54 +08:00
										 |  |  | void bio_free_ex_data(BIO *bio); | 
					
						
							| 
									
										
										
										
											2016-03-12 05:53:18 +08:00
										 |  |  | void bio_cleanup(void); | 
					
						
							| 
									
										
										
										
											2016-09-06 00:26:58 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Old style to new style BIO_METHOD conversion functions */ | 
					
						
							| 
									
										
										
										
											2016-10-21 22:15:51 +08:00
										 |  |  | int bwrite_conv(BIO *bio, const char *data, size_t datal, size_t *written); | 
					
						
							|  |  |  | int bread_conv(BIO *bio, char *data, size_t datal, size_t *read); |