diff options
author | lloyd <[email protected]> | 2011-02-09 16:51:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-02-09 16:51:13 +0000 |
commit | e4e6da70ec1d32b9fc19d19ed4c2b1445ab23b5a (patch) | |
tree | a72accaff42e87c49c038116d4ef707ab4a34738 | |
parent | e92f422c555cd8be39de440e4a52897affb28b95 (diff) |
Pull out variable, causes link problems in amalgamation
-rw-r--r-- | src/cert/x509cert/x509_ext.h | 4 | ||||
-rw-r--r-- | src/cert/x509cert/x509cert.cpp | 2 |
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); } |