Deleted Added
full compact
bio.h (59191) bio.h (68651)
1/* crypto/bio/bio.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H
61
1/* crypto/bio/bio.h */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H
61
62#ifdef __cplusplus
63extern "C" {
62#ifndef NO_FP_API
63# include <stdio.h>
64#endif
64#endif
65#include <stdarg.h>
65
66
66#include <stdio.h>
67#include <stdlib.h>
68#include <openssl/crypto.h>
69
67#include <openssl/crypto.h>
68
69#ifdef __cplusplus
70extern "C" {
71#endif
72
70/* These are the 'types' of BIOs */
71#define BIO_TYPE_NONE 0
72#define BIO_TYPE_MEM (1|0x0400)
73#define BIO_TYPE_FILE (2|0x0400)
74
75#define BIO_TYPE_FD (4|0x0400|0x0100)
76#define BIO_TYPE_SOCKET (5|0x0400|0x0100)
77#define BIO_TYPE_NULL (6|0x0400)

--- 5 unchanged lines hidden (view full) ---

83#define BIO_TYPE_CONNECT (12|0x0400|0x0100) /* socket - connect */
84#define BIO_TYPE_ACCEPT (13|0x0400|0x0100) /* socket for accept */
85#define BIO_TYPE_PROXY_CLIENT (14|0x0200) /* client proxy BIO */
86#define BIO_TYPE_PROXY_SERVER (15|0x0200) /* server proxy BIO */
87#define BIO_TYPE_NBIO_TEST (16|0x0200) /* server proxy BIO */
88#define BIO_TYPE_NULL_FILTER (17|0x0200)
89#define BIO_TYPE_BER (18|0x0200) /* BER -> bin filter */
90#define BIO_TYPE_BIO (19|0x0400) /* (half a) BIO pair */
73/* These are the 'types' of BIOs */
74#define BIO_TYPE_NONE 0
75#define BIO_TYPE_MEM (1|0x0400)
76#define BIO_TYPE_FILE (2|0x0400)
77
78#define BIO_TYPE_FD (4|0x0400|0x0100)
79#define BIO_TYPE_SOCKET (5|0x0400|0x0100)
80#define BIO_TYPE_NULL (6|0x0400)

--- 5 unchanged lines hidden (view full) ---

86#define BIO_TYPE_CONNECT (12|0x0400|0x0100) /* socket - connect */
87#define BIO_TYPE_ACCEPT (13|0x0400|0x0100) /* socket for accept */
88#define BIO_TYPE_PROXY_CLIENT (14|0x0200) /* client proxy BIO */
89#define BIO_TYPE_PROXY_SERVER (15|0x0200) /* server proxy BIO */
90#define BIO_TYPE_NBIO_TEST (16|0x0200) /* server proxy BIO */
91#define BIO_TYPE_NULL_FILTER (17|0x0200)
92#define BIO_TYPE_BER (18|0x0200) /* BER -> bin filter */
93#define BIO_TYPE_BIO (19|0x0400) /* (half a) BIO pair */
94#define BIO_TYPE_LINEBUFFER (20|0x0200) /* filter */
91
92#define BIO_TYPE_DESCRIPTOR 0x0100 /* socket, fd, connect or accept */
93#define BIO_TYPE_FILTER 0x0200
94#define BIO_TYPE_SOURCE_SINK 0x0400
95
96/* BIO_FILENAME_READ|BIO_CLOSE to open or close on free.
97 * BIO_set_fp(in,stdin,BIO_NOCLOSE); */
98#define BIO_NOCLOSE 0x00

--- 103 unchanged lines hidden (view full) ---

202
203#define BIO_set_callback(b,cb) ((b)->callback=(cb))
204#define BIO_set_callback_arg(b,arg) ((b)->cb_arg=(char *)(arg))
205#define BIO_get_callback_arg(b) ((b)->cb_arg)
206#define BIO_get_callback(b) ((b)->callback)
207#define BIO_method_name(b) ((b)->method->name)
208#define BIO_method_type(b) ((b)->method->type)
209
95
96#define BIO_TYPE_DESCRIPTOR 0x0100 /* socket, fd, connect or accept */
97#define BIO_TYPE_FILTER 0x0200
98#define BIO_TYPE_SOURCE_SINK 0x0400
99
100/* BIO_FILENAME_READ|BIO_CLOSE to open or close on free.
101 * BIO_set_fp(in,stdin,BIO_NOCLOSE); */
102#define BIO_NOCLOSE 0x00

--- 103 unchanged lines hidden (view full) ---

206
207#define BIO_set_callback(b,cb) ((b)->callback=(cb))
208#define BIO_set_callback_arg(b,arg) ((b)->cb_arg=(char *)(arg))
209#define BIO_get_callback_arg(b) ((b)->cb_arg)
210#define BIO_get_callback(b) ((b)->callback)
211#define BIO_method_name(b) ((b)->method->name)
212#define BIO_method_type(b) ((b)->method->type)
213
214typedef struct bio_st BIO;
215
216typedef void bio_info_cb(struct bio_st *, int, const char *, int, long, long);
217
210#ifndef WIN16
211typedef struct bio_method_st
212 {
213 int type;
214 const char *name;
218#ifndef WIN16
219typedef struct bio_method_st
220 {
221 int type;
222 const char *name;
215 int (*bwrite)();
216 int (*bread)();
217 int (*bputs)();
218 int (*bgets)();
219 long (*ctrl)();
220 int (*create)();
221 int (*destroy)();
222 long (*callback_ctrl)();
223 int (*bwrite)(BIO *, const char *, int);
224 int (*bread)(BIO *, char *, int);
225 int (*bputs)(BIO *, const char *);
226 int (*bgets)(BIO *, char *, int);
227 long (*ctrl)(BIO *, int, long, void *);
228 int (*create)(BIO *);
229 int (*destroy)(BIO *);
230 long (*callback_ctrl)(BIO *, int, bio_info_cb *);
223 } BIO_METHOD;
224#else
225typedef struct bio_method_st
226 {
227 int type;
228 const char *name;
229 int (_far *bwrite)();
230 int (_far *bread)();
231 int (_far *bputs)();
232 int (_far *bgets)();
233 long (_far *ctrl)();
234 int (_far *create)();
235 int (_far *destroy)();
236 long (_fat *callback_ctrl)();
237 } BIO_METHOD;
238#endif
239
231 } BIO_METHOD;
232#else
233typedef struct bio_method_st
234 {
235 int type;
236 const char *name;
237 int (_far *bwrite)();
238 int (_far *bread)();
239 int (_far *bputs)();
240 int (_far *bgets)();
241 long (_far *ctrl)();
242 int (_far *create)();
243 int (_far *destroy)();
244 long (_fat *callback_ctrl)();
245 } BIO_METHOD;
246#endif
247
240typedef struct bio_st
248struct bio_st
241 {
242 BIO_METHOD *method;
243 /* bio, mode, argp, argi, argl, ret */
244 long (*callback)(struct bio_st *,int,const char *,int, long,long);
245 char *cb_arg; /* first argument for the callback */
246
247 int init;
248 int shutdown;
249 int flags; /* extra storage */
250 int retry_reason;
251 int num;
252 void *ptr;
253 struct bio_st *next_bio; /* used by filter BIOs */
254 struct bio_st *prev_bio; /* used by filter BIOs */
255 int references;
256 unsigned long num_read;
257 unsigned long num_write;
258
259 CRYPTO_EX_DATA ex_data;
249 {
250 BIO_METHOD *method;
251 /* bio, mode, argp, argi, argl, ret */
252 long (*callback)(struct bio_st *,int,const char *,int, long,long);
253 char *cb_arg; /* first argument for the callback */
254
255 int init;
256 int shutdown;
257 int flags; /* extra storage */
258 int retry_reason;
259 int num;
260 void *ptr;
261 struct bio_st *next_bio; /* used by filter BIOs */
262 struct bio_st *prev_bio; /* used by filter BIOs */
263 int references;
264 unsigned long num_read;
265 unsigned long num_write;
266
267 CRYPTO_EX_DATA ex_data;
260 } BIO;
268 };
261
269
270DECLARE_STACK_OF(BIO)
271
262typedef struct bio_f_buffer_ctx_struct
263 {
264 /* BIO *bio; */ /* this is now in the BIO struct */
265 int ibuf_size; /* how big is the input buffer */
266 int obuf_size; /* how big is the output buffer */
267
268 char *ibuf; /* the char array */
269 int ibuf_len; /* how many bytes are in it */

--- 179 unchanged lines hidden (view full) ---

449#define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
450#define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
451#define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
452#define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
453/* ...pending macros have inappropriate return type */
454size_t BIO_ctrl_pending(BIO *b);
455size_t BIO_ctrl_wpending(BIO *b);
456#define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
272typedef struct bio_f_buffer_ctx_struct
273 {
274 /* BIO *bio; */ /* this is now in the BIO struct */
275 int ibuf_size; /* how big is the input buffer */
276 int obuf_size; /* how big is the output buffer */
277
278 char *ibuf; /* the char array */
279 int ibuf_len; /* how many bytes are in it */

--- 179 unchanged lines hidden (view full) ---

459#define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
460#define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
461#define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
462#define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
463/* ...pending macros have inappropriate return type */
464size_t BIO_ctrl_pending(BIO *b);
465size_t BIO_ctrl_wpending(BIO *b);
466#define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
457#define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0,(void (**)())(cbp))
458#define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,(void (*)())(cb))
467#define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0,(bio_info_cb **)(cbp))
468#define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,(bio_info_cb *)(cb))
459
460/* For the BIO_f_buffer() type */
461#define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
462
463/* For BIO_s_bio() */
464#define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
465#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
466#define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
467#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
469
470/* For the BIO_f_buffer() type */
471#define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
472
473/* For BIO_s_bio() */
474#define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
475#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
476#define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
477#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
478#define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
468/* macros with inappropriate type -- but ...pending macros use int too: */
469#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
470#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
471size_t BIO_ctrl_get_write_guarantee(BIO *b);
472size_t BIO_ctrl_get_read_request(BIO *b);
473int BIO_ctrl_reset_read_request(BIO *b);
474
479/* macros with inappropriate type -- but ...pending macros use int too: */
480#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
481#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
482size_t BIO_ctrl_get_write_guarantee(BIO *b);
483size_t BIO_ctrl_get_read_request(BIO *b);
484int BIO_ctrl_reset_read_request(BIO *b);
485
475#ifdef NO_STDIO
476#define NO_FP_API
477#endif
478
479
480/* These two aren't currently implemented */
481/* int BIO_get_ex_num(BIO *bio); */
482/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
483int BIO_set_ex_data(BIO *bio,int idx,void *data);
484void *BIO_get_ex_data(BIO *bio,int idx);
485int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
486 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
487unsigned long BIO_number_read(BIO *bio);
488unsigned long BIO_number_written(BIO *bio);
489
486/* These two aren't currently implemented */
487/* int BIO_get_ex_num(BIO *bio); */
488/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
489int BIO_set_ex_data(BIO *bio,int idx,void *data);
490void *BIO_get_ex_data(BIO *bio,int idx);
491int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
492 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
493unsigned long BIO_number_read(BIO *bio);
494unsigned long BIO_number_written(BIO *bio);
495
496# ifndef NO_FP_API
490# if defined(WIN16) && defined(_WINDLL)
491BIO_METHOD *BIO_s_file_internal(void);
492BIO *BIO_new_file_internal(char *filename, char *mode);
493BIO *BIO_new_fp_internal(FILE *stream, int close_flag);
494# define BIO_s_file BIO_s_file_internal
495# define BIO_new_file BIO_new_file_internal
496# define BIO_new_fp BIO_new_fp_internal
497# else /* FP_API */
498BIO_METHOD *BIO_s_file(void );
499BIO *BIO_new_file(const char *filename, const char *mode);
500BIO *BIO_new_fp(FILE *stream, int close_flag);
501# define BIO_s_file_internal BIO_s_file
502# define BIO_new_file_internal BIO_new_file
503# define BIO_new_fp_internal BIO_s_file
504# endif /* FP_API */
497# if defined(WIN16) && defined(_WINDLL)
498BIO_METHOD *BIO_s_file_internal(void);
499BIO *BIO_new_file_internal(char *filename, char *mode);
500BIO *BIO_new_fp_internal(FILE *stream, int close_flag);
501# define BIO_s_file BIO_s_file_internal
502# define BIO_new_file BIO_new_file_internal
503# define BIO_new_fp BIO_new_fp_internal
504# else /* FP_API */
505BIO_METHOD *BIO_s_file(void );
506BIO *BIO_new_file(const char *filename, const char *mode);
507BIO *BIO_new_fp(FILE *stream, int close_flag);
508# define BIO_s_file_internal BIO_s_file
509# define BIO_new_file_internal BIO_new_file
510# define BIO_new_fp_internal BIO_s_file
511# endif /* FP_API */
512# endif
505BIO * BIO_new(BIO_METHOD *type);
506int BIO_set(BIO *a,BIO_METHOD *type);
507int BIO_free(BIO *a);
513BIO * BIO_new(BIO_METHOD *type);
514int BIO_set(BIO *a,BIO_METHOD *type);
515int BIO_free(BIO *a);
516void BIO_vfree(BIO *a);
508int BIO_read(BIO *b, void *data, int len);
509int BIO_gets(BIO *bp,char *buf, int size);
510int BIO_write(BIO *b, const void *data, int len);
511int BIO_puts(BIO *bp,const char *buf);
512long BIO_ctrl(BIO *bp,int cmd,long larg,void *parg);
517int BIO_read(BIO *b, void *data, int len);
518int BIO_gets(BIO *bp,char *buf, int size);
519int BIO_write(BIO *b, const void *data, int len);
520int BIO_puts(BIO *bp,const char *buf);
521long BIO_ctrl(BIO *bp,int cmd,long larg,void *parg);
513long BIO_callback_ctrl(BIO *bp,int cmd,void (*fp)());
522long BIO_callback_ctrl(BIO *b, int cmd, void (*fp)(struct bio_st *, int, const char *, int, long, long));
514char * BIO_ptr_ctrl(BIO *bp,int cmd,long larg);
515long BIO_int_ctrl(BIO *bp,int cmd,long larg,int iarg);
516BIO * BIO_push(BIO *b,BIO *append);
517BIO * BIO_pop(BIO *b);
518void BIO_free_all(BIO *a);
519BIO * BIO_find_type(BIO *b,int bio_type);
523char * BIO_ptr_ctrl(BIO *bp,int cmd,long larg);
524long BIO_int_ctrl(BIO *bp,int cmd,long larg,int iarg);
525BIO * BIO_push(BIO *b,BIO *append);
526BIO * BIO_pop(BIO *b);
527void BIO_free_all(BIO *a);
528BIO * BIO_find_type(BIO *b,int bio_type);
529BIO * BIO_next(BIO *b);
520BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
521int BIO_get_retry_reason(BIO *bio);
522BIO * BIO_dup_chain(BIO *in);
523
524int BIO_nread0(BIO *bio, char **buf);
525int BIO_nread(BIO *bio, char **buf, int num);
526int BIO_nwrite0(BIO *bio, char **buf);
527int BIO_nwrite(BIO *bio, char **buf, int num);

--- 12 unchanged lines hidden (view full) ---

540BIO_METHOD *BIO_s_connect(void);
541BIO_METHOD *BIO_s_accept(void);
542BIO_METHOD *BIO_s_fd(void);
543BIO_METHOD *BIO_s_log(void);
544BIO_METHOD *BIO_s_bio(void);
545BIO_METHOD *BIO_s_null(void);
546BIO_METHOD *BIO_f_null(void);
547BIO_METHOD *BIO_f_buffer(void);
530BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
531int BIO_get_retry_reason(BIO *bio);
532BIO * BIO_dup_chain(BIO *in);
533
534int BIO_nread0(BIO *bio, char **buf);
535int BIO_nread(BIO *bio, char **buf, int num);
536int BIO_nwrite0(BIO *bio, char **buf);
537int BIO_nwrite(BIO *bio, char **buf, int num);

--- 12 unchanged lines hidden (view full) ---

550BIO_METHOD *BIO_s_connect(void);
551BIO_METHOD *BIO_s_accept(void);
552BIO_METHOD *BIO_s_fd(void);
553BIO_METHOD *BIO_s_log(void);
554BIO_METHOD *BIO_s_bio(void);
555BIO_METHOD *BIO_s_null(void);
556BIO_METHOD *BIO_f_null(void);
557BIO_METHOD *BIO_f_buffer(void);
558#ifdef VMS
559BIO_METHOD *BIO_f_linebuffer(void);
560#endif
548BIO_METHOD *BIO_f_nbio_test(void);
549/* BIO_METHOD *BIO_f_ber(void); */
550
551int BIO_sock_should_retry(int i);
552int BIO_sock_non_fatal_error(int error);
553int BIO_fd_should_retry(int i);
554int BIO_fd_non_fatal_error(int error);
555int BIO_dump(BIO *b,const char *bytes,int len);
561BIO_METHOD *BIO_f_nbio_test(void);
562/* BIO_METHOD *BIO_f_ber(void); */
563
564int BIO_sock_should_retry(int i);
565int BIO_sock_non_fatal_error(int error);
566int BIO_fd_should_retry(int i);
567int BIO_fd_non_fatal_error(int error);
568int BIO_dump(BIO *b,const char *bytes,int len);
569int BIO_dump_indent(BIO *b,const char *bytes,int len,int indent);
556
557struct hostent *BIO_gethostbyname(const char *name);
558/* We might want a thread-safe interface too:
559 * struct hostent *BIO_gethostbyname_r(const char *name,
560 * struct hostent *result, void *buffer, size_t buflen);
561 * or something similar (caller allocates a struct hostent,
562 * pointed to by "result", and additional buffer space for the various
563 * substructures; if the buffer does not suffice, NULL is returned

--- 23 unchanged lines hidden (view full) ---

587 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL.
588 * Size 0 uses default value.
589 */
590
591void BIO_copy_next_retry(BIO *b);
592
593long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);
594
570
571struct hostent *BIO_gethostbyname(const char *name);
572/* We might want a thread-safe interface too:
573 * struct hostent *BIO_gethostbyname_r(const char *name,
574 * struct hostent *result, void *buffer, size_t buflen);
575 * or something similar (caller allocates a struct hostent,
576 * pointed to by "result", and additional buffer space for the various
577 * substructures; if the buffer does not suffice, NULL is returned

--- 23 unchanged lines hidden (view full) ---

601 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL.
602 * Size 0 uses default value.
603 */
604
605void BIO_copy_next_retry(BIO *b);
606
607long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);
608
595int BIO_printf(BIO *bio, ...);
609int BIO_printf(BIO *bio, const char *format, ...);
610int BIO_vprintf(BIO *bio, const char *format, va_list args);
611int BIO_snprintf(char *buf, size_t n, const char *format, ...);
612int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);
596
597/* BEGIN ERROR CODES */
598/* The following lines are auto generated by the script mkerr.pl. Any changes
599 * made after this point may be overwritten when the script is next run.
600 */
601
602/* Error codes for the BIO functions. */
603

--- 18 unchanged lines hidden (view full) ---

622#define BIO_F_BIO_PUTS 110
623#define BIO_F_BIO_READ 111
624#define BIO_F_BIO_SOCK_INIT 112
625#define BIO_F_BIO_WRITE 113
626#define BIO_F_BUFFER_CTRL 114
627#define BIO_F_CONN_CTRL 127
628#define BIO_F_CONN_STATE 115
629#define BIO_F_FILE_CTRL 116
613
614/* BEGIN ERROR CODES */
615/* The following lines are auto generated by the script mkerr.pl. Any changes
616 * made after this point may be overwritten when the script is next run.
617 */
618
619/* Error codes for the BIO functions. */
620

--- 18 unchanged lines hidden (view full) ---

639#define BIO_F_BIO_PUTS 110
640#define BIO_F_BIO_READ 111
641#define BIO_F_BIO_SOCK_INIT 112
642#define BIO_F_BIO_WRITE 113
643#define BIO_F_BUFFER_CTRL 114
644#define BIO_F_CONN_CTRL 127
645#define BIO_F_CONN_STATE 115
646#define BIO_F_FILE_CTRL 116
647#define BIO_F_LINEBUFFER_CTRL 129
648#define BIO_F_MEM_READ 128
630#define BIO_F_MEM_WRITE 117
631#define BIO_F_SSL_NEW 118
632#define BIO_F_WSASTARTUP 119
633
634/* Reason codes. */
635#define BIO_R_ACCEPT_ERROR 100
636#define BIO_R_BAD_FOPEN_MODE 101
637#define BIO_R_BAD_HOSTNAME_LOOKUP 102
638#define BIO_R_BROKEN_PIPE 124
639#define BIO_R_CONNECT_ERROR 103
649#define BIO_F_MEM_WRITE 117
650#define BIO_F_SSL_NEW 118
651#define BIO_F_WSASTARTUP 119
652
653/* Reason codes. */
654#define BIO_R_ACCEPT_ERROR 100
655#define BIO_R_BAD_FOPEN_MODE 101
656#define BIO_R_BAD_HOSTNAME_LOOKUP 102
657#define BIO_R_BROKEN_PIPE 124
658#define BIO_R_CONNECT_ERROR 103
659#define BIO_R_EOF_ON_MEMORY_BIO 127
640#define BIO_R_ERROR_SETTING_NBIO 104
641#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105
642#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106
643#define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107
644#define BIO_R_INVALID_ARGUMENT 125
645#define BIO_R_INVALID_IP_ADDRESS 108
646#define BIO_R_IN_USE 123
647#define BIO_R_KEEPALIVE 109

--- 20 unchanged lines hidden ---
660#define BIO_R_ERROR_SETTING_NBIO 104
661#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105
662#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106
663#define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107
664#define BIO_R_INVALID_ARGUMENT 125
665#define BIO_R_INVALID_IP_ADDRESS 108
666#define BIO_R_IN_USE 123
667#define BIO_R_KEEPALIVE 109

--- 20 unchanged lines hidden ---