/* * AUTHORS * Sven Herzberg * * Copyright (C) 2006 Sven Herzberg * * This work is provided "as is"; redistribution and modification * in whole or in part, in any medium, physical or electronic is * permitted without restriction. * * This work is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * In no event shall the authors or contributors be liable for any * direct, indirect, incidental, special, exemplary, or consequential * damages (including, but not limited to, procurement of substitute * goods or services; loss of use, data, or profits; or business * interruption) however caused and on any theory of liability, whether * in contract, strict liability, or tort (including negligence or * otherwise) arising in any way out of the use of this software, even * if advised of the possibility of such damage. */ #include int main(int argc, char** argv) { GnomeKeyringAttributeList* attributes; GList* found; g_set_application_name("I am the bastard to crash gnome keyring"); if(!gnome_keyring_is_available()) { g_warning("Please run with a Gnome Keyring Daemon"); return 1; } attributes = gnome_keyring_attribute_list_new(); gnome_keyring_attribute_list_append_string(attributes, "user", NULL); gnome_keyring_attribute_list_append_string(attributes, "server", "localhost"); gnome_keyring_attribute_list_append_uint32(attributes, "port", 389); gnome_keyring_attribute_list_append_string(attributes, "protocol", "ldap"); gnome_keyring_find_items_sync(GNOME_KEYRING_ITEM_NETWORK_PASSWORD, attributes, &found); gnome_keyring_attribute_list_free(attributes); return 0; }