diff options
| author | beck <> | 2002-05-15 02:29:21 +0000 |
|---|---|---|
| committer | beck <> | 2002-05-15 02:29:21 +0000 |
| commit | b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch) | |
| tree | fa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libcrypto/buffer | |
| parent | e471e1ea98d673597b182ea85f29e30c97cd08b5 (diff) | |
| download | openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2 openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip | |
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libcrypto/buffer')
| -rw-r--r-- | src/lib/libcrypto/buffer/Makefile.ssl | 21 | ||||
| -rw-r--r-- | src/lib/libcrypto/buffer/buf_err.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/buffer/buffer.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/buffer/buffer.h | 4 |
4 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/libcrypto/buffer/Makefile.ssl b/src/lib/libcrypto/buffer/Makefile.ssl index a64681fd22..b8b6439503 100644 --- a/src/lib/libcrypto/buffer/Makefile.ssl +++ b/src/lib/libcrypto/buffer/Makefile.ssl | |||
| @@ -5,13 +5,14 @@ | |||
| 5 | DIR= buffer | 5 | DIR= buffer |
| 6 | TOP= ../.. | 6 | TOP= ../.. |
| 7 | CC= cc | 7 | CC= cc |
| 8 | INCLUDES= -I.. -I../../include | 8 | INCLUDES= -I.. -I$(TOP) -I../../include |
| 9 | CFLAG=-g | 9 | CFLAG=-g |
| 10 | INSTALL_PREFIX= | 10 | INSTALL_PREFIX= |
| 11 | OPENSSLDIR= /usr/local/ssl | 11 | OPENSSLDIR= /usr/local/ssl |
| 12 | INSTALLTOP=/usr/local/ssl | 12 | INSTALLTOP=/usr/local/ssl |
| 13 | MAKE= make -f Makefile.ssl | 13 | MAKE= make -f Makefile.ssl |
| 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) | 14 | MAKEDEPPROG= makedepend |
| 15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
| 15 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
| 16 | AR= ar r | 17 | AR= ar r |
| 17 | 18 | ||
| @@ -39,8 +40,7 @@ all: lib | |||
| 39 | 40 | ||
| 40 | lib: $(LIBOBJ) | 41 | lib: $(LIBOBJ) |
| 41 | $(AR) $(LIB) $(LIBOBJ) | 42 | $(AR) $(LIB) $(LIBOBJ) |
| 42 | @echo You may get an error following this line. Please ignore. | 43 | $(RANLIB) $(LIB) || echo Never mind. |
| 43 | - $(RANLIB) $(LIB) | ||
| 44 | @touch lib | 44 | @touch lib |
| 45 | 45 | ||
| 46 | files: | 46 | files: |
| @@ -80,14 +80,15 @@ clean: | |||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 81 | 81 | ||
| 82 | buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | 82 | buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h |
| 83 | buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/err.h | 83 | buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h |
| 84 | buf_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslv.h | 84 | buf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h |
| 85 | buf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 85 | buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | 86 | buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
| 86 | buf_err.o: ../../include/openssl/symhacks.h | 87 | buf_err.o: ../../include/openssl/symhacks.h buf_err.c |
| 87 | buffer.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | 88 | buffer.o: ../../e_os.h ../../include/openssl/bio.h |
| 88 | buffer.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h | 89 | buffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
| 89 | buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 90 | buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 90 | buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 91 | buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
| 91 | buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 92 | buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
| 92 | buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 93 | buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 93 | buffer.o: ../cryptlib.h | 94 | buffer.o: ../cryptlib.h buffer.c |
diff --git a/src/lib/libcrypto/buffer/buf_err.c b/src/lib/libcrypto/buffer/buf_err.c index 2f971a5f38..5eee653e14 100644 --- a/src/lib/libcrypto/buffer/buf_err.c +++ b/src/lib/libcrypto/buffer/buf_err.c | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
| 64 | 64 | ||
| 65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
| 66 | #ifndef NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
| 67 | static ERR_STRING_DATA BUF_str_functs[]= | 67 | static ERR_STRING_DATA BUF_str_functs[]= |
| 68 | { | 68 | { |
| 69 | {ERR_PACK(0,BUF_F_BUF_MEM_GROW,0), "BUF_MEM_grow"}, | 69 | {ERR_PACK(0,BUF_F_BUF_MEM_GROW,0), "BUF_MEM_grow"}, |
| @@ -86,7 +86,7 @@ void ERR_load_BUF_strings(void) | |||
| 86 | if (init) | 86 | if (init) |
| 87 | { | 87 | { |
| 88 | init=0; | 88 | init=0; |
| 89 | #ifndef NO_ERR | 89 | #ifndef OPENSSL_NO_ERR |
| 90 | ERR_load_strings(ERR_LIB_BUF,BUF_str_functs); | 90 | ERR_load_strings(ERR_LIB_BUF,BUF_str_functs); |
| 91 | ERR_load_strings(ERR_LIB_BUF,BUF_str_reasons); | 91 | ERR_load_strings(ERR_LIB_BUF,BUF_str_reasons); |
| 92 | #endif | 92 | #endif |
diff --git a/src/lib/libcrypto/buffer/buffer.c b/src/lib/libcrypto/buffer/buffer.c index b76ff3ad7a..9299baba9e 100644 --- a/src/lib/libcrypto/buffer/buffer.c +++ b/src/lib/libcrypto/buffer/buffer.c | |||
| @@ -118,8 +118,9 @@ int BUF_MEM_grow(BUF_MEM *str, int len) | |||
| 118 | else | 118 | else |
| 119 | { | 119 | { |
| 120 | str->data=ret; | 120 | str->data=ret; |
| 121 | str->length=len; | ||
| 122 | str->max=n; | 121 | str->max=n; |
| 122 | memset(&str->data[str->length],0,len-str->length); | ||
| 123 | str->length=len; | ||
| 123 | } | 124 | } |
| 124 | return(len); | 125 | return(len); |
| 125 | } | 126 | } |
diff --git a/src/lib/libcrypto/buffer/buffer.h b/src/lib/libcrypto/buffer/buffer.h index bff26bf391..11e2d0359a 100644 --- a/src/lib/libcrypto/buffer/buffer.h +++ b/src/lib/libcrypto/buffer/buffer.h | |||
| @@ -75,12 +75,11 @@ void BUF_MEM_free(BUF_MEM *a); | |||
| 75 | int BUF_MEM_grow(BUF_MEM *str, int len); | 75 | int BUF_MEM_grow(BUF_MEM *str, int len); |
| 76 | char * BUF_strdup(const char *str); | 76 | char * BUF_strdup(const char *str); |
| 77 | 77 | ||
| 78 | void ERR_load_BUF_strings(void ); | ||
| 79 | |||
| 80 | /* BEGIN ERROR CODES */ | 78 | /* BEGIN ERROR CODES */ |
| 81 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 79 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 82 | * made after this point may be overwritten when the script is next run. | 80 | * made after this point may be overwritten when the script is next run. |
| 83 | */ | 81 | */ |
| 82 | void ERR_load_BUF_strings(void); | ||
| 84 | 83 | ||
| 85 | /* Error codes for the BUF functions. */ | 84 | /* Error codes for the BUF functions. */ |
| 86 | 85 | ||
| @@ -95,4 +94,3 @@ void ERR_load_BUF_strings(void ); | |||
| 95 | } | 94 | } |
| 96 | #endif | 95 | #endif |
| 97 | #endif | 96 | #endif |
| 98 | |||
