aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509_ca.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-23 04:20:30 +0000
committerlloyd <[email protected]>2006-06-23 04:20:30 +0000
commit96277a37c3b7125f2c79cb9c2df19d4811379a36 (patch)
tree3dfb9ffc2736a20b90303abb8e6189f7c680f82c /src/x509_ca.cpp
parent4fa62dc075426f8503f485cc1eeffc59ad95b2a3 (diff)
Make Alternative_Name an abstract base, from which the subject
and issuer forms are derived. Add Extensions::contents_to, which iterates over the set and adds each extension's contents. Add a new explicit info field for is_ca Implement Authority_Key_Id::decode_inner (incomplete, only handles the keyid form).
Diffstat (limited to 'src/x509_ca.cpp')
-rw-r--r--src/x509_ca.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/x509_ca.cpp b/src/x509_ca.cpp
index 3600843d3..1799de4f6 100644
--- a/src/x509_ca.cpp
+++ b/src/x509_ca.cpp
@@ -130,16 +130,10 @@ X509_Certificate X509_CA::make_cert(PK_Signer* signer,
new Cert_Extension::Extended_Key_Usage(ex_constraints));
extensions.add(
- new Cert_Extension::Alternative_Name(subject_alt,
- "X509v3.SubjectAlternativeName",
- "subject_alternative_name")
- );
+ new Cert_Extension::Subject_Alternative_Name(subject_alt));
extensions.add(
- new Cert_Extension::Alternative_Name(issuer_alt,
- "X509v3.IssuerAlternativeName",
- "issuer_alternative_name")
- );
+ new Cert_Extension::Issuer_Alternative_Name(issuer_alt));
const u32bit X509_CERT_VERSION = 3;
const u32bit SERIAL_BITS = 128;