str_err.c 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* crypto/store/str_err.c */
  2. /* ====================================================================
  3. * Copyright (c) 1999-2003 The OpenSSL Project. All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. *
  17. * 3. All advertising materials mentioning features or use of this
  18. * software must display the following acknowledgment:
  19. * "This product includes software developed by the OpenSSL Project
  20. * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
  21. *
  22. * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
  23. * endorse or promote products derived from this software without
  24. * prior written permission. For written permission, please contact
  25. * openssl-core@OpenSSL.org.
  26. *
  27. * 5. Products derived from this software may not be called "OpenSSL"
  28. * nor may "OpenSSL" appear in their names without prior written
  29. * permission of the OpenSSL Project.
  30. *
  31. * 6. Redistributions of any form whatsoever must retain the following
  32. * acknowledgment:
  33. * "This product includes software developed by the OpenSSL Project
  34. * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
  35. *
  36. * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
  37. * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  38. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  39. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
  40. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  41. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  42. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  43. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  44. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  45. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  46. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  47. * OF THE POSSIBILITY OF SUCH DAMAGE.
  48. * ====================================================================
  49. *
  50. * This product includes cryptographic software written by Eric Young
  51. * (eay@cryptsoft.com). This product includes software written by Tim
  52. * Hudson (tjh@cryptsoft.com).
  53. *
  54. */
  55. /* NOTE: this file was auto generated by the mkerr.pl script: any changes
  56. * made to it will be overwritten when the script next updates this file,
  57. * only reason strings will be preserved.
  58. */
  59. #include <stdio.h>
  60. #include <openssl/err.h>
  61. #include <openssl/store.h>
  62. /* BEGIN ERROR CODES */
  63. #ifndef OPENSSL_NO_ERR
  64. static ERR_STRING_DATA STORE_str_functs[]=
  65. {
  66. {ERR_PACK(0,STORE_F_CTRL,0), "CTRL"},
  67. {ERR_PACK(0,STORE_F_MEM_DELETE,0), "MEM_DELETE"},
  68. {ERR_PACK(0,STORE_F_MEM_GENERATE,0), "MEM_GENERATE"},
  69. {ERR_PACK(0,STORE_F_MEM_LIST_NEXT,0), "MEM_LIST_NEXT"},
  70. {ERR_PACK(0,STORE_F_MEM_LIST_START,0), "MEM_LIST_START"},
  71. {ERR_PACK(0,STORE_F_MEM_STORE,0), "MEM_STORE"},
  72. {ERR_PACK(0,STORE_F_STORE_ARBITRARY,0), "STORE_ARBITRARY"},
  73. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_GET0_CSTR,0), "STORE_ATTR_INFO_get0_cstr"},
  74. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_GET0_DN,0), "STORE_ATTR_INFO_get0_dn"},
  75. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_GET0_NUMBER,0), "STORE_ATTR_INFO_get0_number"},
  76. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_GET0_SHA1STR,0), "STORE_ATTR_INFO_get0_sha1str"},
  77. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_MODIFY_CSTR,0), "STORE_ATTR_INFO_modify_cstr"},
  78. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_MODIFY_DN,0), "STORE_ATTR_INFO_modify_dn"},
  79. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER,0), "STORE_ATTR_INFO_modify_number"},
  80. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR,0), "STORE_ATTR_INFO_modify_sha1str"},
  81. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_SET_CSTR,0), "STORE_ATTR_INFO_set_cstr"},
  82. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_SET_DN,0), "STORE_ATTR_INFO_set_dn"},
  83. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_SET_NUMBER,0), "STORE_ATTR_INFO_set_number"},
  84. {ERR_PACK(0,STORE_F_STORE_ATTR_INFO_SET_SHA1STR,0), "STORE_ATTR_INFO_set_sha1str"},
  85. {ERR_PACK(0,STORE_F_STORE_CERTIFICATE,0), "STORE_CERTIFICATE"},
  86. {ERR_PACK(0,STORE_F_STORE_CRL,0), "STORE_CRL"},
  87. {ERR_PACK(0,STORE_F_STORE_CTRL,0), "STORE_ctrl"},
  88. {ERR_PACK(0,STORE_F_STORE_DELETE_ARBITRARY,0), "STORE_delete_arbitrary"},
  89. {ERR_PACK(0,STORE_F_STORE_DELETE_CERTIFICATE,0), "STORE_delete_certificate"},
  90. {ERR_PACK(0,STORE_F_STORE_DELETE_CRL,0), "STORE_delete_crl"},
  91. {ERR_PACK(0,STORE_F_STORE_DELETE_NUMBER,0), "STORE_delete_number"},
  92. {ERR_PACK(0,STORE_F_STORE_DELETE_PRIVATE_KEY,0), "STORE_delete_private_key"},
  93. {ERR_PACK(0,STORE_F_STORE_DELETE_PUBLIC_KEY,0), "STORE_delete_public_key"},
  94. {ERR_PACK(0,STORE_F_STORE_GENERATE_CRL,0), "STORE_generate_crl"},
  95. {ERR_PACK(0,STORE_F_STORE_GENERATE_KEY,0), "STORE_generate_key"},
  96. {ERR_PACK(0,STORE_F_STORE_GET_ARBITRARY,0), "STORE_get_arbitrary"},
  97. {ERR_PACK(0,STORE_F_STORE_GET_CERTIFICATE,0), "STORE_get_certificate"},
  98. {ERR_PACK(0,STORE_F_STORE_GET_CRL,0), "STORE_get_crl"},
  99. {ERR_PACK(0,STORE_F_STORE_GET_NUMBER,0), "STORE_get_number"},
  100. {ERR_PACK(0,STORE_F_STORE_GET_PRIVATE_KEY,0), "STORE_get_private_key"},
  101. {ERR_PACK(0,STORE_F_STORE_GET_PUBLIC_KEY,0), "STORE_get_public_key"},
  102. {ERR_PACK(0,STORE_F_STORE_LIST_CERTIFICATE_END,0), "STORE_list_certificate_end"},
  103. {ERR_PACK(0,STORE_F_STORE_LIST_CERTIFICATE_ENDP,0), "STORE_list_certificate_endp"},
  104. {ERR_PACK(0,STORE_F_STORE_LIST_CERTIFICATE_NEXT,0), "STORE_list_certificate_next"},
  105. {ERR_PACK(0,STORE_F_STORE_LIST_CERTIFICATE_START,0), "STORE_list_certificate_start"},
  106. {ERR_PACK(0,STORE_F_STORE_LIST_CRL_END,0), "STORE_list_crl_end"},
  107. {ERR_PACK(0,STORE_F_STORE_LIST_CRL_ENDP,0), "STORE_list_crl_endp"},
  108. {ERR_PACK(0,STORE_F_STORE_LIST_CRL_NEXT,0), "STORE_list_crl_next"},
  109. {ERR_PACK(0,STORE_F_STORE_LIST_CRL_START,0), "STORE_list_crl_start"},
  110. {ERR_PACK(0,STORE_F_STORE_LIST_PRIVATE_KEY_END,0), "STORE_list_private_key_end"},
  111. {ERR_PACK(0,STORE_F_STORE_LIST_PRIVATE_KEY_ENDP,0), "STORE_list_private_key_endp"},
  112. {ERR_PACK(0,STORE_F_STORE_LIST_PRIVATE_KEY_NEXT,0), "STORE_list_private_key_next"},
  113. {ERR_PACK(0,STORE_F_STORE_LIST_PRIVATE_KEY_START,0), "STORE_list_private_key_start"},
  114. {ERR_PACK(0,STORE_F_STORE_LIST_PUBLIC_KEY_END,0), "STORE_list_public_key_end"},
  115. {ERR_PACK(0,STORE_F_STORE_LIST_PUBLIC_KEY_ENDP,0), "STORE_list_public_key_endp"},
  116. {ERR_PACK(0,STORE_F_STORE_LIST_PUBLIC_KEY_NEXT,0), "STORE_list_public_key_next"},
  117. {ERR_PACK(0,STORE_F_STORE_LIST_PUBLIC_KEY_START,0), "STORE_list_public_key_start"},
  118. {ERR_PACK(0,STORE_F_STORE_MODIFY_ARBITRARY,0), "STORE_modify_arbitrary"},
  119. {ERR_PACK(0,STORE_F_STORE_MODIFY_CERTIFICATE,0), "STORE_modify_certificate"},
  120. {ERR_PACK(0,STORE_F_STORE_MODIFY_CRL,0), "STORE_modify_crl"},
  121. {ERR_PACK(0,STORE_F_STORE_MODIFY_NUMBER,0), "STORE_modify_number"},
  122. {ERR_PACK(0,STORE_F_STORE_MODIFY_PRIVATE_KEY,0), "STORE_modify_private_key"},
  123. {ERR_PACK(0,STORE_F_STORE_MODIFY_PUBLIC_KEY,0), "STORE_modify_public_key"},
  124. {ERR_PACK(0,STORE_F_STORE_NEW_ENGINE,0), "STORE_new_engine"},
  125. {ERR_PACK(0,STORE_F_STORE_NEW_METHOD,0), "STORE_new_method"},
  126. {ERR_PACK(0,STORE_F_STORE_NUMBER,0), "STORE_NUMBER"},
  127. {ERR_PACK(0,STORE_F_STORE_PARSE_ATTRS_END,0), "STORE_parse_attrs_end"},
  128. {ERR_PACK(0,STORE_F_STORE_PARSE_ATTRS_NEXT,0), "STORE_parse_attrs_next"},
  129. {ERR_PACK(0,STORE_F_STORE_PRIVATE_KEY,0), "STORE_PRIVATE_KEY"},
  130. {ERR_PACK(0,STORE_F_STORE_PUBLIC_KEY,0), "STORE_PUBLIC_KEY"},
  131. {ERR_PACK(0,STORE_F_STORE_REVOKE_CERTIFICATE,0), "STORE_revoke_certificate"},
  132. {ERR_PACK(0,STORE_F_STORE_REVOKE_PRIVATE_KEY,0), "STORE_revoke_private_key"},
  133. {ERR_PACK(0,STORE_F_STORE_REVOKE_PUBLIC_KEY,0), "STORE_revoke_public_key"},
  134. {0,NULL}
  135. };
  136. static ERR_STRING_DATA STORE_str_reasons[]=
  137. {
  138. {STORE_R_ALREADY_HAS_A_VALUE ,"already has a value"},
  139. {STORE_R_FAILED_DELETING_ARBITRARY ,"failed deleting arbitrary"},
  140. {STORE_R_FAILED_DELETING_CERTIFICATE ,"failed deleting certificate"},
  141. {STORE_R_FAILED_DELETING_KEY ,"failed deleting key"},
  142. {STORE_R_FAILED_DELETING_NUMBER ,"failed deleting number"},
  143. {STORE_R_FAILED_GENERATING_CRL ,"failed generating crl"},
  144. {STORE_R_FAILED_GENERATING_KEY ,"failed generating key"},
  145. {STORE_R_FAILED_GETTING_ARBITRARY ,"failed getting arbitrary"},
  146. {STORE_R_FAILED_GETTING_CERTIFICATE ,"failed getting certificate"},
  147. {STORE_R_FAILED_GETTING_KEY ,"failed getting key"},
  148. {STORE_R_FAILED_GETTING_NUMBER ,"failed getting number"},
  149. {STORE_R_FAILED_LISTING_CERTIFICATES ,"failed listing certificates"},
  150. {STORE_R_FAILED_LISTING_KEYS ,"failed listing keys"},
  151. {STORE_R_FAILED_MODIFYING_ARBITRARY ,"failed modifying arbitrary"},
  152. {STORE_R_FAILED_MODIFYING_CERTIFICATE ,"failed modifying certificate"},
  153. {STORE_R_FAILED_MODIFYING_CRL ,"failed modifying crl"},
  154. {STORE_R_FAILED_MODIFYING_NUMBER ,"failed modifying number"},
  155. {STORE_R_FAILED_MODIFYING_PRIVATE_KEY ,"failed modifying private key"},
  156. {STORE_R_FAILED_MODIFYING_PUBLIC_KEY ,"failed modifying public key"},
  157. {STORE_R_FAILED_REVOKING_CERTIFICATE ,"failed revoking certificate"},
  158. {STORE_R_FAILED_REVOKING_KEY ,"failed revoking key"},
  159. {STORE_R_FAILED_STORING_ARBITRARY ,"failed storing arbitrary"},
  160. {STORE_R_FAILED_STORING_CERTIFICATE ,"failed storing certificate"},
  161. {STORE_R_FAILED_STORING_KEY ,"failed storing key"},
  162. {STORE_R_FAILED_STORING_NUMBER ,"failed storing number"},
  163. {STORE_R_NOT_IMPLEMENTED ,"not implemented"},
  164. {STORE_R_NO_CONTROL_FUNCTION ,"no control function"},
  165. {STORE_R_NO_DELETE_ARBITRARY_FUNCTION ,"no delete arbitrary function"},
  166. {STORE_R_NO_DELETE_NUMBER_FUNCTION ,"no delete number function"},
  167. {STORE_R_NO_DELETE_OBJECT_FUNCTION ,"no delete object function"},
  168. {STORE_R_NO_GENERATE_CRL_FUNCTION ,"no generate crl function"},
  169. {STORE_R_NO_GENERATE_OBJECT_FUNCTION ,"no generate object function"},
  170. {STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION,"no get object arbitrary function"},
  171. {STORE_R_NO_GET_OBJECT_FUNCTION ,"no get object function"},
  172. {STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION ,"no get object number function"},
  173. {STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION ,"no list object endp function"},
  174. {STORE_R_NO_LIST_OBJECT_END_FUNCTION ,"no list object end function"},
  175. {STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION ,"no list object next function"},
  176. {STORE_R_NO_LIST_OBJECT_START_FUNCTION ,"no list object start function"},
  177. {STORE_R_NO_MODIFY_OBJECT_FUNCTION ,"no modify object function"},
  178. {STORE_R_NO_REVOKE_OBJECT_FUNCTION ,"no revoke object function"},
  179. {STORE_R_NO_STORE ,"no store"},
  180. {STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION,"no store object arbitrary function"},
  181. {STORE_R_NO_STORE_OBJECT_FUNCTION ,"no store object function"},
  182. {STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION ,"no store object number function"},
  183. {STORE_R_NO_VALUE ,"no value"},
  184. {0,NULL}
  185. };
  186. #endif
  187. void ERR_load_STORE_strings(void)
  188. {
  189. static int init=1;
  190. if (init)
  191. {
  192. init=0;
  193. #ifndef OPENSSL_NO_ERR
  194. ERR_load_strings(ERR_LIB_STORE,STORE_str_functs);
  195. ERR_load_strings(ERR_LIB_STORE,STORE_str_reasons);
  196. #endif
  197. }
  198. }