added credential factory support for BULD_NOT_BEFORE_TIME and BUILD_NOT_AFTER_TIME
This commit is contained in:
@@ -25,6 +25,8 @@ ENUM(builder_part_names, BUILD_BLOB_ASN1_DER, BUILD_END,
|
||||
"BUILD_SUBJECT_ALTNAME",
|
||||
"BUILD_ISSUER",
|
||||
"BUILD_ISSUER_ALTNAME",
|
||||
"BUILD_NOT_BEFORE_TIME",
|
||||
"BUILD_NOT_AFTER_TIME",
|
||||
"BUILD_CA_CERT",
|
||||
"BUILD_CERT",
|
||||
"BUILD_X509_FLAG",
|
||||
|
||||
@@ -154,6 +154,10 @@ static void* create(private_credential_factory_t *this, credential_type_t type,
|
||||
case BUILD_KEY_SIZE:
|
||||
builder->add(builder, part, va_arg(args, u_int));
|
||||
continue;
|
||||
case BUILD_NOT_BEFORE_TIME:
|
||||
case BUILD_NOT_AFTER_TIME:
|
||||
builder->add(builder, part, va_arg(args, time_t));
|
||||
continue;
|
||||
case BUILD_SIGNING_KEY:
|
||||
case BUILD_PUBLIC_KEY:
|
||||
case BUILD_SUBJECT:
|
||||
|
||||
Reference in New Issue
Block a user