Lines Matching refs:serial

56 #define ENV_SERIAL              "serial"
97 BIGNUM *serial, const char *subj, unsigned long chtype,
109 BIGNUM *serial, const char *subj, unsigned long chtype,
118 BIGNUM *serial, const char *subj, unsigned long chtype,
125 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial,
196 "If reading serial fails, create a new random serial"},
198 "Always create a random serial; do not store it"},
232 {"status", OPT_STATUS, 's', "Shows cert status given the serial number"},
264 BIGNUM *crlnumber = NULL, *serial = NULL;
558 /* report status of cert with serial number given on command line */
574 BIO_printf(bio_err, "Error verifying serial %s!\n", ser_status);
725 BIO_printf(bio_err, "entry %d: bad serial number length (%d)\n",
732 "entry %d: bad char 0%o '%c' in serial number\n",
920 if ((serial = BN_new()) == NULL || !rand_serial(serial, NULL)) {
921 BIO_printf(bio_err, "error generating serial number\n");
925 serial = load_serial(serialfile, NULL, create_ser, NULL);
926 if (serial == NULL) {
927 BIO_printf(bio_err, "error while loading serial number\n");
931 if (BN_is_zero(serial)) {
932 BIO_printf(bio_err, "next serial number is 00\n");
934 if ((f = BN_bn2hex(serial)) == NULL)
936 BIO_printf(bio_err, "next serial number is %s\n", f);
954 attribs, db, serial, subj, chtype, multirdn,
963 if (!BN_add_word(serial, 1))
975 db, serial, subj, chtype, multirdn, email_dn,
984 if (!BN_add_word(serial, 1))
996 serial, subj, chtype, multirdn, email_dn, startdate,
1004 if (!BN_add_word(serial, 1))
1017 serial, subj, chtype, multirdn, email_dn, startdate,
1025 if (!BN_add_word(serial, 1)) {
1038 * and serial number that need updating
1064 && !save_serial(serialfile, "new", serial, NULL))
1130 /* Rename the database and the serial file */
1218 if (!BN_hex2bn(&serial, pp[DB_serial]))
1220 tmpser = BN_to_ASN1_INTEGER(serial, NULL);
1221 BN_free(serial);
1222 serial = NULL;
1232 * sort the data so it will be written in serial number order
1335 BN_free(serial);
1363 BIGNUM *serial, const char *subj, unsigned long chtype,
1404 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj,
1421 BIGNUM *serial, const char *subj, unsigned long chtype,
1461 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj,
1474 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial,
1683 if (BN_to_ASN1_INTEGER(serial, X509_get_serialNumber(ret)) == NULL)
1797 if (BN_is_zero(serial))
1800 row[DB_serial] = BN_bn2hex(serial);
1808 * An empty subject! We'll use the serial number instead. If
1977 BIGNUM *serial, const char *subj, unsigned long chtype,
2091 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj,
2130 /* Entries with empty Subjects actually use the serial number instead */
2139 * We have to lookup by serial number because name lookup skips revoked
2145 "Adding Entry with serial number %s to DB for %s\n",
2190 BIO_printf(bio_err, "ERROR:Already present, serial number %s\n",
2194 BIO_printf(bio_err, "ERROR:Already revoked, serial number %s\n",
2215 static int get_certificate_status(const char *serial, CA_DB *db)
2219 size_t serial_len = strlen(serial);
2226 row[DB_serial] = app_malloc(serial_len + 2, "row serial#");
2234 /* Copy String from serial to row[DB_serial] */
2235 memcpy(row[DB_serial] + 1, serial, serial_len);
2238 /* Copy String from serial to row[DB_serial] */
2239 memcpy(row[DB_serial], serial, serial_len);