summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/apps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/apps.h')
-rw-r--r--src/lib/libssl/src/apps/apps.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/lib/libssl/src/apps/apps.h b/src/lib/libssl/src/apps/apps.h
index c36b9d2566..8a9c4ab0a0 100644
--- a/src/lib/libssl/src/apps/apps.h
+++ b/src/lib/libssl/src/apps/apps.h
@@ -287,7 +287,38 @@ char *make_config_name(void);
287/* Functions defined in ca.c and also used in ocsp.c */ 287/* Functions defined in ca.c and also used in ocsp.c */
288int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, 288int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold,
289 ASN1_GENERALIZEDTIME **pinvtm, char *str); 289 ASN1_GENERALIZEDTIME **pinvtm, char *str);
290int make_serial_index(TXT_DB *db); 290
291#define DB_type 0
292#define DB_exp_date 1
293#define DB_rev_date 2
294#define DB_serial 3 /* index - unique */
295#define DB_file 4
296#define DB_name 5 /* index - unique when active and not disabled */
297#define DB_NUMBER 6
298
299#define DB_TYPE_REV 'R'
300#define DB_TYPE_EXP 'E'
301#define DB_TYPE_VAL 'V'
302
303typedef struct db_attr_st
304 {
305 int unique_subject;
306 } DB_ATTR;
307typedef struct ca_db_st
308 {
309 DB_ATTR attributes;
310 TXT_DB *db;
311 } CA_DB;
312
313BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai);
314int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai);
315int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix);
316CA_DB *load_index(char *dbfile, DB_ATTR *dbattr);
317int index_index(CA_DB *db);
318int save_index(char *dbfile, char *suffix, CA_DB *db);
319int rotate_index(char *dbfile, char *new_suffix, char *old_suffix);
320void free_index(CA_DB *db);
321int index_name_cmp(const char **a, const char **b);
291 322
292X509_NAME *do_subject(char *str, long chtype); 323X509_NAME *do_subject(char *str, long chtype);
293 324