/third_party/curl/lib/ |
D | curl_sasl.c | 160 CURLcode Curl_sasl_parse_url_auth_option(struct SASL *sasl, in Curl_sasl_parse_url_auth_option() argument 169 if(sasl->resetprefs) { in Curl_sasl_parse_url_auth_option() 170 sasl->resetprefs = FALSE; in Curl_sasl_parse_url_auth_option() 171 sasl->prefmech = SASL_AUTH_NONE; in Curl_sasl_parse_url_auth_option() 175 sasl->prefmech = SASL_AUTH_DEFAULT; in Curl_sasl_parse_url_auth_option() 179 sasl->prefmech |= mechbit; in Curl_sasl_parse_url_auth_option() 192 void Curl_sasl_init(struct SASL *sasl, struct Curl_easy *data, in Curl_sasl_init() argument 197 sasl->params = params; /* Set protocol dependent parameters */ in Curl_sasl_init() 198 sasl->state = SASL_STOP; /* Not yet running */ in Curl_sasl_init() 199 sasl->curmech = NULL; /* No mechanism yet. */ in Curl_sasl_init() [all …]
|
D | curl_sasl.h | 147 CURLcode Curl_sasl_parse_url_auth_option(struct SASL *sasl, 151 void Curl_sasl_init(struct SASL *sasl, struct Curl_easy *data, 155 bool Curl_sasl_can_authenticate(struct SASL *sasl, struct Curl_easy *data); 158 CURLcode Curl_sasl_start(struct SASL *sasl, struct Curl_easy *data, 162 CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
|
D | openldap.c | 186 struct SASL sasl; /* SASL-related parameters */ member 306 result = Curl_sasl_parse_url_auth_option(&li->sasl, value, ptr - value); in oldap_parse_login_options() 338 Curl_sasl_init(&li->sasl, data, &saslldap); in oldap_setup_connection() 481 CURLcode result = Curl_sasl_start(&li->sasl, data, TRUE, &progress); in oldap_perform_sasl() 593 if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connect() 635 li->sasl.authmechs |= mech; in oldap_state_mechs_resp() 650 if(Curl_sasl_can_authenticate(&li->sasl, data)) in oldap_state_mechs_resp() 683 result = Curl_sasl_continue(&li->sasl, data, code, &progress); in oldap_state_sasl_resp() 763 li->sasl.prefmech == SASL_AUTH_NONE) { in oldap_connecting() 779 if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connecting() [all …]
|
D | pop3.c | 327 pop3c->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanisms yet */ in pop3_perform_capa() 328 pop3c->sasl.authused = SASL_AUTH_NONE; /* Clear the auth. mechanism used */ in pop3_perform_capa() 551 if(!Curl_sasl_can_authenticate(&pop3c->sasl, data)) { in pop3_perform_authentication() 558 result = Curl_sasl_start(&pop3c->sasl, data, FALSE, &progress); in pop3_perform_authentication() 759 pop3c->sasl.authmechs |= mechbit; in pop3_state_capa_resp() 827 result = Curl_sasl_continue(&pop3c->sasl, data, pop3code, &progress); in pop3_state_auth_resp() 1131 Curl_sasl_init(&pop3c->sasl, data, &saslpop3); in pop3_connect() 1278 Curl_sasl_cleanup(conn, pop3c->sasl.authused); in pop3_disconnect() 1384 result = Curl_sasl_parse_url_auth_option(&pop3c->sasl, in pop3_parse_url_options() 1389 pop3c->sasl.prefmech = SASL_AUTH_NONE; in pop3_parse_url_options() [all …]
|
D | smtp.c | 328 smtpc->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanism yet */ in smtp_perform_ehlo() 329 smtpc->sasl.authused = SASL_AUTH_NONE; /* Clear the authentication mechanism in smtp_perform_ehlo() 355 smtpc->sasl.authused = SASL_AUTH_NONE; /* No authentication mechanism used in smtp_perform_helo() 498 !Curl_sasl_can_authenticate(&smtpc->sasl, data)) { in smtp_perform_authentication() 504 result = Curl_sasl_start(&smtpc->sasl, data, FALSE, &progress); in smtp_perform_authentication() 649 if(data->set.str[STRING_MAIL_AUTH] && conn->proto.smtpc.sasl.authused) { in smtp_perform_mail() 950 smtpc->sasl.authmechs |= mechbit; in smtp_state_ehlo_resp() 1013 result = Curl_sasl_continue(&smtpc->sasl, data, smtpcode, &progress); in smtp_state_auth_resp() 1362 Curl_sasl_init(&smtpc->sasl, data, &saslsmtp); in smtp_connect() 1583 Curl_sasl_cleanup(conn, smtpc->sasl.authused); in smtp_disconnect() [all …]
|
D | imap.c | 433 imapc->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanisms yet */ in imap_perform_capability() 434 imapc->sasl.authused = SASL_AUTH_NONE; /* Clear the auth. mechanism used */ in imap_perform_capability() 614 !Curl_sasl_can_authenticate(&imapc->sasl, data)) { in imap_perform_authentication() 620 result = Curl_sasl_start(&imapc->sasl, data, imapc->ir_supported, &progress); in imap_perform_authentication() 948 imapc->sasl.authmechs |= mechbit; in imap_state_capability_resp() 1013 result = Curl_sasl_continue(&imapc->sasl, data, imapcode, &progress); in imap_state_auth_resp() 1474 Curl_sasl_init(&imapc->sasl, data, &saslimap); in imap_connect() 1685 Curl_sasl_cleanup(conn, imapc->sasl.authused); in imap_disconnect() 1912 imapc->sasl.prefmech = SASL_AUTH_NONE; in imap_parse_url_options() 1916 result = Curl_sasl_parse_url_auth_option(&imapc->sasl, in imap_parse_url_options() [all …]
|
D | pop3.h | 69 struct SASL sasl; /* SASL-related storage */ member
|
D | imap.h | 75 struct SASL sasl; /* SASL-related parameters */ member
|
D | smtp.h | 72 struct SASL sasl; /* SASL-related storage */ member
|
/third_party/curl/docs/cmdline-opts/ |
D | sasl-ir.d | 3 Long: sasl-ir 7 Example: --sasl-ir imap://example.com/ 8 See-also: sasl-authzid
|
D | sasl-authzid.d | 3 Long: sasl-authzid 8 Example: --sasl-authzid zid imap://example.com/
|
/third_party/curl/tests/data/ |
D | test885 | 42 'pop3://user;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
|
D | test871 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
|
D | test886 | 42 'pop3://;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
|
D | test872 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
|
D | test848 | 40 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret --sasl-authzid shared-mailbox
|
D | test874 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
|
D | test892 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-authzid shared-mailbox
|
D | test944 | 35 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
|
D | test888 | 43 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
|
D | test945 | 35 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
|
D | test849 | 31 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
|
D | test893 | 33 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u kurt:xipj3plmq --sasl-authzid ursel
|
D | test919 | 35 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
|
D | test873 | 48 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u testuser:testpass --sasl-ir
|