apps.h (111147) | apps.h (127128) |
---|---|
1/* apps/apps.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 273 unchanged lines hidden (view full) --- 282#endif 283 284int load_config(BIO *err, CONF *cnf); 285char *make_config_name(void); 286 287/* Functions defined in ca.c and also used in ocsp.c */ 288int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, 289 ASN1_GENERALIZEDTIME **pinvtm, char *str); | 1/* apps/apps.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 273 unchanged lines hidden (view full) --- 282#endif 283 284int load_config(BIO *err, CONF *cnf); 285char *make_config_name(void); 286 287/* Functions defined in ca.c and also used in ocsp.c */ 288int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, 289 ASN1_GENERALIZEDTIME **pinvtm, char *str); |
290int make_serial_index(TXT_DB *db); | |
291 | 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); 322 |
|
292X509_NAME *do_subject(char *str, long chtype); 293 294#define FORMAT_UNDEF 0 295#define FORMAT_ASN1 1 296#define FORMAT_TEXT 2 297#define FORMAT_PEM 3 298#define FORMAT_NETSCAPE 4 299#define FORMAT_PKCS12 5 --- 14 unchanged lines hidden --- | 323X509_NAME *do_subject(char *str, long chtype); 324 325#define FORMAT_UNDEF 0 326#define FORMAT_ASN1 1 327#define FORMAT_TEXT 2 328#define FORMAT_PEM 3 329#define FORMAT_NETSCAPE 4 330#define FORMAT_PKCS12 5 --- 14 unchanged lines hidden --- |