mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
09437d8cd4
Before this patch, `libhostname.so` and `chkhostname` were a test facility for overriding `gethostname()` in non-debug builds on Linux and other Unix platforms supporting `LD_PRELOAD`. `gethostname()` has a single use with SMTP. The alternative way to override `gethostname()` is building in debug mode, which allows to do this via the `CURL_GETHOSTNAME` env, on all platforms. Drop the `LD_PRELOAD` solution in favour of the above. Also: - delete inactive NTLM code with a `gethostname()` call made from it. - streamline NTLM code by dropping a `printf()` and a macro. - tests: stop setting `CURL_GETHOSTNAME` where unnecessary. Closes #14695
60 lines
968 B
Plaintext
60 lines
968 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SMTP
|
|
SASL
|
|
SASL AUTH NTLM
|
|
SASL CANCELLATION
|
|
RFC4954
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
AUTH NTLM
|
|
REPLY AUTH 334 NTLM supported
|
|
REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish
|
|
REPLY * 501 AUTH exchange cancelled by client
|
|
</servercmd>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
smtp
|
|
</server>
|
|
<features>
|
|
NTLM
|
|
SSL
|
|
!SSPI
|
|
</features>
|
|
<name>
|
|
SMTP NTLM graceful cancellation
|
|
</name>
|
|
<command>
|
|
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T -
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# 67 - CURLE_LOGIN_DENIED
|
|
<errorcode>
|
|
67
|
|
</errorcode>
|
|
#
|
|
# The multi interface considers a broken "CONNECT" as a prematurely broken
|
|
# transfer and such a connection will not get a "QUIT"
|
|
<protocol>
|
|
EHLO %TESTNUMBER
|
|
AUTH NTLM
|
|
TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
|
*
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|