Home
last modified time | relevance | path

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

/external/openssl/apps/
Dapps.c1464 BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai) in IMPLEMENT_LHASH_HASH_FN()
1480 if (BIO_read_filename(in,serialfile) <= 0) in IMPLEMENT_LHASH_HASH_FN()
1484 perror(serialfile); in IMPLEMENT_LHASH_HASH_FN()
1499 serialfile); in IMPLEMENT_LHASH_HASH_FN()
1521 int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai) in save_serial() argument
1530 j = strlen(serialfile); in save_serial()
1532 j = strlen(serialfile) + strlen(suffix) + 1; in save_serial()
1540 BUF_strlcpy(buf[0], serialfile, BSIZE); in save_serial()
1544 j = BIO_snprintf(buf[0], sizeof buf[0], "%s.%s", serialfile, suffix); in save_serial()
1546 j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", serialfile, suffix); in save_serial()
[all …]
Dapps.h322 BIGNUM *load_serial(char *serialfile, int create, ASN1_INTEGER **retai);
323 int save_serial(char *serialfile, char *suffix, BIGNUM *serial, ASN1_INTEGER **retai);
324 int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix);
Dx509.c1087 static ASN1_INTEGER *x509_load_serial(char *CAfile, char *serialfile, int create) in x509_load_serial() argument
1094 len = ((serialfile == NULL) in x509_load_serial()
1096 :(strlen(serialfile)))+1; in x509_load_serial()
1099 if (serialfile == NULL) in x509_load_serial()
1111 BUF_strlcpy(buf,serialfile,len); in x509_load_serial()
1128 X509 *x, X509 *xca, EVP_PKEY *pkey, char *serialfile, int create, in x509_certify() argument
1146 else if (!(bs = x509_load_serial(CAfile, serialfile, create))) in x509_certify()
Dca.c277 char *serialfile=NULL; in MAIN() local
1055 if ((serialfile=NCONF_get_string(conf,section,ENV_SERIAL)) in MAIN()
1129 if ((serial=load_serial(serialfile, create_ser, NULL)) == NULL) in MAIN()
1263 if (!save_serial(serialfile,"new",serial,NULL)) goto err; in MAIN()
1327 if (!rotate_serial(serialfile,"new","old")) goto err; in MAIN()