mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
email: Added initial support for cancelling authentication
Should a client application fail to decode an authentication message received from a server, or not support any of the parameters given by the server in the message, then the authentication phrase should be cancelled gracefully by the client rather than simply terminating the connection. The authentication phrase should be cancelled by simply sending a '*' to the server, in response to erroneous data being received, as per RFC-3501, RFC-4954 and RFC-5034. This patch adds the necessary state machine constants and appropriate response handlers in order to add this functionality for the CRAM-MD5, DIGEST-MD5 and NTLM authentication mechanisms.
This commit is contained in:
parent
aa0eaef483
commit
7de4cc35f8
6 changed files with 67 additions and 4 deletions
|
|
@ -44,6 +44,7 @@ typedef enum {
|
|||
POP3_AUTH_NTLM,
|
||||
POP3_AUTH_NTLM_TYPE2MSG,
|
||||
POP3_AUTH_XOAUTH2,
|
||||
POP3_AUTH_CANCEL,
|
||||
POP3_AUTH_FINAL,
|
||||
POP3_APOP,
|
||||
POP3_USER,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue