aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509self.cpp
diff options
context:
space:
mode:
authorsledgehammer_999 <[email protected]>2021-01-11 04:04:02 +0200
committersledgehammer_999 <[email protected]>2021-01-11 04:04:02 +0200
commitd06f04ca09b9379910f9137b4aae781404d39d5e (patch)
tree8a291bfb450fea7b600dd33296c85ce82068e99a /src/lib/x509/x509self.cpp
parent854b79287818a01137aa78e59e36ab10240bf13b (diff)
Split ASN1 tags enum class into 2 enum classes
This should improve type safety even more.
Diffstat (limited to 'src/lib/x509/x509self.cpp')
-rw-r--r--src/lib/x509/x509self.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/x509/x509self.cpp b/src/lib/x509/x509self.cpp
index e2282de9e..ac3c709e2 100644
--- a/src/lib/x509/x509self.cpp
+++ b/src/lib/x509/x509self.cpp
@@ -36,7 +36,7 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
subject_dn.add_attribute("X520.SerialNumber", opts.serial_number);
subject_alt = AlternativeName(opts.email, opts.uri, opts.dns, opts.ip);
subject_alt.add_othername(OID::from_string("PKIX.XMPPAddr"),
- opts.xmpp, ASN1_Tag::UTF8_STRING);
+ opts.xmpp, ASN1_Type::UTF8_STRING);
for(auto dns : opts.more_dns)
subject_alt.add_attribute("DNS", dns);