Lines Matching +refs:gpg +refs:err +refs:code
1 /* strerror-sym.c - Describing an error code with its symbol name.
27 #include <gpg-error.h>
29 #include "err-codes-sym.h"
33 the error code in the error value ERR. Returns NULL if the error
34 code is not known. */
36 gpg_strerror_sym (gpg_error_t err)
38 gpg_err_code_t code = gpg_err_code (err);
40 if (code & GPG_ERR_SYSTEM_ERROR)
44 code &= ~GPG_ERR_SYSTEM_ERROR;
45 idx = errnos_msgidxof (code);
52 if (msgidxof (code) == msgidxof (GPG_ERR_CODE_DIM))
55 return msgstr + msgidx[msgidxof (code)];