diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-04-18 19:52:26 -0400 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-04-18 22:29:35 -0400 |
commit | a4107d73d597a6f8754f7cf5c8c53d2097bea652 (patch) | |
tree | 79b867ef178dd0e835a34520ee2d51f5b7dda96c /apps/apps.c | |
parent | cb1b2cafe11f2008b0acc91726a6a6760f16fe28 (diff) |
Add missing index_index() when reloading OCSP responder
Also, future-proof index_index() return codes by requiring success
to return a positive value.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index 5a32dc0a02..6ae85233cc 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1597,6 +1597,9 @@ CA_DB *load_index(const char *dbfile, DB_ATTR *db_attr) return retdb; } +/* + * Returns > 0 on success, <= 0 on error + */ int index_index(CA_DB *db) { if (!TXT_DB_create_index(db->db, DB_serial, NULL, |