stroke_keywords.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2006 Andreas Steffen
  3. * HSR Hochschule fuer Technik Rapperswil
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * for more details.
  14. */
  15. #ifndef _STROKE_KEYWORDS_H_
  16. #define _STROKE_KEYWORDS_H_
  17. typedef enum {
  18. STROKE_ADD,
  19. STROKE_DEL,
  20. STROKE_DELETE,
  21. STROKE_ROUTE,
  22. STROKE_UNROUTE,
  23. STROKE_UP,
  24. STROKE_UP_NOBLK,
  25. STROKE_DOWN,
  26. STROKE_DOWN_NOBLK,
  27. STROKE_DOWN_SRCIP,
  28. STROKE_REKEY,
  29. STROKE_LOGLEVEL,
  30. STROKE_STATUS,
  31. STROKE_STATUSALL,
  32. STROKE_STATUSALL_NOBLK,
  33. STROKE_LIST_PUBKEYS,
  34. STROKE_LIST_CERTS,
  35. STROKE_LIST_CACERTS,
  36. STROKE_LIST_OCSPCERTS,
  37. STROKE_LIST_AACERTS,
  38. STROKE_LIST_ACERTS,
  39. STROKE_LIST_GROUPS,
  40. STROKE_LIST_CAINFOS,
  41. STROKE_LIST_CRLS,
  42. STROKE_LIST_OCSP,
  43. STROKE_LIST_ALGS,
  44. STROKE_LIST_PLUGINS,
  45. STROKE_LIST_ALL,
  46. STROKE_REREAD_SECRETS,
  47. STROKE_REREAD_CACERTS,
  48. STROKE_REREAD_OCSPCERTS,
  49. STROKE_REREAD_AACERTS,
  50. STROKE_REREAD_ACERTS,
  51. STROKE_REREAD_CRLS,
  52. STROKE_REREAD_ALL,
  53. STROKE_PURGE_OCSP,
  54. STROKE_PURGE_CRLS,
  55. STROKE_PURGE_CERTS,
  56. STROKE_PURGE_IKE,
  57. STROKE_EXPORT_X509,
  58. STROKE_EXPORT_CONN_CERT,
  59. STROKE_EXPORT_CONN_CHAIN,
  60. STROKE_LEASES,
  61. STROKE_MEMUSAGE,
  62. STROKE_USER_CREDS,
  63. STROKE_COUNTERS,
  64. STROKE_COUNTERS_RESET,
  65. } stroke_keyword_t;
  66. #define STROKE_LIST_FIRST STROKE_LIST_PUBKEYS
  67. #define STROKE_REREAD_FIRST STROKE_REREAD_SECRETS
  68. #define STROKE_PURGE_FIRST STROKE_PURGE_OCSP
  69. #define STROKE_EXPORT_FIRST STROKE_EXPORT_X509
  70. typedef struct stroke_token stroke_token_t;
  71. extern const stroke_token_t* in_word_set(register const char *str,
  72. register size_t len);
  73. #endif /* _STROKE_KEYWORDS_H_ */