On Mon, Feb 27, 2006, Michael B Allen wrote:

> Hi,
> 
> I have an idea for a new interface. At least from looking at the SSL man
> pages it looks like everything depends heavily on reading and writing
> directly to/from sockets. If the herein suggested interface already
> exists then I'd really like to know more about it.
> 

Actually the SSL library doesn't depend on sockets at all. Everything is done
thorugh BIOs which are an I/O abstraction. 

These BIOs often communicate with sockets which is why several examples
refer to them but they aren't compulsory.

If you want to use a different form of I/O you have two options.

One is to use a BIO pair which is analagous to a socket pair and then all data
transfer is handled by the applications. There are various manual pages and 
examples of the relevant discipline so I wont repeat that here.

The other option is to write a BIO. That is less well documented but there are
plenty of examples in the existing implementations. The socket BIO would be an
interesting starting point.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to