Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Don't ask to ask, just ask
 
PerlMonks  

Net::SSLeay - "See the implementation of ds_https3() for guidance on how to do this."

by Anonymous Monk
on Oct 15, 2013 at 13:34 UTC ( #1058296=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello.

I was searching for a long time and found zero so far, so I decide to ask here.

I'm using Net::SSLeay for my script. I need to "manually" verify certificate before sending data to server.

Quote from SSLeay.pod:

"Beware that this method only allows after the fact verification of the certificate: by the time get_https3() has returned the https request has already been sent to the server, whether you decide to trust it or not. To do the verification correctly you must either employ the OpenSSL certificate verification framework or use the lower level API to first connect and verify the certificate and only then send the http data. See the implementation of ds_https3() for guidance on how to do this."

But where I could find that ds_https3 implementation? All searches via internet leads me to SSLeay.pod. I was searching inside all files in Net::SSLeay - nothing. And same result with OpenSSL sources.

Or maybe at least someone could explain what "ds" acronym from it name means, so it will help me to find details.

Thanks in advance for any help!

Comment on Net::SSLeay - "See the implementation of ds_https3() for guidance on how to do this."
Re: Net::SSLeay - "See the implementation of ds_https3() for guidance on how to do this."
by no_slogan (Chaplain) on Oct 15, 2013 at 16:23 UTC
    Guessing it's a typo for do_https3, but the promised guidance isn't there. Maybe set_verify will do what you want?

      Thank you very much! Looks like that's it:

      sub do_https3 { splice(@_,1,0) = 1; do_httpx3; }  # Legacy undocumented

      And it leads us to "do_httpx3".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1058296]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-04-20 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (488 votes), past polls