diff options
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r-- | src/lib/libcrypto/bio/Makefile.ssl | 92 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio.err | 46 |
2 files changed, 138 insertions, 0 deletions
diff --git a/src/lib/libcrypto/bio/Makefile.ssl b/src/lib/libcrypto/bio/Makefile.ssl new file mode 100644 index 0000000000..42e11e1c94 --- /dev/null +++ b/src/lib/libcrypto/bio/Makefile.ssl | |||
@@ -0,0 +1,92 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/bio/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= bio | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALLTOP=/usr/local/ssl | ||
11 | MAKE= make -f Makefile.ssl | ||
12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
13 | MAKEFILE= Makefile.ssl | ||
14 | AR= ar r | ||
15 | |||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
17 | |||
18 | ERR=bio | ||
19 | ERRC=bio_err | ||
20 | GENERAL=Makefile | ||
21 | TEST= | ||
22 | APPS= | ||
23 | |||
24 | LIB=$(TOP)/libcrypto.a | ||
25 | LIBSRC= bio_lib.c bio_cb.c $(ERRC).c \ | ||
26 | bss_mem.c bss_null.c bss_fd.c \ | ||
27 | bss_file.c bss_sock.c bss_conn.c \ | ||
28 | bf_null.c bf_buff.c b_print.c b_dump.c \ | ||
29 | b_sock.c bss_acpt.c bf_nbio.c | ||
30 | LIBOBJ= bio_lib.o bio_cb.o $(ERRC).o \ | ||
31 | bss_mem.o bss_null.o bss_fd.o \ | ||
32 | bss_file.o bss_sock.o bss_conn.o \ | ||
33 | bf_null.o bf_buff.o b_print.o b_dump.o \ | ||
34 | b_sock.o bss_acpt.o bf_nbio.o | ||
35 | |||
36 | SRC= $(LIBSRC) | ||
37 | |||
38 | EXHEADER= bio.h bss_file.c | ||
39 | HEADER= $(EXHEADER) | ||
40 | |||
41 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
42 | |||
43 | top: | ||
44 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
45 | |||
46 | all: lib | ||
47 | |||
48 | lib: $(LIBOBJ) | ||
49 | $(AR) $(LIB) $(LIBOBJ) | ||
50 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
51 | @touch lib | ||
52 | |||
53 | files: | ||
54 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
55 | |||
56 | links: | ||
57 | /bin/rm -f Makefile | ||
58 | $(TOP)/util/point.sh Makefile.ssl Makefile; | ||
59 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
60 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
61 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
62 | |||
63 | install: | ||
64 | @for i in $(EXHEADER) bss_file.c ; \ | ||
65 | do \ | ||
66 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
67 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
68 | done; | ||
69 | |||
70 | tags: | ||
71 | ctags $(SRC) | ||
72 | |||
73 | tests: | ||
74 | |||
75 | lint: | ||
76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
77 | |||
78 | depend: | ||
79 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
80 | |||
81 | dclean: | ||
82 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
83 | mv -f Makefile.new $(MAKEFILE) | ||
84 | |||
85 | clean: | ||
86 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
87 | |||
88 | errors: | ||
89 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
90 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
91 | |||
92 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
diff --git a/src/lib/libcrypto/bio/bio.err b/src/lib/libcrypto/bio/bio.err new file mode 100644 index 0000000000..6e2f2b63ca --- /dev/null +++ b/src/lib/libcrypto/bio/bio.err | |||
@@ -0,0 +1,46 @@ | |||
1 | /* Error codes for the BIO functions. */ | ||
2 | |||
3 | /* Function codes. */ | ||
4 | #define BIO_F_ACPT_STATE 100 | ||
5 | #define BIO_F_BIO_ACCEPT 101 | ||
6 | #define BIO_F_BIO_CTRL 102 | ||
7 | #define BIO_F_BIO_GETS 103 | ||
8 | #define BIO_F_BIO_GET_ACCEPT_SOCKET 104 | ||
9 | #define BIO_F_BIO_GET_HOST_IP 105 | ||
10 | #define BIO_F_BIO_GET_PORT 106 | ||
11 | #define BIO_F_BIO_NEW 107 | ||
12 | #define BIO_F_BIO_NEW_FILE 108 | ||
13 | #define BIO_F_BIO_PUTS 109 | ||
14 | #define BIO_F_BIO_READ 110 | ||
15 | #define BIO_F_BIO_SOCK_INIT 111 | ||
16 | #define BIO_F_BIO_WRITE 112 | ||
17 | #define BIO_F_BUFFER_CTRL 113 | ||
18 | #define BIO_F_CONN_STATE 114 | ||
19 | #define BIO_F_FILE_CTRL 115 | ||
20 | #define BIO_F_MEM_WRITE 116 | ||
21 | #define BIO_F_SSL_NEW 117 | ||
22 | #define BIO_F_WSASTARTUP 118 | ||
23 | |||
24 | /* Reason codes. */ | ||
25 | #define BIO_R_ACCEPT_ERROR 100 | ||
26 | #define BIO_R_BAD_FOPEN_MODE 101 | ||
27 | #define BIO_R_BAD_HOSTNAME_LOOKUP 102 | ||
28 | #define BIO_R_CONNECT_ERROR 103 | ||
29 | #define BIO_R_ERROR_SETTING_NBIO 104 | ||
30 | #define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105 | ||
31 | #define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106 | ||
32 | #define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107 | ||
33 | #define BIO_R_INVALID_IP_ADDRESS 108 | ||
34 | #define BIO_R_KEEPALIVE 109 | ||
35 | #define BIO_R_NBIO_CONNECT_ERROR 110 | ||
36 | #define BIO_R_NO_ACCEPT_PORT_SPECIFIED 111 | ||
37 | #define BIO_R_NO_HOSTHNAME_SPECIFIED 112 | ||
38 | #define BIO_R_NO_PORT_DEFINED 113 | ||
39 | #define BIO_R_NO_PORT_SPECIFIED 114 | ||
40 | #define BIO_R_NULL_PARAMETER 115 | ||
41 | #define BIO_R_UNABLE_TO_BIND_SOCKET 116 | ||
42 | #define BIO_R_UNABLE_TO_CREATE_SOCKET 117 | ||
43 | #define BIO_R_UNABLE_TO_LISTEN_SOCKET 118 | ||
44 | #define BIO_R_UNINITALISED 119 | ||
45 | #define BIO_R_UNSUPPORTED_METHOD 120 | ||
46 | #define BIO_R_WSASTARTUP 121 | ||