/curl/lib/ |
H A D | curl_sasl.c | 169 if(sasl->resetprefs) { in Curl_sasl_parse_url_auth_option() 262 (void *)sasl, names[sasl->state], names[newstate]); in sasl_state() 267 sasl->state = newstate; in sasl_state() 332 if(sasl->authmechs & sasl->prefmech & SASL_MECH_EXTERNAL) in Curl_sasl_can_authenticate() 368 enabledmechs = sasl->authmechs & sasl->prefmech; in Curl_sasl_start() 563 if(sasl->state != SASL_CANCEL && sasl->state != SASL_OAUTH2_RESP && in Curl_sasl_continue() 570 switch(sasl->state) { in Curl_sasl_continue() 725 sasl->authmechs ^= sasl->authused; in Curl_sasl_continue() 728 return Curl_sasl_start(sasl, data, sasl->force_ir, progress); in Curl_sasl_continue() 740 result = sasl->params->cancelauth(data, sasl->curmech); in Curl_sasl_continue() [all …]
|
H A 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,
|
H A D | smtp.h | 72 struct SASL sasl; /* SASL-related storage */ member
|
H A D | pop3.h | 69 struct SASL sasl; /* SASL-related storage */ member
|
H A D | imap.h | 75 struct SASL sasl; /* SASL-related parameters */ member
|
H A D | openldap.c | 188 struct SASL sasl; /* SASL-related parameters */ member 529 Curl_sasl_init(&li->sasl, data, &saslldap); in oldap_connect() 585 if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connect() 627 li->sasl.authmechs |= mech; in oldap_state_mechs_resp() 642 if(Curl_sasl_can_authenticate(&li->sasl, data)) in oldap_state_mechs_resp() 675 result = Curl_sasl_continue(&li->sasl, data, code, &progress); in oldap_state_sasl_resp() 755 li->sasl.prefmech == SASL_AUTH_NONE) { in oldap_connecting() 771 if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connecting() 781 else if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connecting() 797 if(li->sasl.prefmech != SASL_AUTH_NONE) in oldap_connecting() [all …]
|
H A D | pop3.c | 386 pop3c->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanisms yet */ in pop3_perform_capa() 387 pop3c->sasl.authused = SASL_AUTH_NONE; /* Clear the auth. mechanism used */ in pop3_perform_capa() 610 if(!Curl_sasl_can_authenticate(&pop3c->sasl, data)) { in pop3_perform_authentication() 617 result = Curl_sasl_start(&pop3c->sasl, data, FALSE, &progress); in pop3_perform_authentication() 811 pop3c->sasl.authmechs |= mechbit; in pop3_state_capa_resp() 879 result = Curl_sasl_continue(&pop3c->sasl, data, pop3code, &progress); in pop3_state_auth_resp() 1187 Curl_sasl_init(&pop3c->sasl, data, &saslpop3); in pop3_connect() 1333 Curl_sasl_cleanup(conn, pop3c->sasl.authused); in pop3_disconnect() 1439 result = Curl_sasl_parse_url_auth_option(&pop3c->sasl, in pop3_parse_url_options() 1444 pop3c->sasl.prefmech = SASL_AUTH_NONE; in pop3_parse_url_options() [all …]
|
/curl/docs/cmdline-opts/ |
H A D | sasl-ir.md | 4 Long: sasl-ir 10 - sasl-authzid 12 - --sasl-ir imap://example.com/ 15 # `--sasl-ir`
|
H A D | sasl-authzid.md | 4 Long: sasl-authzid 13 - --sasl-authzid zid imap://example.com/ 16 # `--sasl-authzid`
|
/curl/tests/data/ |
H A D | test871 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
|
H A D | test885 | 42 'pop3://user;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
|
H A D | test886 | 42 'pop3://;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
|
H A D | test848 | 40 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret --sasl-authzid shared-mailbox
|
H A D | test872 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
|
H A D | test874 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
|
H A D | test892 | 42 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-authzid shared-mailbox
|
H A D | test849 | 31 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
|
H A D | test873 | 48 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u testuser:testpass --sasl-ir
|
H A D | test888 | 43 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
|
H A D | test893 | 33 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u kurt:xipj3plmq --sasl-authzid ursel
|
H A D | test919 | 35 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
|
H A D | test920 | 35 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
|
H A D | test944 | 35 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
|
H A D | test945 | 35 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
|
H A D | test921 | 41 …-mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass --sasl-ir -T -
|