diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-30 11:53:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-30 11:53:40 +0000 |
commit | 0cff27906300a046e3569d7b32887d681fc8ea62 (patch) | |
tree | b5f219f58144e5ddebfdff80b595e2ebb309d904 /lib/sendf.c | |
parent | 09ba856e3902a439c516c6cc1f40767b838b2a44 (diff) | |
download | curl-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.c | 8 |
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 |