diff options
| author | beck <> | 2000-03-19 11:13:58 +0000 |
|---|---|---|
| committer | beck <> | 2000-03-19 11:13:58 +0000 |
| commit | 796d609550df3a33fc11468741c5d2f6d3df4c11 (patch) | |
| tree | 6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/txt_db | |
| parent | 5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff) | |
| download | openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2 openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip | |
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
Diffstat (limited to 'src/lib/libcrypto/txt_db')
| -rw-r--r-- | src/lib/libcrypto/txt_db/Makefile.ssl | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/txt_db/txt_db.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libcrypto/txt_db/Makefile.ssl b/src/lib/libcrypto/txt_db/Makefile.ssl index 02b863bf89..a631dce6f2 100644 --- a/src/lib/libcrypto/txt_db/Makefile.ssl +++ b/src/lib/libcrypto/txt_db/Makefile.ssl | |||
| @@ -82,5 +82,6 @@ txt_db.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | |||
| 82 | txt_db.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h | 82 | txt_db.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h |
| 83 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 83 | txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
| 84 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | 84 | txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h |
| 85 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h | 85 | txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
| 86 | txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h | 86 | txt_db.o: ../../include/openssl/stack.h ../../include/openssl/txt_db.h |
| 87 | txt_db.o: ../cryptlib.h | ||
diff --git a/src/lib/libcrypto/txt_db/txt_db.c b/src/lib/libcrypto/txt_db/txt_db.c index 9a9fa5ce55..33acc81f3f 100644 --- a/src/lib/libcrypto/txt_db/txt_db.c +++ b/src/lib/libcrypto/txt_db/txt_db.c | |||
| @@ -181,7 +181,7 @@ err: | |||
| 181 | #endif | 181 | #endif |
| 182 | if (ret->data != NULL) sk_free(ret->data); | 182 | if (ret->data != NULL) sk_free(ret->data); |
| 183 | if (ret->index != NULL) Free(ret->index); | 183 | if (ret->index != NULL) Free(ret->index); |
| 184 | if (ret->qual != NULL) Free((char *)ret->qual); | 184 | if (ret->qual != NULL) Free(ret->qual); |
| 185 | if (ret != NULL) Free(ret); | 185 | if (ret != NULL) Free(ret); |
| 186 | return(NULL); | 186 | return(NULL); |
| 187 | } | 187 | } |
| @@ -205,7 +205,7 @@ char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value) | |||
| 205 | db->error=DB_ERROR_NO_INDEX; | 205 | db->error=DB_ERROR_NO_INDEX; |
| 206 | return(NULL); | 206 | return(NULL); |
| 207 | } | 207 | } |
| 208 | ret=(char **)lh_retrieve(lh,(char *)value); | 208 | ret=(char **)lh_retrieve(lh,value); |
| 209 | db->error=DB_ERROR_OK; | 209 | db->error=DB_ERROR_OK; |
| 210 | return(ret); | 210 | return(ret); |
| 211 | } | 211 | } |
| @@ -306,7 +306,7 @@ int TXT_DB_insert(TXT_DB *db, char **row) | |||
| 306 | { | 306 | { |
| 307 | if ((db->qual[i] != NULL) && | 307 | if ((db->qual[i] != NULL) && |
| 308 | (db->qual[i](row) == 0)) continue; | 308 | (db->qual[i](row) == 0)) continue; |
| 309 | r=(char **)lh_retrieve(db->index[i],(char *)row); | 309 | r=(char **)lh_retrieve(db->index[i],row); |
| 310 | if (r != NULL) | 310 | if (r != NULL) |
| 311 | { | 311 | { |
| 312 | db->error=DB_ERROR_INDEX_CLASH; | 312 | db->error=DB_ERROR_INDEX_CLASH; |
| @@ -329,7 +329,7 @@ int TXT_DB_insert(TXT_DB *db, char **row) | |||
| 329 | { | 329 | { |
| 330 | if ((db->qual[i] != NULL) && | 330 | if ((db->qual[i] != NULL) && |
| 331 | (db->qual[i](row) == 0)) continue; | 331 | (db->qual[i](row) == 0)) continue; |
| 332 | lh_insert(db->index[i],(char *)row); | 332 | lh_insert(db->index[i],row); |
| 333 | } | 333 | } |
| 334 | } | 334 | } |
| 335 | return(1); | 335 | return(1); |
