aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509self.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-04 18:05:34 -0500
committerJack Lloyd <[email protected]>2022-02-06 08:52:16 -0500
commitfbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch)
treec0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/lib/x509/x509self.cpp
parent3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff)
Fix clang-tidy performance warnings
Diffstat (limited to 'src/lib/x509/x509self.cpp')
-rw-r--r--src/lib/x509/x509self.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/x509/x509self.cpp b/src/lib/x509/x509self.cpp
index ad43055c4..0cd77d367 100644
--- a/src/lib/x509/x509self.cpp
+++ b/src/lib/x509/x509self.cpp
@@ -29,7 +29,7 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
subject_dn.add_attribute("X520.Locality", opts.locality);
subject_dn.add_attribute("X520.Organization", opts.organization);
subject_dn.add_attribute("X520.OrganizationalUnit", opts.org_unit);
- for(auto extra_ou : opts.more_org_units) {
+ for(const auto& extra_ou : opts.more_org_units) {
subject_dn.add_attribute("X520.OrganizationalUnit", extra_ou);
}
@@ -38,7 +38,7 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn,
subject_alt.add_othername(OID::from_string("PKIX.XMPPAddr"),
opts.xmpp, ASN1_Type::Utf8String);
- for(auto dns : opts.more_dns)
+ for(const auto& dns : opts.more_dns)
subject_alt.add_attribute("DNS", dns);
}
}