mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:31:40 +03:00
This should return a SSL_CTX pointer but it was accidentally broken.
Verify with test 1587
Follow-up to 2db8ae480f
Spotted by Codex Security
Closes #21290
51 lines
690 B
XML
51 lines
690 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTPS
|
|
CURLINFO_TLS_SESSION
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data crlf="headers" nocheck="yes">
|
|
HTTP/1.1 401 OK
|
|
Date: Tue, 09 Nov 2030 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Content-Length: 7
|
|
WWW-Authenticate: curl2000
|
|
|
|
nomnom
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
SSL
|
|
OpenSSL
|
|
</features>
|
|
<server>
|
|
http
|
|
https
|
|
</server>
|
|
<name>
|
|
CURLINFO_TLS_SESSION and CURLINFO_TLS_SSL_PTR with OpenSSL
|
|
</name>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
<command>
|
|
https://%HOSTIP:%HTTPSPORT/
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<stdout mode="text">
|
|
CURLINFO_TLS_SESSION: OK
|
|
CURLINFO_TLS_SSL_PTR: OK
|
|
</stdout>
|
|
</verify>
|
|
|
|
</testcase>
|