added BUILD_SERIAL component and fixed several ac bugs
This commit is contained in:
@@ -27,6 +27,7 @@ ENUM(builder_part_names, BUILD_BLOB_ASN1_DER, BUILD_END,
|
||||
"BUILD_ISSUER_ALTNAME",
|
||||
"BUILD_NOT_BEFORE_TIME",
|
||||
"BUILD_NOT_AFTER_TIME",
|
||||
"BUILD_SERIAL",
|
||||
"BUILD_CA_CERT",
|
||||
"BUILD_CERT",
|
||||
"BUILD_X509_FLAG",
|
||||
|
||||
@@ -60,7 +60,9 @@ enum builder_part_t {
|
||||
BUILD_NOT_BEFORE_TIME,
|
||||
/** notAfter, time_t* */
|
||||
BUILD_NOT_AFTER_TIME,
|
||||
/** a CA certificate, certificate_t* */
|
||||
/** notAfter, time_t* */
|
||||
BUILD_SERIAL,
|
||||
/** a serial number in binary form, chunk_t */
|
||||
BUILD_CA_CERT,
|
||||
/** a certificate, certificate_t* */
|
||||
BUILD_CERT,
|
||||
|
||||
@@ -146,6 +146,7 @@ static void* create(private_credential_factory_t *this, credential_type_t type,
|
||||
case BUILD_END:
|
||||
break;
|
||||
case BUILD_BLOB_ASN1_DER:
|
||||
case BUILD_SERIAL:
|
||||
builder->add(builder, part, va_arg(args, chunk_t));
|
||||
continue;
|
||||
case BUILD_X509_FLAG:
|
||||
|
||||
Reference in New Issue
Block a user