diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-03-05 14:40:02 -0500 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-03-07 11:03:01 -0500 |
commit | c7d5ea2670c2f2ce855b099a14ca2c218661ad3f (patch) | |
tree | 425e06b49ad9e7494aa2077c4e29a9625647f963 /apps/apps.h | |
parent | 61ab6919183fe804f3ed5cf26fcc121a4ecbb6af (diff) |
Prepare to detect index changes in OCSP responder.
Retain open file handle and previous stat data for the CA index
file, enabling detection and index reload (upcoming commit).
Check requirements before entering accept loop.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h index 3086f09f8c..5333c24767 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -14,6 +14,14 @@ # include "internal/nelem.h" # include <assert.h> +# ifndef NO_SYS_TYPES_H +# include <sys/types.h> +# endif +# ifndef OPENSSL_NO_POSIX_IO +# include <sys/stat.h> +# include <fcntl.h> +# endif + # include <openssl/e_os2.h> # include <openssl/ossl_typ.h> # include <openssl/bio.h> @@ -509,6 +517,10 @@ typedef struct db_attr_st { typedef struct ca_db_st { DB_ATTR attributes; TXT_DB *db; + char *dbfname; +# ifndef OPENSSL_NO_POSIX_IO + struct stat dbst; +# endif } CA_DB; void* app_malloc(int sz, const char *what); |