s_server (and maybe s_client) misbehaves with binary data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As with most other "apps" in the openssl binary, the s_server
and s_client commands are useful for multiple purposes:

1. As debug tools

2. As a way to do one-off operations without writing any
   code.

3. As back ends for small programs written in scripting
   languages that cannot really call the OpenSSL library
   directly.

This is about the latter two uses of s_server and s_client to
set up a one-off or scripted secure pipe between two machines.

Unfortunately, the current (1.0.2) version of s_server will
do special and problematic things when encountering some
3-byte sequences (such as "\nq\n") in the data stream.

It would thus be useful for s_server (and if applicable
s_client) to accept the "-binary" option (already provided
by the cms/smime commands), to turn off this behavior and
provide a clean data pass through to/from the other end.
In "-binary" mode, no byte value or sequence of byte value
is special, except that explicit use of the "-crlf" option
still works.

Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2860 S?borg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded 	



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux