/third_party/curl/lib/ |
H A D | curl_sasl.h | 100 CURLcode (*sendauth)(struct Curl_easy *data, const char *mech, 103 CURLcode (*contauth)(struct Curl_easy *data, const char *mech, 106 CURLcode (*cancelauth)(struct Curl_easy *data, const char *mech); 134 #define sasl_mech_equal(line, wordlen, mech) \ 135 (wordlen == (sizeof(mech) - 1) / sizeof(char) && \ 136 !memcmp(line, mech, wordlen))
|
H A D | krb5.c | 540 nread = conn->mech->decode(conn->app_data, buf->data, len, in read_data() 620 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, in do_sec_send() 687 /* decoded_len should be size_t or ssize_t but conn->mech->decode returns an in Curl_sec_read_msg() 697 if(!conn->mech) in Curl_sec_read_msg() 713 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len, in Curl_sec_read_msg() 818 const struct Curl_sec_client_mech *mech = &Curl_krb5_client_mech; in choose_mech() local 820 tmp_allocation = realloc(conn->app_data, mech->size); in choose_mech() 822 failf(data, "Failed realloc of size %zu", mech->size); in choose_mech() 823 mech = NULL; in choose_mech() 828 if(mech in choose_mech() [all...] |
H A D | curl_sasl.c | 349 const char *mech = NULL; in Curl_sasl_start() local 374 mech = SASL_MECH_STRING_EXTERNAL; in Curl_sasl_start() 386 mech = SASL_MECH_STRING_GSSAPI; in Curl_sasl_start() 406 mech = SASL_MECH_STRING_SCRAM_SHA_256; in Curl_sasl_start() 419 mech = SASL_MECH_STRING_SCRAM_SHA_1; in Curl_sasl_start() 434 mech = SASL_MECH_STRING_DIGEST_MD5; in Curl_sasl_start() 439 mech = SASL_MECH_STRING_CRAM_MD5; in Curl_sasl_start() 447 mech = SASL_MECH_STRING_NTLM; in Curl_sasl_start() 462 mech = SASL_MECH_STRING_OAUTHBEARER; in Curl_sasl_start() 475 mech in Curl_sasl_start() [all...] |
H A D | openldap.c | 106 static CURLcode oldap_perform_auth(struct Curl_easy *data, const char *mech, 108 static CURLcode oldap_continue_auth(struct Curl_easy *data, const char *mech, 110 static CURLcode oldap_cancel_auth(struct Curl_easy *data, const char *mech); 347 static CURLcode oldap_perform_auth(struct Curl_easy *data, const char *mech, in oldap_perform_auth() argument 361 rc = ldap_sasl_bind(li->ld, NULL, mech, pcred, NULL, NULL, &li->msgid); in oldap_perform_auth() 370 static CURLcode oldap_continue_auth(struct Curl_easy *data, const char *mech, in oldap_continue_auth() argument 384 rc = ldap_sasl_bind(li->ld, NULL, mech, pcred, NULL, NULL, &li->msgid); in oldap_continue_auth() 393 static CURLcode oldap_cancel_auth(struct Curl_easy *data, const char *mech) in oldap_cancel_auth() argument 400 (void)mech; in oldap_cancel_auth() 633 unsigned short mech in oldap_state_mechs_resp() local [all...] |
H A D | smtp.c | 108 static CURLcode smtp_perform_auth(struct Curl_easy *data, const char *mech, 110 static CURLcode smtp_continue_auth(struct Curl_easy *data, const char *mech, 112 static CURLcode smtp_cancel_auth(struct Curl_easy *data, const char *mech); 429 const char *mech, in smtp_perform_auth() 436 if(ir) { /* AUTH <mech> ...<crlf> */ in smtp_perform_auth() 438 result = Curl_pp_sendf(data, &smtpc->pp, "AUTH %s %s", mech, ir); in smtp_perform_auth() 442 result = Curl_pp_sendf(data, &smtpc->pp, "AUTH %s", mech); in smtp_perform_auth() 455 const char *mech, in smtp_continue_auth() 460 (void)mech; in smtp_continue_auth() 472 static CURLcode smtp_cancel_auth(struct Curl_easy *data, const char *mech) in smtp_cancel_auth() argument 428 smtp_perform_auth(struct Curl_easy *data, const char *mech, const struct bufref *initresp) smtp_perform_auth() argument 454 smtp_continue_auth(struct Curl_easy *data, const char *mech, const struct bufref *resp) smtp_continue_auth() argument [all...] |
H A D | imap.c | 106 const char *mech, 109 const char *mech, 112 const char *mech); 545 const char *mech, in imap_perform_authenticate() 553 result = imap_sendf(data, "AUTHENTICATE %s %s", mech, ir); in imap_perform_authenticate() 557 result = imap_sendf(data, "AUTHENTICATE %s", mech); in imap_perform_authenticate() 570 const char *mech, in imap_continue_authenticate() 575 (void)mech; in imap_continue_authenticate() 588 const char *mech) in imap_cancel_authenticate() 592 (void)mech; in imap_cancel_authenticate() 544 imap_perform_authenticate(struct Curl_easy *data, const char *mech, const struct bufref *initresp) imap_perform_authenticate() argument 569 imap_continue_authenticate(struct Curl_easy *data, const char *mech, const struct bufref *resp) imap_continue_authenticate() argument 587 imap_cancel_authenticate(struct Curl_easy *data, const char *mech) imap_cancel_authenticate() argument [all...] |
H A D | pop3.c | 103 static CURLcode pop3_perform_auth(struct Curl_easy *data, const char *mech, 105 static CURLcode pop3_continue_auth(struct Curl_easy *data, const char *mech, 107 static CURLcode pop3_cancel_auth(struct Curl_easy *data, const char *mech); 483 const char *mech, in pop3_perform_auth() 490 if(ir) { /* AUTH <mech> ...<crlf> */ in pop3_perform_auth() 492 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s %s", mech, ir); in pop3_perform_auth() 496 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s", mech); in pop3_perform_auth() 509 const char *mech, in pop3_continue_auth() 514 (void)mech; in pop3_continue_auth() 526 static CURLcode pop3_cancel_auth(struct Curl_easy *data, const char *mech) in pop3_cancel_auth() argument 482 pop3_perform_auth(struct Curl_easy *data, const char *mech, const struct bufref *initresp) pop3_perform_auth() argument 508 pop3_continue_auth(struct Curl_easy *data, const char *mech, const struct bufref *resp) pop3_continue_auth() argument [all...] |
H A D | urldata.h | 984 const struct Curl_sec_client_mech *mech; member
|
/third_party/curl/lib/vauth/ |
H A D | gsasl.c | 45 const char *mech, in Curl_auth_gsasl_is_supported() 56 res = gsasl_client_start(gsasl->ctx, mech, &gsasl->client); in Curl_auth_gsasl_is_supported() 44 Curl_auth_gsasl_is_supported(struct Curl_easy *data, const char *mech, struct gsasldata *gsasl) Curl_auth_gsasl_is_supported() argument
|
H A D | vauth.h | 127 const char *mech,
|
/third_party/python/Lib/ |
H A D | imaplib.py | 436 mech = mechanism.upper() 438 #cap = 'AUTH=%s' % mech 440 # raise self.error("Server doesn't allow %s authentication." % mech) 442 typ, dat = self._simple_command('AUTHENTICATE', mech) 1405 self.mech = mechinst # Callable object to provide/process data 1408 ret = self.mech(self.decode(data))
|