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/txt_db | |
| 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/txt_db')
| -rw-r--r-- | src/lib/libcrypto/txt_db/Makefile.ssl | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/txt_db/txt_db.c | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/txt_db/txt_db.h | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/libcrypto/txt_db/Makefile.ssl b/src/lib/libcrypto/txt_db/Makefile.ssl index ee054e91f2..8af2fa4cd6 100644 --- a/src/lib/libcrypto/txt_db/Makefile.ssl +++ b/src/lib/libcrypto/txt_db/Makefile.ssl | |||
| @@ -11,7 +11,8 @@ 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: |
| @@ -79,10 +79,10 @@ clean: | |||
| 79 | 79 | ||
| 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 | txt_db.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | 82 | txt_db.o: ../../e_os.h ../../include/openssl/bio.h |
| 83 | txt_db.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h | 83 | txt_db.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h |
| 84 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 84 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 85 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 85 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
| 86 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 86 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
| 87 | txt_db.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | 87 | txt_db.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
| 88 | txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h | 88 | txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h txt_db.c |
diff --git a/src/lib/libcrypto/txt_db/txt_db.c b/src/lib/libcrypto/txt_db/txt_db.c index 3b04fe280c..e6334d6add 100644 --- a/src/lib/libcrypto/txt_db/txt_db.c +++ b/src/lib/libcrypto/txt_db/txt_db.c | |||
| @@ -155,7 +155,7 @@ TXT_DB *TXT_DB_read(BIO *in, int num) | |||
| 155 | *(p++)='\0'; | 155 | *(p++)='\0'; |
| 156 | if ((n != num) || (*f != '\0')) | 156 | if ((n != num) || (*f != '\0')) |
| 157 | { | 157 | { |
| 158 | #if !defined(NO_STDIO) && !defined(WIN16) /* temporaty fix :-( */ | 158 | #if !defined(OPENSSL_NO_STDIO) && !defined(OPENSSL_SYS_WIN16) /* temporaty fix :-( */ |
| 159 | fprintf(stderr,"wrong number of fields on line %ld (looking for field %d, got %d, '%s' left)\n",ln,num,n,f); | 159 | fprintf(stderr,"wrong number of fields on line %ld (looking for field %d, got %d, '%s' left)\n",ln,num,n,f); |
| 160 | #endif | 160 | #endif |
| 161 | er=2; | 161 | er=2; |
| @@ -164,7 +164,7 @@ TXT_DB *TXT_DB_read(BIO *in, int num) | |||
| 164 | pp[n]=p; | 164 | pp[n]=p; |
| 165 | if (!sk_push(ret->data,(char *)pp)) | 165 | if (!sk_push(ret->data,(char *)pp)) |
| 166 | { | 166 | { |
| 167 | #if !defined(NO_STDIO) && !defined(WIN16) /* temporaty fix :-( */ | 167 | #if !defined(OPENSSL_NO_STDIO) && !defined(OPENSSL_SYS_WIN16) /* temporaty fix :-( */ |
| 168 | fprintf(stderr,"failure in sk_push\n"); | 168 | fprintf(stderr,"failure in sk_push\n"); |
| 169 | #endif | 169 | #endif |
| 170 | er=2; | 170 | er=2; |
| @@ -176,7 +176,7 @@ err: | |||
| 176 | BUF_MEM_free(buf); | 176 | BUF_MEM_free(buf); |
| 177 | if (er) | 177 | if (er) |
| 178 | { | 178 | { |
| 179 | #if !defined(NO_STDIO) && !defined(WIN16) | 179 | #if !defined(OPENSSL_NO_STDIO) && !defined(OPENSSL_SYS_WIN16) |
| 180 | if (er == 1) fprintf(stderr,"OPENSSL_malloc failure\n"); | 180 | if (er == 1) fprintf(stderr,"OPENSSL_malloc failure\n"); |
| 181 | #endif | 181 | #endif |
| 182 | if (ret->data != NULL) sk_free(ret->data); | 182 | if (ret->data != NULL) sk_free(ret->data); |
| @@ -211,7 +211,7 @@ char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value) | |||
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(), | 213 | int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(), |
| 214 | unsigned long (*hash)(), int (*cmp)()) | 214 | LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp) |
| 215 | { | 215 | { |
| 216 | LHASH *idx; | 216 | LHASH *idx; |
| 217 | char *r; | 217 | char *r; |
diff --git a/src/lib/libcrypto/txt_db/txt_db.h b/src/lib/libcrypto/txt_db/txt_db.h index 342533d40d..563392aeff 100644 --- a/src/lib/libcrypto/txt_db/txt_db.h +++ b/src/lib/libcrypto/txt_db/txt_db.h | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | #ifndef HEADER_TXT_DB_H | 59 | #ifndef HEADER_TXT_DB_H |
| 60 | #define HEADER_TXT_DB_H | 60 | #define HEADER_TXT_DB_H |
| 61 | 61 | ||
| 62 | #ifndef NO_BIO | 62 | #ifndef OPENSSL_NO_BIO |
| 63 | #include <openssl/bio.h> | 63 | #include <openssl/bio.h> |
| 64 | #endif | 64 | #endif |
| 65 | #include <openssl/stack.h> | 65 | #include <openssl/stack.h> |
| @@ -88,7 +88,7 @@ typedef struct txt_db_st | |||
| 88 | char **arg_row; | 88 | char **arg_row; |
| 89 | } TXT_DB; | 89 | } TXT_DB; |
| 90 | 90 | ||
| 91 | #ifndef NO_BIO | 91 | #ifndef OPENSSL_NO_BIO |
| 92 | TXT_DB *TXT_DB_read(BIO *in, int num); | 92 | TXT_DB *TXT_DB_read(BIO *in, int num); |
| 93 | long TXT_DB_write(BIO *out, TXT_DB *db); | 93 | long TXT_DB_write(BIO *out, TXT_DB *db); |
| 94 | #else | 94 | #else |
| @@ -96,7 +96,7 @@ TXT_DB *TXT_DB_read(char *in, int num); | |||
| 96 | long TXT_DB_write(char *out, TXT_DB *db); | 96 | long TXT_DB_write(char *out, TXT_DB *db); |
| 97 | #endif | 97 | #endif |
| 98 | int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(), | 98 | int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(), |
| 99 | unsigned long (*hash)(),int (*cmp)()); | 99 | LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp); |
| 100 | void TXT_DB_free(TXT_DB *db); | 100 | void TXT_DB_free(TXT_DB *db); |
| 101 | char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value); | 101 | char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value); |
| 102 | int TXT_DB_insert(TXT_DB *db,char **value); | 102 | int TXT_DB_insert(TXT_DB *db,char **value); |
