delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/06/15:19:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3EE0E930.7060605@fillmore-labs.com>
Date: Fri, 06 Jun 2003 21:19:12 +0200
From: Patrick Eisenacher <eisenacher AT fillmore-labs DOT com>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: openssl commandline tools always output in text mode
X-Authenticated-Sender: eisenacher AT fillmore-labs DOT com
User-Agent: KMail/1.5.9
Organization: Fillmore Labs GmbH <http://www.fillmore-labs.com/>
X-Complaints-To: abuse AT fillmore-labs DOT com

--------------070103020403050004000807
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Corinna,

> On Fri, Jun 06, 2003 at 01:29:29PM +0200, Patrick Eisenacher wrote:
>> Did you try the example I provided in my last posting?
> 
> No, I don't have keys and that stuff to test with.  What I did was,
> to examine the source code of OpenSSL.
> 
> The OpenSSL tools do open input files generally in binary mode
> while writing sometimes in binary mode, sometimes in the "don't
> care" mode.
> 
> If your input file contains CRLFs, the output file might contain
> them untranslated.  Is that possible here?  Are your input files
> "infected" with CRLFs?

Nope.

But I attached you a key, cert and testmail with which you should be 
able to reproduce the problem.

The command is:
$ openssl smime -decrypt -in testmail.corinna.plain.encrypted -recip 
corinna.crt -inkey corinna.key -out testit.out

$ cat -A testit.out
Content-Type: text/plain; charset=us-ascii; format=flowed^M$
Content-Transfer-Encoding: 7bit^M$
^M$
test plain^M$
^M$

$ od -c testit.out
0000000   C   o   n   t   e   n   t   -   T   y   p   e   :       t   e
0000020   x   t   /   p   l   a   i   n   ;       c   h   a   r   s   e
0000040   t   =   u   s   -   a   s   c   i   i   ;       f   o   r   m
0000060   a   t   =   f   l   o   w   e   d  \r  \n   C   o   n   t   e
0000100   n   t   -   T   r   a   n   s   f   e   r   -   E   n   c   o
0000120   d   i   n   g   :       7   b   i   t  \r  \n  \r  \n   t   e
0000140   s   t       p   l   a   i   n  \r  \n  \r  \n
0000154

Please let me know whether you get the same result as I do and whether 
this helps identifying the culprit.


Thanks,
Patrick


--------------070103020403050004000807
Content-Type: application/x-gzip;
 name="testcase.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="testcase.tar.gz"

H4sICFjj4D4AA3Rlc3RjYXNlLnRhcgDtWGuzqkYWvV/Dr6DyKVPGI2/0nNzUNA8RBBXBB0zN
B0DeTwF5+OsHva9TMzmTW8nkJjXlsqzWpnf37tW7e/XGycswy6wnp6zf/VFAUAShKOodgiAo
TSL3EiHu5Q0YTqPvEJqiEZQkCIwY2pMYRb6DkT/Mo1e4VLVVwvA7N6zczHICt/zlduCUhllY
1aVV56WbfQvXvgXGNzC8IK5glt/q4lxkgc7fayFFFDmfY1lwSX3Qigzwh28EVowfn4M4FGYt
wgB1Nwccy4RXXlZALAB0xzOBwm75XQcJV2Ay/mrPgFznY7Owha62cSkR+S4wMsXfYmiocfxG
AcjdkO0UQRP2vX2YxYq2ayGxNbi9qnJ81wnWoauGB72pMYpxkK4iHyROijYmy2g2NkNEfsUo
mtNKqiEtc1MMGmcFATVm5kGQm0eptrEtMNOksgW0cdJdbQvz0OnJyMaQdhE4K4VT2lUEMEX3
O4UTicNQBymceqtEP1dGTKWoVcuqd88EvpUG2nhbYT7MnQ0UbftlEB/S76MwC/sgiYo6bbkP
hjLfmuIHr9ROvoL6Namsyh9EYTV0kFwgO50D6yMpcvqFRPlwJ/FiYLNaEQXvRiKrnQVNtHFO
5W8rAwAhDBzclkddMr7KVvEp9ok5ZYxSE5lNT6iGJZ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4uGOB+J
veInuo5Fy42FdpDmLVuicZeIY+5B4vvb1RGT5COdr9t9niVVoVwta+aCdafvGNdZ12BCLM8u
q15ZJh2mAb1aPkZhcoFlP2WnCqsAggU+6zPA74pZ5MtYHXQ5044sMvPQ/VVLQwJaJfxqnxJF
s7tg1mg1SkXzbDnzzYnAZUzbS6sGrVlpztWeuNnM1r1VJRSPZ+sd7i29w2gPUU1WmWYpUNql
H/inUHdB6rbJ2qow1RwfOyjFgYrWNCrIBcApQx4dxIOHn+cFALxWj6BLNGknA1379v176K9z
BXjggQceeOCBBx544IEHHnjggQceeOD/GP8CXuOwvAAoAAA=

--------------070103020403050004000807
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------070103020403050004000807--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019