From 12c7a928b7c41beec90589d7473090e29244bfcb Mon Sep 17 00:00:00 2001 From: okada Date: Sun, 21 Mar 2004 23:40:27 +0000 Subject: [PATCH] 2004-03-21 Kenichi Okada * configure.in (VERSION): Bump up to 0.10. 2004-03-21 AIDA Shinra * starttls.c (main): Fix for small BUFSIZE OS. --- ChangeLog | 8 ++++++++ configure.in | 2 +- starttls.c | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 886f9df..9278e1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-03-21 Kenichi Okada + + * configure.in (VERSION): Bump up to 0.10. + +2004-03-21 AIDA Shinra + + * starttls.c (main): Fix for small BUFSIZE OS. + 2004-02-17 Daiki Ueno * configure.in: Use AC_LIBOBJ rather than manually modify LIBOBJS. diff --git a/configure.in b/configure.in index f5e8bf3..9b530a8 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ AC_INIT(starttls.el) AC_PREREQ(2.13) -AM_INIT_AUTOMAKE(starttls, 0.9) +AM_INIT_AUTOMAKE(starttls, 0.10) AM_PATH_LISPDIR diff --git a/starttls.c b/starttls.c index 4c95786..f0d61ce 100644 --- a/starttls.c +++ b/starttls.c @@ -344,6 +344,7 @@ main (argc, argv) if (FD_ISSET (tls_fd, &readfds)) #endif { +readtop: if (tls_conn) nbuffer = SSL_read (tls_conn, buffer, sizeof buffer -1); else @@ -367,6 +368,8 @@ main (argc, argv) wrote = write (out, retry, nbuffer); if (wrote < 0) goto finish; } + if (tls_conn && SSL_pending(tls_conn)) + goto readtop; } } -- 1.7.10.4