aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-07-31 00:31:36 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-07-31 00:31:36 +0200
commit3d5be801b9cdf51c6056e48cd87c0225555f23da (patch)
tree5d73a6c0c27b5c3dde3491949cc061a064842db2
parent1aa6418af91d4ec5571cdcc1263b5bea31d9d0ce (diff)
cyassl: fix the test for ASN_NO_SIGNER_E
It's an enum so a macro test won't work. The CyaSSL changelog doesn't say exactly when this error code was introduced, but it's likely to be 2.7.0.
-rw-r--r--lib/vtls/cyassl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c
index 0de589e16..9b5c7c61c 100644
--- a/lib/vtls/cyassl.c
+++ b/lib/vtls/cyassl.c
@@ -300,7 +300,7 @@ cyassl_connect_step2(struct connectdata *conn,
}
#endif
}
-#ifdef ASN_NO_SIGNER_E /* not present in 2.0.6 */
+#if LIBCYASSL_VERSION_HEX >= 0x02007000 /* 2.7.0 */
else if(ASN_NO_SIGNER_E == detail) {
if(data->set.ssl.verifypeer) {
failf(data, "\tCA signer not available for verification\n");