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.

31 lines
1.5 KiB

  1. /*
  2. * Copyright (c) 2003-2007 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., 51 Franklin
  15. * Street, Fifth Floor, Boston, MA 02110-1301 USA
  16. */
  17. #ifndef PUSB_XPATH_H_
  18. # define PUSB_XPATH_H_
  19. # include <libxml/parser.h>
  20. int pusb_xpath_get_string(xmlDocPtr doc, const char *path, char *value, size_t size);
  21. int pusb_xpath_get_string_from(xmlDocPtr doc, const char *base, const char *path, char *value, size_t size);
  22. int pusb_xpath_get_bool(xmlDocPtr doc, const char *path, int *value);
  23. int pusb_xpath_get_bool_from(xmlDocPtr doc, const char *base, const char *path, int *value);
  24. int pusb_xpath_get_time(xmlDocPtr doc, const char *path, time_t *value);
  25. int pusb_xpath_get_time_from(xmlDocPtr doc, const char *base, const char *path, time_t *value);
  26. int pusb_xpath_get_int(xmlDocPtr doc, const char *path, int *value);
  27. int pusb_xpath_get_int_from(xmlDocPtr doc, const char *base, const char *path, int *value);
  28. #endif /* !PUSB_XPATH_H_ */