aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-06 14:10:32 -0500
committerJack Lloyd <[email protected]>2022-02-06 14:10:32 -0500
commitbf15164d8e48eb2d60b43ad2a599ffe504739286 (patch)
treeb909ba6e5eb8f0edad1761557661f0b42140878b /src/lib/pubkey
parent25682391a043c35ee19f4ac3863b6e73d1d80e0f (diff)
Use C++17's concat namespace feature
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/keypair/keypair.cpp6
-rw-r--r--src/lib/pubkey/pem/pem.cpp6
-rw-r--r--src/lib/pubkey/pkcs8.cpp6
-rw-r--r--src/lib/pubkey/x509_key.cpp6
4 files changed, 4 insertions, 20 deletions
diff --git a/src/lib/pubkey/keypair/keypair.cpp b/src/lib/pubkey/keypair/keypair.cpp
index f5ce33df2..9db77c3b1 100644
--- a/src/lib/pubkey/keypair/keypair.cpp
+++ b/src/lib/pubkey/keypair/keypair.cpp
@@ -9,9 +9,7 @@
#include <botan/pubkey.h>
#include <botan/rng.h>
-namespace Botan {
-
-namespace KeyPair {
+namespace Botan::KeyPair {
/*
* Check an encryption key pair for consistency
@@ -81,5 +79,3 @@ bool signature_consistency_check(RandomNumberGenerator& rng,
}
}
-
-}
diff --git a/src/lib/pubkey/pem/pem.cpp b/src/lib/pubkey/pem/pem.cpp
index 6fbde7210..0e8629fc9 100644
--- a/src/lib/pubkey/pem/pem.cpp
+++ b/src/lib/pubkey/pem/pem.cpp
@@ -10,9 +10,7 @@
#include <botan/base64.h>
#include <botan/exceptn.h>
-namespace Botan {
-
-namespace PEM_Code {
+namespace Botan::PEM_Code {
namespace {
@@ -165,5 +163,3 @@ bool matches(DataSource& source, const std::string& extra,
}
}
-
-}
diff --git a/src/lib/pubkey/pkcs8.cpp b/src/lib/pubkey/pkcs8.cpp
index 73210f426..e7e2d62b4 100644
--- a/src/lib/pubkey/pkcs8.cpp
+++ b/src/lib/pubkey/pkcs8.cpp
@@ -19,9 +19,7 @@
#include <botan/internal/pbes2.h>
#endif
-namespace Botan {
-
-namespace PKCS8 {
+namespace Botan::PKCS8 {
namespace {
@@ -384,5 +382,3 @@ std::unique_ptr<Private_Key> load_key(DataSource& source)
}
}
-
-}
diff --git a/src/lib/pubkey/x509_key.cpp b/src/lib/pubkey/x509_key.cpp
index 6de149e97..5952d5ccd 100644
--- a/src/lib/pubkey/x509_key.cpp
+++ b/src/lib/pubkey/x509_key.cpp
@@ -12,9 +12,7 @@
#include <botan/asn1_obj.h>
#include <botan/pk_algs.h>
-namespace Botan {
-
-namespace X509 {
+namespace Botan::X509 {
/*
* PEM encode a X.509 public key
@@ -67,5 +65,3 @@ Public_Key* load_key(DataSource& source)
}
}
-
-}