x509 certificates support encoding of email, DNS and IP subjectAltNames

This commit is contained in:
Martin Willi
2009-09-08 13:17:41 +02:00
parent d7be290643
commit 7631aac20c
4 changed files with 58 additions and 13 deletions
+2 -2
View File
@@ -30,9 +30,9 @@ ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
"BUILD_SIGNING_CERT",
"BUILD_PUBLIC_KEY",
"BUILD_SUBJECT",
"BUILD_SUBJECT_ALTNAME",
"BUILD_SUBJECT_ALTNAMES",
"BUILD_ISSUER",
"BUILD_ISSUER_ALTNAME",
"BUILD_ISSUER_ALTNAMES",
"BUILD_NOT_BEFORE_TIME",
"BUILD_NOT_AFTER_TIME",
"BUILD_SERIAL",
+4 -4
View File
@@ -68,12 +68,12 @@ enum builder_part_t {
BUILD_PUBLIC_KEY,
/** subject for e.g. certificates, identification_t* */
BUILD_SUBJECT,
/** additional subject name, identification_t* */
BUILD_SUBJECT_ALTNAME,
/** additional subject names, linked_list_t* containing identification_t* */
BUILD_SUBJECT_ALTNAMES,
/** issuer for e.g. certificates, identification_t* */
BUILD_ISSUER,
/** additional issuer name, identification_t* */
BUILD_ISSUER_ALTNAME,
/** additional issuer names, linked_list_t* containing identification_t* */
BUILD_ISSUER_ALTNAMES,
/** notBefore, time_t* */
BUILD_NOT_BEFORE_TIME,
/** notAfter, time_t* */
@@ -210,9 +210,9 @@ static void* create(private_credential_factory_t *this, credential_type_t type,
case BUILD_SIGNING_KEY:
case BUILD_PUBLIC_KEY:
case BUILD_SUBJECT:
case BUILD_SUBJECT_ALTNAME:
case BUILD_SUBJECT_ALTNAMES:
case BUILD_ISSUER:
case BUILD_ISSUER_ALTNAME:
case BUILD_ISSUER_ALTNAMES:
case BUILD_SIGNING_CERT:
case BUILD_CA_CERT:
case BUILD_CERT: