There are several examples on how to use SSL w/sockets (I'm not familiar
w/PEAP).  It's a minor change to the code to actually tunnel through SSL
once the session is established.  Use SSL_write() or SSL_read() with
your SSL session instead of std::write and std::read.  If you are in
fact using this as a pipe or tunnel to another system it should be
rather seamless if you have already written it using standard read/write
and socket calls.  Once you have the standard read/write working just
replace them with SSL_read/write and it should work.

Take a look at http://www2.psy.uq.edu.au/~ftp/Crypto/ssl.html


Fred Crable
-----Original Message-----
From: pankaj Goel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 11:31 AM
To: [EMAIL PROTECTED]
Subject: Using SSL formed session



 Hello,

 I am trying to implement PEAP into freeradius. I have
formed a SSL tunnel using openssl between the client
and the server, I need to run an EAP exchange over
this tunnel. Can anybody point me to the examples or
throw more light on how to use the formed SSL session
to tunnel  (exchange) the PEAP packets.


Pankaj.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to