Skip Menu |
 
Ticket metadata
The Basics
Id: 1766
Status: new
Priority: 0/
Queue: OpenSSL-Bugs

Custom Fields
Milestone: (no value)
Subsystem: (no value)
Severity: (no value)
Broken in: (no value)

People
Owner: Nobody in particular
Requestors: John Gardiner Myers
Cc:
AdminCc:

New reminder:
Subject:
Owner:
Due:

Dates
Created: Sat Oct 25 13:32:25 2008
Starts: Not set
Started: Not set
Last Contact: Not set
Due: Not set
Closed: Not set
Updated: Sat Oct 25 13:32:26 2008 by John Gardiner Myers



Subject: [PATCH] s_client -reconnect and -starttls don't work together
Date: Fri, 24 Oct 2008 10:45:28 -0700
To: openssl-bugs@openssl.org
From: John Gardiner Myers <jgmyers@proofpoint.com>
Download (untitled) / with headers
text/plain 787b
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)