aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOla Mork <ola@agoragames.com>2011-05-20 23:40:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-05-20 23:40:59 +0200
commit3912e7bde3b3d5b3f10be52154b4a7d7dd8e6cfa (patch)
tree82e4ee64564c566e8c7de57fbd03dfd467cbda6d /lib
parente83816bfcf759adb4a7102ea3616fe2a3793cec6 (diff)
cyassl: build without filesystem
Get cyassl's NO_FILESYSTEM to work with libcurl. Otherwise I'd get linker errors for the missing "SSL_CTX_load_verify_locations" functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/cyassl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cyassl.c b/lib/cyassl.c
index e8830f3be..8fdbc33b1 100644
--- a/lib/cyassl.c
+++ b/lib/cyassl.c
@@ -122,6 +122,7 @@ cyassl_connect_step1(struct connectdata *conn,
return CURLE_OUT_OF_MEMORY;
}
+#ifndef NO_FILESYSTEM
/* load trusted cacert */
if(data->set.str[STRING_SSL_CAFILE]) {
if(!SSL_CTX_load_verify_locations(conssl->ctx,
@@ -175,6 +176,11 @@ cyassl_connect_step1(struct connectdata *conn,
return CURLE_SSL_CONNECT_ERROR;
}
}
+#else
+ if(CyaSSL_no_filesystem_verify(conssl->ctx)!= SSL_SUCCESS) {
+ return CURLE_SSL_CONNECT_ERROR;
+ }
+#endif /* NO_FILESYSTEM */
/* SSL always tries to verify the peer, this only says whether it should
* fail to connect if the verification fails, or if it should continue