summaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-30 11:53:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-30 11:53:40 +0000
commit0cff27906300a046e3569d7b32887d681fc8ea62 (patch)
treeb5f219f58144e5ddebfdff80b595e2ebb309d904 /lib/sendf.c
parent09ba856e3902a439c516c6cc1f40767b838b2a44 (diff)
downloadcurl-0cff27906300a046e3569d7b32887d681fc8ea62.tar.gz
new urldata ssl layout and T. Bharath brought the new SSL cert verify function
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 4984bd7f5..447a47390 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -111,8 +111,8 @@ size_t sendf(int fd, struct UrlData *data, char *fmt, ...)
#ifndef USE_SSLEAY
bytes_written = swrite(fd, s, strlen(s));
#else /* USE_SSLEAY */
- if (data->use_ssl) {
- bytes_written = SSL_write(data->ssl, s, strlen(s));
+ if (data->ssl.use) {
+ bytes_written = SSL_write(data->ssl.handle, s, strlen(s));
} else {
bytes_written = swrite(fd, s, strlen(s));
}
@@ -161,8 +161,8 @@ size_t ssend(int fd, struct connectdata *conn, void *mem, size_t len)
struct UrlData *data=conn->data; /* conn knows data, not vice versa */
#ifdef USE_SSLEAY
- if (data->use_ssl) {
- bytes_written = SSL_write(data->ssl, mem, len);
+ if (data->ssl.use) {
+ bytes_written = SSL_write(data->ssl.handle, mem, len);
}
else {
#endif