Home
last modified time | relevance | path

Searched refs:sasl (Results 1 – 25 of 41) sorted by relevance

12

/third_party/curl/lib/
Dcurl_sasl.c160 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 …]
Dcurl_sasl.h147 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,
Dopenldap.c186 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 …]
Dpop3.c327 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 …]
Dsmtp.c328 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 …]
Dimap.c433 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 …]
Dpop3.h69 struct SASL sasl; /* SASL-related storage */ member
Dimap.h75 struct SASL sasl; /* SASL-related parameters */ member
Dsmtp.h72 struct SASL sasl; /* SASL-related storage */ member
/third_party/curl/docs/cmdline-opts/
Dsasl-ir.d3 Long: sasl-ir
7 Example: --sasl-ir imap://example.com/
8 See-also: sasl-authzid
Dsasl-authzid.d3 Long: sasl-authzid
8 Example: --sasl-authzid zid imap://example.com/
/third_party/curl/tests/data/
Dtest88542 'pop3://user;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
Dtest87142 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
Dtest88642 'pop3://;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
Dtest87242 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
Dtest84840 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret --sasl-authzid shared-mailbox
Dtest87442 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
Dtest89242 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-authzid shared-mailbox
Dtest94435 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
Dtest88843 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
Dtest94535 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
Dtest84931 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u kurt:xipj3plmq --sasl-authzid ursel
Dtest89333 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u kurt:xipj3plmq --sasl-authzid ursel
Dtest91935 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
Dtest87348 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u testuser:testpass --sasl-ir

12