Re: Using the SSL module.

Trilok Tourani <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <CA+9+xUY2HGT0AeBeAEFpkupHX30=sL5sFYJWm_ddq_g45uUikA@mail.gmail.com>
The ssl->write("...") keeps returning 0 (ie. it is in the handshake phase),
and when I wait for it, the sock's fd becomes -1 and I am unable to write
again.

Also, my server on 127.0.0.1:1999, when i connect to it using openssl,
wireshark shows normal TCP packets, while when I openssl to gideon.rosuav,
it shows TLSv1.2 packets. But in both, I can see the master-key,
certificates, etc. Does this mean that there is some fault with my SSL port?

Regards
Trilok Tourani

On Tue, Jun 23, 2015 at 12:21 PM, Chris Angelico <[email protected]> wrote:

> On Tue, Jun 23, 2015 at 4:43 PM, Trilok Tourani
> <[email protected]> wrote:
> > okay got the certificate information. How do I proceed in connecting to
> this
> > port with pike? The tried it the same way you mentioned in your first
> mail.
> > But when I do ssl->write("....."); it just returns 0 every time. but
> when I
> > run sock->write("...."); it gives me some data.
> >
>
> You'll want to connect, then establish an SSL.File (or SSL.sslfile)
> around that socket. Once you have that, it should all work. See the
> earlier emails for examples, or you may have one already.
>
> ChrisA
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.