aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-23 01:09:09 +0000
committerlloyd <[email protected]>2009-12-23 01:09:09 +0000
commite4bc193fd6232da46a3676f1e21e7a14bf5b1a6f (patch)
treed4640ca3c55e092ff4e743bc51ff9fd7fccd83d6 /src/cert
parentd7a893e9506e739d261a75d99743d0dc75803a79 (diff)
Avoid MSVC warning 4800 about implicit conversion from T to bool. Mostly
because it makes the code slightly more explicit.
Diffstat (limited to 'src/cert')
-rw-r--r--src/cert/x509/pkcs10.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cert/x509/pkcs10.cpp b/src/cert/x509/pkcs10.cpp
index 5617cece4..81bb58555 100644
--- a/src/cert/x509/pkcs10.cpp
+++ b/src/cert/x509/pkcs10.cpp
@@ -186,7 +186,7 @@ std::vector<OID> PKCS10_Request::ex_constraints() const
*/
bool PKCS10_Request::is_CA() const
{
- return info.get1_u32bit("X509v3.BasicConstraints.is_ca");
+ return (info.get1_u32bit("X509v3.BasicConstraints.is_ca") > 0);
}
/*