[ENBD] problem of ssl
Peter T. Breuer
ptb@oboe.it.uc3m.es
Wed, 10 Jan 2001 15:41:31 +0100 (MET)
"A month of sundays ago dzze@263.net wrote:"
[reformatted to 72 chars/line]
> I have download nbd-2.4.15 and I want to test ssl between server and
> client. I use redhad6.0 and openssl and 2.2.15 kernel .And the server
> and client are localhost .But when I make test, it has some error.
What error?
> If not using ssl ,there has no problem with the server and client.The
> work well. Using ssl, I can compile the nbd-server and nbd-client
> without error. But when I make test, the server ends at
> nbd_server.c/introduction fuction's "writenet(self, "helo nbd-client\n",
> 16) "(hello).And then the server finish itself.(disconnectme)
It would be helpful if you could get the exact error and exat line.
The only difference in principle between ssl and non-ssl is that the
server and client communicate over ssl channels instead of over ordinary
tcp sockets.
> Is there any problems in SSL_write in netit funtion? Can you help me?
> Thanks in advance.
I haven't tested ssl at all during development of the 2.4.* line. It
would not surprise me if ssl had broken somehow along the way. Drop
back to a version where it works for sure (the 2.2.* series springs to
mind!). Then try and locate a version change where it stops working.
One of the things that did happen in 2.4.* was that the initial
communications became more "unix like", with a listening socket
splitting off communication channels on a fixed port as necessary.
That may be implicated if there is some ssl breakage.
Let me know what you find out.
(cc'ed to andres who did the ssl work and knows all about it).
Peter