Hi.
I have a server that's going to serve HTTP
clients on various ports (different ports for different client types). Most
transactions are non-SSL transactions, but a few do require SSL. Since I can use
many ports, my clients need to know which port to talk to the server through. It
would help the clients very much, if they could perform all of their
communications through one port, instead of two.
So my question is - How do I implement an
SSL and non-SSL server on one listening socket. SSL_accept returns an error if
the connection is not an SSL connection, but after I get that error, I need to
access the data SSL_accept already read from the socket (since this data is the
beginning of the HTTP transaction).
I also need to know whether SSL_accept sends
anything to the peer while attempting to perform the SSL handshake on a straight
HTTP connection (it shouldn't, unless GET ... or POST ... are legal SSL
handshake prefixes).
Thanks,
Itay.
|
- Re: SSL and non-SSL connections on the same ... Itay Zandbank
- Re: SSL and non-SSL connections on the ... Itay Zandbank
- Re: SSL and non-SSL connections on ... Lutz Jaenicke
- RE: SSL and non-SSL connections on ... David Schwartz
- Re: SSL and non-SSL connections... Itay Zandbank
- Re: SSL and non-SSL connect... jkunz
- Format form date ? CCI de Brest - Xavier Guillot
- Re: Format form da... Erwann ABALEA
- Re: SSL and non-SSL co... Eric Rescorla
- RE: SSL and non-SSL connect... David Schwartz
- Re: SSL and non-SSL connections on ... Ng Pheng Siong