diff options
Diffstat (limited to 'src/lib/libssl/src/apps/apps.h')
| -rw-r--r-- | src/lib/libssl/src/apps/apps.h | 33 |
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 */ |
| 288 | int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, | 288 | int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, |
| 289 | ASN1_GENERALIZEDTIME **pinvtm, char *str); | 289 | ASN1_GENERALIZEDTIME **pinvtm, char *str); |
| 290 | int 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 | |||
| 303 | typedef struct db_attr_st | ||
| 304 | { | ||
| 305 | int unique_subject; | ||
| 306 | } DB_ATTR; | ||
| 307 | typedef struct ca_db_st | ||
| 308 | { | ||
| 309 | DB_ATTR attributes; | ||
| 310 | TXT_DB *db; | ||
| 311 | } CA_DB; | ||
| 312 | |||
| 313 | BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai); | ||
| 314 | int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai); | ||
| 315 | int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix); | ||
| 316 | CA_DB *load_index(char *dbfile, DB_ATTR *dbattr); | ||
| 317 | int index_index(CA_DB *db); | ||
| 318 | int save_index(char *dbfile, char *suffix, CA_DB *db); | ||
| 319 | int rotate_index(char *dbfile, char *new_suffix, char *old_suffix); | ||
| 320 | void free_index(CA_DB *db); | ||
| 321 | int index_name_cmp(const char **a, const char **b); | ||
| 291 | 322 | ||
| 292 | X509_NAME *do_subject(char *str, long chtype); | 323 | X509_NAME *do_subject(char *str, long chtype); |
| 293 | 324 | ||
