aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cert/x509cert/x509_ext.h4
-rw-r--r--src/cert/x509cert/x509cert.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cert/x509cert/x509_ext.h b/src/cert/x509cert/x509_ext.h
index c32e39fdc..8799c5921 100644
--- a/src/cert/x509cert/x509_ext.h
+++ b/src/cert/x509cert/x509_ext.h
@@ -87,14 +87,14 @@ class BOTAN_DLL Extensions : public ASN1_Object
namespace Cert_Extension {
+static const size_t NO_CERT_PATH_LIMIT = 0xFFFFFFF0;
+
/**
* Basic Constraints Extension
*/
class BOTAN_DLL Basic_Constraints : public Certificate_Extension
{
public:
- static const size_t NO_CERT_PATH_LIMIT = 0xFFFFFFF0;
-
Basic_Constraints* copy() const
{ return new Basic_Constraints(is_ca, path_limit); }
diff --git a/src/cert/x509cert/x509cert.cpp b/src/cert/x509cert/x509cert.cpp
index 71ad8af82..b7c399078 100644
--- a/src/cert/x509cert/x509cert.cpp
+++ b/src/cert/x509cert/x509cert.cpp
@@ -142,7 +142,7 @@ void X509_Certificate::force_decode()
!subject.has_value("X509v3.BasicConstraints.path_constraint"))
{
const size_t limit = (x509_version() < 3) ?
- Cert_Extension::Basic_Constraints::NO_CERT_PATH_LIMIT : 0;
+ Cert_Extension::NO_CERT_PATH_LIMIT : 0;
subject.add("X509v3.BasicConstraints.path_constraint", limit);
}