Home
last modified time | relevance | path

Searched refs:sasl (Results 1 – 25 of 39) 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, const struct SASLproto *params) in Curl_sasl_init() argument
194 sasl->params = params; /* Set protocol dependent parameters */ in Curl_sasl_init()
195 sasl->state = SASL_STOP; /* Not yet running */ in Curl_sasl_init()
196 sasl->authmechs = SASL_AUTH_NONE; /* No known authentication mechanism yet */ in Curl_sasl_init()
[all …]
Dcurl_sasl.h133 CURLcode Curl_sasl_parse_url_auth_option(struct SASL *sasl,
137 void Curl_sasl_init(struct SASL *sasl, const struct SASLproto *params);
140 bool Curl_sasl_can_authenticate(struct SASL *sasl, struct connectdata *conn);
143 CURLcode Curl_sasl_start(struct SASL *sasl, struct Curl_easy *data,
148 CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data,
Dpop3.c331 pop3c->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanisms yet */ in pop3_perform_capa()
332 pop3c->sasl.authused = SASL_AUTH_NONE; /* Clear the auth. mechanism used */ in pop3_perform_capa()
529 if(!Curl_sasl_can_authenticate(&pop3c->sasl, conn)) { in pop3_perform_authentication()
536 result = Curl_sasl_start(&pop3c->sasl, data, conn, FALSE, &progress); in pop3_perform_authentication()
737 pop3c->sasl.authmechs |= mechbit; in pop3_state_capa_resp()
805 result = Curl_sasl_continue(&pop3c->sasl, data, conn, pop3code, &progress); in pop3_state_auth_resp()
1106 Curl_sasl_init(&pop3c->sasl, &saslpop3); in pop3_connect()
1254 Curl_sasl_cleanup(conn, pop3c->sasl.authused); in pop3_disconnect()
1347 pop3c->sasl.resetprefs = TRUE; in pop3_parse_url_options()
1362 result = Curl_sasl_parse_url_auth_option(&pop3c->sasl, in pop3_parse_url_options()
[all …]
Dsmtp.c331 smtpc->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanism yet */ in smtp_perform_ehlo()
332 smtpc->sasl.authused = SASL_AUTH_NONE; /* Clear the authentication mechanism in smtp_perform_ehlo()
358 smtpc->sasl.authused = SASL_AUTH_NONE; /* No authentication mechanism used in smtp_perform_helo()
475 !Curl_sasl_can_authenticate(&smtpc->sasl, conn)) { in smtp_perform_authentication()
481 result = Curl_sasl_start(&smtpc->sasl, data, conn, FALSE, &progress); in smtp_perform_authentication()
626 if(data->set.str[STRING_MAIL_AUTH] && conn->proto.smtpc.sasl.authused) { in smtp_perform_mail()
926 smtpc->sasl.authmechs |= mechbit; in smtp_state_ehlo_resp()
989 result = Curl_sasl_continue(&smtpc->sasl, data, conn, smtpcode, &progress); in smtp_state_auth_resp()
1337 Curl_sasl_init(&smtpc->sasl, &saslsmtp); in smtp_connect()
1559 Curl_sasl_cleanup(conn, smtpc->sasl.authused); in smtp_disconnect()
[all …]
Dimap.c436 imapc->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanisms yet */ in imap_perform_capability()
437 imapc->sasl.authused = SASL_AUTH_NONE; /* Clear the auth. mechanism used */ in imap_perform_capability()
592 !Curl_sasl_can_authenticate(&imapc->sasl, conn)) { in imap_perform_authentication()
598 result = Curl_sasl_start(&imapc->sasl, data, conn, in imap_perform_authentication()
932 imapc->sasl.authmechs |= mechbit; in imap_state_capability_resp()
997 result = Curl_sasl_continue(&imapc->sasl, data, conn, imapcode, &progress); in imap_state_auth_resp()
1445 Curl_sasl_init(&imapc->sasl, &saslimap); in imap_connect()
1656 Curl_sasl_cleanup(conn, imapc->sasl.authused); in imap_disconnect()
1915 imapc->sasl.resetprefs = TRUE; in imap_parse_url_options()
1930 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.h76 struct SASL sasl; /* SASL-related parameters */ member
Dsmtp.h73 struct SASL sasl; /* SASL-related storage */ member
/third_party/curl/docs/cmdline-opts/
Dsasl-ir.d1 Long: sasl-ir
Dsasl-authzid.d1 Long: sasl-authzid
/third_party/curl/tests/data/
Dtest88542 'pop3://user;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
Dtest88642 'pop3://;AUTH=EXTERNAL@%HOSTIP:%POP3PORT/%TESTNUMBER' --sasl-ir
Dtest87142 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-ir
Dtest89242 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --sasl-authzid shared-mailbox
Dtest87442 pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --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
Dtest92035 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --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
Dtest94435 …TPPORT/%TESTNUMBER' --mail-rcpt recipient@example.com --mail-from sender@example.com --sasl-ir -T -
Dtest91935 …MBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --sasl-ir -T -
Dtest92235 …t@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -

12