Lines Matching defs:mech
163 const DBusAuthMechanismHandler *mech; /**< Current auth mechanism */
188 unsigned int already_got_mechanisms : 1; /**< Client already got mech list */
226 const DBusAuthMechanismHandler *mech);
427 if (auth->mech != NULL)
430 DBUS_AUTH_NAME (auth), auth->mech->mechanism);
433 (* auth->mech->client_shutdown_func) (auth);
435 (* auth->mech->server_shutdown_func) (auth);
437 auth->mech = NULL;
1352 send_auth (DBusAuth *auth, const DBusAuthMechanismHandler *mech)
1367 mech->mechanism))
1373 if (mech->client_initial_response_func != NULL)
1381 if (!(* mech->client_initial_response_func) (auth, &auth_command))
1405 auth->mech = mech;
1678 DBusString mech;
1683 if (!_dbus_string_init (&mech))
1688 _dbus_string_free (&mech);
1692 if (!_dbus_string_copy_len (args, 0, i, &mech, 0))
1699 auth->mech = find_mech (&mech, auth->allowed_mechs);
1700 if (auth->mech != NULL)
1704 auth->mech->mechanism);
1707 auth->mech->server_data_func))
1715 _dbus_string_get_const_data (&mech));
1721 _dbus_string_free (&mech);
1727 auth->mech = NULL;
1728 _dbus_string_free (&mech);
1782 return process_data (auth, args, auth->mech->server_data_func);
1874 const DBusAuthMechanismHandler *mech;
1885 mech = find_mech (&m, auth->allowed_mechs);
1887 if (mech != NULL)
1898 if (mech != &all_mechanisms[0])
1901 DBUS_AUTH_NAME (auth), mech->mechanism);
1904 (void*) mech))
1913 DBUS_AUTH_NAME (auth), mech->mechanism);
1939 const DBusAuthMechanismHandler *mech;
1952 mech = client->mechs_to_try->data;
1954 if (!send_auth (auth, mech))
1961 mech->mechanism);
1980 _dbus_assert (auth->mech != NULL);
1985 return process_data (auth, args, auth->mech->client_data_func);
2598 if (auth->mech != NULL)
2601 return auth->mech->client_encode_func != NULL;
2603 return auth->mech->server_encode_func != NULL;
2632 return (* auth->mech->client_encode_func) (auth, plaintext, encoded);
2634 return (* auth->mech->server_encode_func) (auth, plaintext, encoded);
2657 if (auth->mech != NULL)
2660 return auth->mech->client_decode_func != NULL;
2662 return auth->mech->server_decode_func != NULL;
2695 return (* auth->mech->client_decode_func) (auth, encoded, plaintext);
2697 return (* auth->mech->server_decode_func) (auth, encoded, plaintext);