From 0cff27906300a046e3569d7b32887d681fc8ea62 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 30 Oct 2000 11:53:40 +0000 Subject: new urldata ssl layout and T. Bharath brought the new SSL cert verify function --- lib/sendf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sendf.c') 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 -- cgit v1.2.3