diff options
Diffstat (limited to 'src/lib/libcrypto/txt_db/txt_db.h')
-rw-r--r-- | src/lib/libcrypto/txt_db/txt_db.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libcrypto/txt_db/txt_db.h b/src/lib/libcrypto/txt_db/txt_db.h index 58b9de1353..342533d40d 100644 --- a/src/lib/libcrypto/txt_db/txt_db.h +++ b/src/lib/libcrypto/txt_db/txt_db.h | |||
@@ -59,10 +59,9 @@ | |||
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 | #ifdef __cplusplus | 62 | #ifndef NO_BIO |
63 | extern "C" { | 63 | #include <openssl/bio.h> |
64 | #endif | 64 | #endif |
65 | |||
66 | #include <openssl/stack.h> | 65 | #include <openssl/stack.h> |
67 | #include <openssl/lhash.h> | 66 | #include <openssl/lhash.h> |
68 | 67 | ||
@@ -73,6 +72,10 @@ extern "C" { | |||
73 | #define DB_ERROR_NO_INDEX 4 | 72 | #define DB_ERROR_NO_INDEX 4 |
74 | #define DB_ERROR_INSERT_INDEX_CLASH 5 | 73 | #define DB_ERROR_INSERT_INDEX_CLASH 5 |
75 | 74 | ||
75 | #ifdef __cplusplus | ||
76 | extern "C" { | ||
77 | #endif | ||
78 | |||
76 | typedef struct txt_db_st | 79 | typedef struct txt_db_st |
77 | { | 80 | { |
78 | int num_fields; | 81 | int num_fields; |
@@ -85,7 +88,7 @@ typedef struct txt_db_st | |||
85 | char **arg_row; | 88 | char **arg_row; |
86 | } TXT_DB; | 89 | } TXT_DB; |
87 | 90 | ||
88 | #ifdef HEADER_BIO_H | 91 | #ifndef NO_BIO |
89 | TXT_DB *TXT_DB_read(BIO *in, int num); | 92 | TXT_DB *TXT_DB_read(BIO *in, int num); |
90 | long TXT_DB_write(BIO *out, TXT_DB *db); | 93 | long TXT_DB_write(BIO *out, TXT_DB *db); |
91 | #else | 94 | #else |