Hardware authentication for Linux using ordinary USB Flash Drives.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. /*
  2. * Copyright (c) 2003-2006 Andrea Luzzardi <scox@sig11.org>
  3. *
  4. * This file is part of the pam_usb project. pam_usb is free software;
  5. * you can redistribute it and/or modify it under the terms of the GNU General
  6. * Public License version 2, as published by the Free Software Foundation.
  7. *
  8. * pam_usb is distributed in the hope that it will be useful, but WITHOUT ANY
  9. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  10. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  11. * details.
  12. *
  13. * You should have received a copy of the GNU General Public License along with
  14. * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  15. * Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef PUSB_HAL_H_
  18. # define PUSB_HAL_H_
  19. DBusConnection *pusb_hal_dbus_connect(void);
  20. void pusb_hal_dbus_disconnect(DBusConnection *dbus);
  21. LibHalContext *pusb_hal_init(DBusConnection *dbus);
  22. void pusb_hal_destroy(LibHalContext *ctx);
  23. char *pusb_hal_get_property(LibHalContext *ctx,
  24. const char *udi,
  25. const char *name);
  26. int pusb_hal_check_property(LibHalContext *ctx,
  27. const char *udi,
  28. const char *name,
  29. const char *value);
  30. char *pusb_hal_find_item(LibHalContext *ctx,
  31. const char *property,
  32. const char *value,
  33. ...);
  34. #endif /* !PUSB_HAL_H_ */