added ietf group attribute support to attibute certificate factory

This commit is contained in:
Andreas Steffen
2008-03-21 16:59:21 +00:00
parent 93da2684b6
commit c081a9bfe6
5 changed files with 11 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ ENUM(builder_part_names, BUILD_BLOB_ASN1_DER, BUILD_END,
"BUILD_NOT_BEFORE_TIME",
"BUILD_NOT_AFTER_TIME",
"BUILD_SERIAL",
"BUILD_IETF_GROUP_ATTR",
"BUILD_CA_CERT",
"BUILD_CERT",
"BUILD_X509_FLAG",
+4 -2
View File
@@ -60,9 +60,11 @@ enum builder_part_t {
BUILD_NOT_BEFORE_TIME,
/** notAfter, time_t* */
BUILD_NOT_AFTER_TIME,
/** notAfter, time_t* */
BUILD_SERIAL,
/** a serial number in binary form, chunk_t */
BUILD_SERIAL,
/** a comma-separated list of ietf group attributes, char* */
BUILD_IETF_GROUP_ATTR,
/** a ca certificate, certificate_t* */
BUILD_CA_CERT,
/** a certificate, certificate_t* */
BUILD_CERT,
@@ -168,6 +168,7 @@ static void* create(private_credential_factory_t *this, credential_type_t type,
case BUILD_SIGNING_CERT:
case BUILD_CA_CERT:
case BUILD_CERT:
case BUILD_IETF_GROUP_ATTR:
builder->add(builder, part, va_arg(args, void*));
continue;
default: