Searched refs:serialfile (Results 1 – 5 of 5) sorted by relevance
/third_party/openssl/apps/ |
D | ts.c | 60 static ASN1_INTEGER *next_serial(const char *serialfile); 61 static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial); 777 static ASN1_INTEGER *next_serial(const char *serialfile) in next_serial() argument 787 if ((in = BIO_new_file(serialfile, "r")) == NULL) { in next_serial() 790 "reading, using serial number: 1\n", serialfile); in next_serial() 797 serialfile); in next_serial() 821 static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial) in save_ts_serial() argument 826 if ((out = BIO_new_file(serialfile, "w")) == NULL) in save_ts_serial() 836 serialfile); in save_ts_serial()
|
D | x509.c | 37 const char *serialfile, int create); 1089 const char *serialfile, int create) in x509_load_serial() argument 1096 if (serialfile == NULL) { in x509_load_serial() 1103 serialfile = buf; in x509_load_serial() 1107 serial = load_serial(serialfile, &file_exists, create || defaultfile, NULL); in x509_load_serial() 1117 save_serial(serialfile, NULL, serial, &bs); in x509_load_serial()
|
D | ca.c | 284 const char *serialfile = NULL, *subj = NULL; in ca_main() local 842 serialfile = lookup_conf(conf, section, ENV_SERIAL); in ca_main() 843 if (serialfile == NULL) in ca_main() 925 serial = load_serial(serialfile, NULL, create_ser, NULL); in ca_main() 1063 if (serialfile != NULL in ca_main() 1064 && !save_serial(serialfile, "new", serial, NULL)) in ca_main() 1131 if (serialfile != NULL in ca_main() 1132 && !rotate_serial(serialfile, "new", "old")) in ca_main()
|
/third_party/openssl/apps/lib/ |
D | apps.c | 1459 BIGNUM *load_serial(const char *serialfile, int *exists, int create, in IMPLEMENT_LHASH_HASH_FN() 1471 in = BIO_new_file(serialfile, "r"); in IMPLEMENT_LHASH_HASH_FN() 1476 perror(serialfile); in IMPLEMENT_LHASH_HASH_FN() 1485 serialfile); in IMPLEMENT_LHASH_HASH_FN() 1492 serialfile); in IMPLEMENT_LHASH_HASH_FN() 1514 int save_serial(const char *serialfile, const char *suffix, const BIGNUM *serial, in save_serial() argument 1524 j = strlen(serialfile); in save_serial() 1526 j = strlen(serialfile) + strlen(suffix) + 1; in save_serial() 1533 OPENSSL_strlcpy(buf[0], serialfile, BSIZE); in save_serial() 1536 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", serialfile, suffix); in save_serial() [all …]
|
/third_party/openssl/apps/include/ |
D | apps.h | 225 BIGNUM *load_serial(const char *serialfile, int *exists, int create, 227 int save_serial(const char *serialfile, const char *suffix, 229 int rotate_serial(const char *serialfile, const char *new_suffix,
|