aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509self.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-16 16:21:48 +0000
committerlloyd <[email protected]>2007-10-16 16:21:48 +0000
commit2f92c34e3938641f7cc3e553953d676d2e95ea2d (patch)
treeffb5dab90dde2bb20bf6f4a7d9d9f9f7c0dd8011 /src/x509self.cpp
parent19a5c9f4d223314dc5eb6c971f332171f3a85623 (diff)
Add support for IPv4 addresses in the X.509 alternative name extension.
Original patch from Yves Jerschow.
Diffstat (limited to 'src/x509self.cpp')
-rw-r--r--src/x509self.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x509self.cpp b/src/x509self.cpp
index 255ee6219..1c94324ed 100644
--- a/src/x509self.cpp
+++ b/src/x509self.cpp
@@ -50,7 +50,7 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
subject_dn.add_attribute("X520.Organization", opts.organization);
subject_dn.add_attribute("X520.OrganizationalUnit", opts.org_unit);
subject_dn.add_attribute("X520.SerialNumber", opts.serial_number);
- subject_alt = AlternativeName(opts.email, opts.uri, opts.dns);
+ subject_alt = AlternativeName(opts.email, opts.uri, opts.dns, opts.ip);
subject_alt.add_othername(OIDS::lookup("PKIX.XMPPAddr"),
opts.xmpp, UTF8_STRING);
}