aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.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/telnet.c
parent09ba856e3902a439c516c6cc1f40767b838b2a44 (diff)
new urldata ssl layout and T. Bharath brought the new SSL cert verify function
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 486d69ded..e8fa874ac 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -861,8 +861,9 @@ void telwrite(struct UrlData *data,
#ifndef USE_SSLEAY
bytes_written = swrite(data->firstsocket, outbuf, out_count);
#else
- if (data->use_ssl) {
- bytes_written = SSL_write(data->ssl, (char *)outbuf, out_count);
+ if (data->ssl.use) {
+ bytes_written = SSL_write(data->ssl.handle, (char *)outbuf,
+ out_count);
}
else {
bytes_written = swrite(data->firstsocket, outbuf, out_count);
@@ -918,8 +919,8 @@ CURLcode telnet(struct connectdata *conn)
#ifndef USE_SSLEAY
nread = sread (sockfd, buf, BUFSIZE - 1);
#else
- if (data->use_ssl) {
- nread = SSL_read (data->ssl, buf, BUFSIZE - 1);
+ if (data->ssl.use) {
+ nread = SSL_read (data->ssl.handle, buf, BUFSIZE - 1);
}
else {
nread = sread (sockfd, buf, BUFSIZE - 1);