Skip to content

Commit

Permalink
cyassl: fix the test for ASN_NO_SIGNER_E
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dfandrich committed Jul 30, 2014
1 parent 1aa6418 commit 3d5be80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vtls/cyassl.c
Expand Up @@ -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");
Expand Down

0 comments on commit 3d5be80

Please sign in to comment.