in reply to Re: Embed TLS in plaintext XML
in thread Embed TLS in plaintext XML

I would much rather see the code that generates the TLS Hello, Exchange cipher, and Finished messages - and see how the magic is done.
But I can't find those pieces of code anywhere? I've looked through Net::SSLeay, Crypt::SSLeay - but the missing link is... missing. At least for me.
Especially the Net::SSLeay::connect seems interesting, but I can't find the code for that anywhere.

Replies are listed 'Best First'.
Re^3: Embed TLS in plaintext XML
by noxxi (Pilgrim) on Nov 12, 2015 at 06:05 UTC
    The code to generate these messages is deep inside the OpenSSL library and you have no direct access from Perl to this and I doubt even there is a public C interface. But you can get the generated messages with a memory BIO and use of BIO_read, BIO_write etc. And again, on the Perl side AnyEvent will probably the best source to look into. You might have a look at code from other languages but I doubt that you will find much more because the use case you have is really special and weird.