2
0

dsa_err.c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the OpenSSL license (the "License"). You may not use
  6. * this file except in compliance with the License. You can obtain a copy
  7. * in the file LICENSE in the source distribution or at
  8. * https://www.openssl.org/source/license.html
  9. */
  10. #include <stdio.h>
  11. #include <openssl/err.h>
  12. #include <openssl/dsa.h>
  13. /* BEGIN ERROR CODES */
  14. #ifndef OPENSSL_NO_ERR
  15. # define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0)
  16. # define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason)
  17. static ERR_STRING_DATA DSA_str_functs[] = {
  18. {ERR_FUNC(DSA_F_DSAPARAMS_PRINT), "DSAparams_print"},
  19. {ERR_FUNC(DSA_F_DSAPARAMS_PRINT_FP), "DSAparams_print_fp"},
  20. {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN), "dsa_builtin_paramgen"},
  21. {ERR_FUNC(DSA_F_DSA_BUILTIN_PARAMGEN2), "dsa_builtin_paramgen2"},
  22. {ERR_FUNC(DSA_F_DSA_DO_SIGN), "DSA_do_sign"},
  23. {ERR_FUNC(DSA_F_DSA_DO_VERIFY), "DSA_do_verify"},
  24. {ERR_FUNC(DSA_F_DSA_METH_DUP), "DSA_meth_dup"},
  25. {ERR_FUNC(DSA_F_DSA_METH_NEW), "DSA_meth_new"},
  26. {ERR_FUNC(DSA_F_DSA_METH_SET1_NAME), "DSA_meth_set1_name"},
  27. {ERR_FUNC(DSA_F_DSA_NEW_METHOD), "DSA_new_method"},
  28. {ERR_FUNC(DSA_F_DSA_PARAM_DECODE), "dsa_param_decode"},
  29. {ERR_FUNC(DSA_F_DSA_PRINT_FP), "DSA_print_fp"},
  30. {ERR_FUNC(DSA_F_DSA_PRIV_DECODE), "dsa_priv_decode"},
  31. {ERR_FUNC(DSA_F_DSA_PRIV_ENCODE), "dsa_priv_encode"},
  32. {ERR_FUNC(DSA_F_DSA_PUB_DECODE), "dsa_pub_decode"},
  33. {ERR_FUNC(DSA_F_DSA_PUB_ENCODE), "dsa_pub_encode"},
  34. {ERR_FUNC(DSA_F_DSA_SIGN), "DSA_sign"},
  35. {ERR_FUNC(DSA_F_DSA_SIGN_SETUP), "DSA_sign_setup"},
  36. {ERR_FUNC(DSA_F_DSA_SIG_NEW), "DSA_SIG_new"},
  37. {ERR_FUNC(DSA_F_OLD_DSA_PRIV_DECODE), "old_dsa_priv_decode"},
  38. {ERR_FUNC(DSA_F_PKEY_DSA_CTRL), "pkey_dsa_ctrl"},
  39. {ERR_FUNC(DSA_F_PKEY_DSA_KEYGEN), "pkey_dsa_keygen"},
  40. {0, NULL}
  41. };
  42. static ERR_STRING_DATA DSA_str_reasons[] = {
  43. {ERR_REASON(DSA_R_BAD_Q_VALUE), "bad q value"},
  44. {ERR_REASON(DSA_R_BN_DECODE_ERROR), "bn decode error"},
  45. {ERR_REASON(DSA_R_BN_ERROR), "bn error"},
  46. {ERR_REASON(DSA_R_DECODE_ERROR), "decode error"},
  47. {ERR_REASON(DSA_R_INVALID_DIGEST_TYPE), "invalid digest type"},
  48. {ERR_REASON(DSA_R_INVALID_PARAMETERS), "invalid parameters"},
  49. {ERR_REASON(DSA_R_MISSING_PARAMETERS), "missing parameters"},
  50. {ERR_REASON(DSA_R_MODULUS_TOO_LARGE), "modulus too large"},
  51. {ERR_REASON(DSA_R_NO_PARAMETERS_SET), "no parameters set"},
  52. {ERR_REASON(DSA_R_PARAMETER_ENCODING_ERROR), "parameter encoding error"},
  53. {ERR_REASON(DSA_R_Q_NOT_PRIME), "q not prime"},
  54. {ERR_REASON(DSA_R_SEED_LEN_SMALL),
  55. "seed_len is less than the length of q"},
  56. {0, NULL}
  57. };
  58. #endif
  59. int ERR_load_DSA_strings(void)
  60. {
  61. #ifndef OPENSSL_NO_ERR
  62. if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) {
  63. ERR_load_strings(0, DSA_str_functs);
  64. ERR_load_strings(0, DSA_str_reasons);
  65. }
  66. #endif
  67. return 1;
  68. }