openssl s_client -starttls smtp -reconnect

doesn't work, because it doesn't do the starttls protocol work after
reconnecting. Fix:

[jgmyers@pong openssl-0.9.8i]$ diff -ru apps/s_client.c~ apps/s_client.c
--- apps/s_client.c~ 2008-06-04 13:11:17.000000000 -0700
+++ apps/s_client.c 2008-10-24 10:42:21.000000000 -0700
@@ -1023,7 +1023,7 @@
{
BIO_printf(bio_err,"%s",mbuf);
/* We don't need to know any more */
- starttls_proto = PROTO_OFF;
+ if (reconnect == 0)
starttls_proto = PROTO_OFF;
}

if (reconnect)

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org