Home
last modified time | relevance | path

Searched refs:serialfile (Results 1 – 4 of 4) sorted by relevance

/external/openssl/apps/
Dapps.c1580 BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai) in IMPLEMENT_LHASH_HASH_FN()
1596 if (BIO_read_filename(in,serialfile) <= 0) in IMPLEMENT_LHASH_HASH_FN()
1600 perror(serialfile); in IMPLEMENT_LHASH_HASH_FN()
1615 serialfile); in IMPLEMENT_LHASH_HASH_FN()
1637 int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai) in save_serial() argument
1646 j = strlen(serialfile); in save_serial()
1648 j = strlen(serialfile) + strlen(suffix) + 1; in save_serial()
1656 BUF_strlcpy(buf[0], serialfile, BSIZE); in save_serial()
1660 j = BIO_snprintf(buf[0], sizeof buf[0], "%s.%s", serialfile, suffix); in save_serial()
1662 j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", serialfile, suffix); in save_serial()
[all …]
Dapps.h297 BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai);
298 int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai);
299 int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix);
Dx509.c1095 static ASN1_INTEGER *x509_load_serial(char *CAfile, char *serialfile, int create) in x509_load_serial() argument
1102 len = ((serialfile == NULL) in x509_load_serial()
1104 :(strlen(serialfile)))+1; in x509_load_serial()
1107 if (serialfile == NULL) in x509_load_serial()
1119 BUF_strlcpy(buf,serialfile,len); in x509_load_serial()
1136 X509 *x, X509 *xca, EVP_PKEY *pkey, char *serialfile, int create, in x509_certify() argument
1154 else if (!(bs = x509_load_serial(CAfile, serialfile, create))) in x509_certify()
Dca.c276 char *serialfile=NULL; in MAIN() local
1068 if ((serialfile=NCONF_get_string(conf,section,ENV_SERIAL)) in MAIN()
1142 if ((serial=load_serial(serialfile, create_ser, NULL)) == NULL) in MAIN()
1281 if (!save_serial(serialfile,"new",serial,NULL)) goto err; in MAIN()
1345 if (!rotate_serial(serialfile,"new","old")) goto err; in MAIN()