| /dovecot/src/lib-sasl/ |
| H A D | dsasl-client-private.h | 10 const struct dsasl_client_mech *mech; member in struct:dsasl_client 37 void dsasl_client_mech_register(const struct dsasl_client_mech *mech); 38 void dsasl_client_mech_unregister(const struct dsasl_client_mech *mech);
|
| H A D | dsasl-client.c | 32 const char *dsasl_client_mech_get_name(const struct dsasl_client_mech *mech) argument 34 return mech->name; 37 void dsasl_client_mech_register(const struct dsasl_client_mech *mech) argument 41 if (dsasl_client_mech_find_idx(mech->name, &idx) != NULL) { 45 array_append(&dsasl_mechanisms, &mech, 1); 48 void dsasl_client_mech_unregister(const struct dsasl_client_mech *mech) argument 52 if (dsasl_client_mech_find_idx(mech->name, &idx) == NULL) 53 i_panic("SASL mechanism not registered: %s", mech->name); 57 struct dsasl_client *dsasl_client_new(const struct dsasl_client_mech *mech, argument 63 client = p_malloc(pool, mech [all...] |
| /dovecot/src/pop3-login/ |
| H A D | client-authenticate.c | 24 const struct auth_mech_desc *mech; local 39 mech = sasl_server_get_advertised_mechs(&client->common, &count); 42 str_append(str, mech[i].name); 82 const struct auth_mech_desc *mech; local 90 mech = sasl_server_get_advertised_mechs(client, &count); 92 client_send_raw(client, mech[i].name);
|
| /dovecot/src/auth/ |
| H A D | mech.c | 5 #include "mech.h" 59 request->mech->auth_continue(request, data, data_size); 92 const struct mech_module *mech) 97 list->module = *mech; 99 str_printfa(reg->handshake, "MECH\t%s", mech->mech_name); 100 if ((mech->flags & MECH_SEC_PRIVATE) != 0) 102 if ((mech->flags & MECH_SEC_ANONYMOUS) != 0) 104 if ((mech->flags & MECH_SEC_PLAINTEXT) != 0) 106 if ((mech->flags & MECH_SEC_DICTIONARY) != 0) 108 if ((mech 91 mech_register_add(struct mechanisms_register *reg, const struct mech_module *mech) argument 138 const struct mech_module *mech; local [all...] |
| H A D | auth-request-handler.c | 481 const struct mech_module *mech; local 500 mech = &mech_dovecot_token; 501 if (strcmp(list[1], mech->mech_name) != 0) { 510 mech = mech_register_find(auth_default->reg, list[1]); 511 if (mech == NULL) { 520 request = auth_request_new(mech);
|
| H A D | auth-request.h | 6 #include "mech.h" 66 const struct mech_module *mech; member in struct:auth_request 176 auth_request_new(const struct mech_module *mech);
|
| H A D | mech-gssapi.c | 21 #include "mech.h" 779 const struct mech_module *mech; local 781 mech = mech_module_find(mech_gssapi_spnego.mech_name); 782 if (mech != NULL && mech->auth_new == mech_gssapi_auth_new)
|
| H A D | auth-request.c | 80 auth_request_new(const struct mech_module *mech) argument 84 request = mech->auth_new(); 95 request->mech = mech; 96 request->mech_name = mech->mech_name; 272 if (request->mech != NULL) 273 request->mech->auth_free(request); 372 auth_str_add_keyvalue(dest, "mech", request->mech_name); 514 } else if (strcmp(key, "mech") == 0) 533 request->mech 651 auth_request_mechanism_accepted(const char *const *mechs, const struct mech_module *mech) argument [all...] |
| /dovecot/src/imap-login/ |
| H A D | client-authenticate.c | 24 const struct auth_mech_desc *mech; local 27 mech = sasl_server_get_advertised_mechs(client, &count); 31 str_append(str, mech[i].name);
|
| /dovecot/src/lib-auth/ |
| H A D | auth-client.c | 75 const struct auth_mech_desc *mech; local 77 array_foreach(&client->conn->available_auth_mechs, mech) { 78 if (strcasecmp(mech->name, name) == 0) 79 return mech;
|
| H A D | auth-client.h | 42 const char *mech; member in struct:auth_request_info
|
| /dovecot/src/login-common/ |
| H A D | sasl-server.c | 37 const struct auth_mech_desc *mech; local 41 mech = auth_client_get_available_mechs(auth_client, &count); 54 if ((mech[i].flags & MECH_SEC_PRIVATE) == 0 && 56 (mech[i].flags & MECH_SEC_PLAINTEXT) == 0)) 57 ret_mech[j++] = mech[i]; 347 const struct auth_mech_desc *mech; local 359 mech = auth_client_find_mech(auth_client, mech_name); 360 if (mech == NULL) { 368 (mech->flags & MECH_SEC_PLAINTEXT) != 0) { 376 info.mech [all...] |
| /dovecot/src/lib-smtp/ |
| H A D | smtp-client-connection.c | 465 const char *mech = dsasl_client_mech_get_name(set->sasl_mech); local 467 if (!str_array_icase_find(conn->cap_auth_mechanisms, mech)) { 470 mech);
|