summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/comp')
-rw-r--r--src/lib/libcrypto/comp/Makefile108
-rw-r--r--src/lib/libcrypto/comp/c_rle.c3
2 files changed, 110 insertions, 1 deletions
diff --git a/src/lib/libcrypto/comp/Makefile b/src/lib/libcrypto/comp/Makefile
new file mode 100644
index 0000000000..efda832dce
--- /dev/null
+++ b/src/lib/libcrypto/comp/Makefile
@@ -0,0 +1,108 @@
1#
2# OpenSSL/crypto/comp/Makefile
3#
4
5DIR= comp
6TOP= ../..
7CC= cc
8INCLUDES= -I.. -I$(TOP) -I../../include
9CFLAG=-g
10MAKEFILE= Makefile
11AR= ar r
12
13CFLAGS= $(INCLUDES) $(CFLAG)
14
15GENERAL=Makefile
16TEST=
17APPS=
18
19LIB=$(TOP)/libcrypto.a
20LIBSRC= comp_lib.c comp_err.c \
21 c_rle.c c_zlib.c
22
23LIBOBJ= comp_lib.o comp_err.o \
24 c_rle.o c_zlib.o
25
26SRC= $(LIBSRC)
27
28EXHEADER= comp.h
29HEADER= $(EXHEADER)
30
31ALL= $(GENERAL) $(SRC) $(HEADER)
32
33top:
34 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36all: lib
37
38lib: $(LIBOBJ)
39 $(AR) $(LIB) $(LIBOBJ)
40 $(RANLIB) $(LIB) || echo Never mind.
41 @touch lib
42
43files:
44 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
45
46links:
47 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
48 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
49 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
50
51install:
52 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
53 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
54 do \
55 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
56 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
57 done;
58
59tags:
60 ctags $(SRC)
61
62tests:
63
64lint:
65 lint -DLINT $(INCLUDES) $(SRC)>fluff
66
67depend:
68 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
69 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
70
71dclean:
72 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73 mv -f Makefile.new $(MAKEFILE)
74
75clean:
76 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77
78# DO NOT DELETE THIS LINE -- make depend depends on it.
79
80c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
81c_rle.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
82c_rle.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
83c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
84c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85c_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86c_rle.o: ../../include/openssl/symhacks.h c_rle.c
87c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
88c_zlib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
89c_zlib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
90c_zlib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
91c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
92c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
93c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
94c_zlib.o: ../../include/openssl/symhacks.h c_zlib.c
95comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h
96comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
97comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
98comp_err.o: ../../include/openssl/opensslconf.h
99comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
100comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
101comp_err.o: ../../include/openssl/symhacks.h comp_err.c
102comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
103comp_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
104comp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
105comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
106comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c
diff --git a/src/lib/libcrypto/comp/c_rle.c b/src/lib/libcrypto/comp/c_rle.c
index 18bceae51e..efd366fa22 100644
--- a/src/lib/libcrypto/comp/c_rle.c
+++ b/src/lib/libcrypto/comp/c_rle.c
@@ -46,7 +46,7 @@ static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
46 { 46 {
47 int i; 47 int i;
48 48
49 if (ilen == 0 || olen < (ilen-1)) 49 if (olen < (ilen-1))
50 { 50 {
51 /* ZZZZZZZZZZZZZZZZZZZZZZ */ 51 /* ZZZZZZZZZZZZZZZZZZZZZZ */
52 return(-1); 52 return(-1);
@@ -59,3 +59,4 @@ static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
59 } 59 }
60 return(ilen-1); 60 return(ilen-1);
61 } 61 }
62