pam_tokens.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * pam_tokens.h
  3. *
  4. * $Id$
  5. *
  6. * This is a Linux-PAM Library Private Header file. It contains tokens
  7. * that are used when we parse the configuration file(s).
  8. *
  9. * Please see end of file for copyright.
  10. *
  11. * Creator: Andrew Morgan.
  12. *
  13. */
  14. #ifndef _PAM_TOKENS_H
  15. #define _PAM_TOKENS_H
  16. /* an array of actions */
  17. #ifndef LIBPAM_COMPILE
  18. static
  19. #endif
  20. const char * const _pam_token_actions[-_PAM_ACTION_UNDEF] = {
  21. "ignore", /* 0 */
  22. "ok", /* -1 */
  23. "done", /* -2 */
  24. "bad", /* -3 */
  25. "die", /* -4 */
  26. "reset", /* -5 */
  27. };
  28. /* an array of possible return values */
  29. #ifndef LIBPAM_COMPILE
  30. static
  31. #endif
  32. const char * const _pam_token_returns[_PAM_RETURN_VALUES+1] = {
  33. "success", /* 0 */
  34. "open_err", /* 1 */
  35. "symbol_err", /* 2 */
  36. "service_err", /* 3 */
  37. "system_err", /* 4 */
  38. "buf_err", /* 5 */
  39. "perm_denied", /* 6 */
  40. "auth_err", /* 7 */
  41. "cred_insufficient", /* 8 */
  42. "authinfo_unavail", /* 9 */
  43. "user_unknown", /* 10 */
  44. "maxtries", /* 11 */
  45. "new_authtok_reqd", /* 12 */
  46. "acct_expired", /* 13 */
  47. "session_err", /* 14 */
  48. "cred_unavail", /* 15 */
  49. "cred_expired", /* 16 */
  50. "cred_err", /* 17 */
  51. "no_module_data", /* 18 */
  52. "conv_err", /* 19 */
  53. "authtok_err", /* 20 */
  54. "authtok_recover_err", /* 21 */
  55. "authtok_lock_busy", /* 22 */
  56. "authtok_disable_aging", /* 23 */
  57. "try_again", /* 24 */
  58. "ignore", /* 25 */
  59. "abort", /* 26 */
  60. "authtok_expired", /* 27 */
  61. "module_unknown", /* 28 */
  62. "bad_item", /* 29 */
  63. "conv_again", /* 30 */
  64. "incomplete", /* 31 */
  65. /* add new return codes here */
  66. "default" /* this is _PAM_RETURN_VALUES and indicates
  67. the default return action */
  68. };
  69. /*
  70. * Copyright (C) 1998,2001 Andrew G. Morgan <morgan@kernel.org>
  71. *
  72. * All rights reserved
  73. *
  74. * Redistribution and use in source and binary forms, with or without
  75. * modification, are permitted provided that the following conditions
  76. * are met:
  77. * 1. Redistributions of source code must retain the above copyright
  78. * notice, and the entire permission notice in its entirety,
  79. * including the disclaimer of warranties.
  80. * 2. Redistributions in binary form must reproduce the above copyright
  81. * notice, this list of conditions and the following disclaimer in the
  82. * documentation and/or other materials provided with the distribution.
  83. * 3. The name of the author may not be used to endorse or promote
  84. * products derived from this software without specific prior
  85. * written permission.
  86. *
  87. * ALTERNATIVELY, this product may be distributed under the terms of
  88. * the GNU Public License, in which case the provisions of the GPL are
  89. * required INSTEAD OF the above restrictions. (This clause is
  90. * necessary due to a potential bad interaction between the GPL and
  91. * the restrictions contained in a BSD-style copyright.)
  92. *
  93. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  94. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  95. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  96. * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
  97. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  98. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  99. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  100. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  101. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  102. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  103. * OF THE POSSIBILITY OF SUCH DAMAGE.
  104. */
  105. #endif /* _PAM_PRIVATE_H_ */