diff --git a/COPYING b/COPYING index 0b6cbf8..6168a39 120000 --- a/COPYING +++ b/COPYING @@ -1 +1 @@ -/usr/share/automake-1.10/COPYING \ No newline at end of file +/usr/share/automake-1.11/COPYING \ No newline at end of file diff --git a/INSTALL b/INSTALL index 5bb6e7b..cbd1c80 120000 --- a/INSTALL +++ b/INSTALL @@ -1 +1 @@ -/usr/share/automake-1.10/INSTALL \ No newline at end of file +/usr/share/automake-1.11/INSTALL \ No newline at end of file diff --git a/src/openssl.hxx b/src/openssl.hxx index f151fc1..74943fb 100644 --- a/src/openssl.hxx +++ b/src/openssl.hxx @@ -610,12 +610,10 @@ namespace openssl { } //! Check whether it's a CA certificate. bool isCa() { - static BASIC_CONSTRAINTS* bc(0); - if (!bc) { - int pos(X509_get_ext_by_NID(_x509, NID_basic_constraints, -1)); - if (pos>=0) - bc = (BASIC_CONSTRAINTS*)X509V3_EXT_d2i(X509_get_ext(_x509, pos)); - } + BASIC_CONSTRAINTS* bc(0); + int pos(X509_get_ext_by_NID(_x509, NID_basic_constraints, -1)); + if (pos>=0) + bc = (BASIC_CONSTRAINTS*)X509V3_EXT_d2i(X509_get_ext(_x509, pos)); return bc&&bc->ca; } //! Get organizational unit name.