28 #define _(String) dgettext (PACKAGE, String)
29 #define gettext_noop(String) String
30 #define N_(String) gettext_noop (String)
32 #define ERR(name, desc) { name, #name, desc }
45 N_(
"SASL mechanism called too many times")),
72 N_(
"Could not prepare internationalized (non-ASCII) string.")),
74 N_(
"SASL mechanism could not parse input")),
80 N_(
"Client-side functionality not available in library "
81 "(application error)")),
83 N_(
"Server-side functionality not available in library "
84 "(application error)")),
86 N_(
"GSSAPI library could not deallocate memory in "
87 "gss_release_buffer() in SASL library. This is a serious "
90 N_(
"GSSAPI library could not understand a peer name in "
91 "gss_import_name() in SASL library. This is most likely due "
92 "to incorrect service and/or hostnames.")),
94 N_(
"GSSAPI error in client while negotiating security context in "
95 "gss_init_sec_context() in SASL library. This is most likely "
96 "due insufficient credentials or malicious interactions.")),
98 N_(
"GSSAPI error in server while negotiating security context in "
99 "gss_accept_sec_context() in SASL library. This is most likely due "
100 "insufficient credentials or malicious interactions.")),
102 N_(
"GSSAPI error while decrypting or decoding data in gss_unwrap() in "
103 "SASL library. This is most likely due to data corruption.")),
105 N_(
"GSSAPI error while encrypting or encoding data in gss_wrap() in "
108 N_(
"GSSAPI error acquiring credentials in gss_acquire_cred() in "
109 "SASL library. This is most likely due to not having the proper "
110 "Kerberos key available in /etc/krb5.keytab on the server.")),
112 N_(
"GSSAPI error creating a display name denoting the client in "
113 "gss_display_name() in SASL library. This is probably because "
114 "the client supplied bad data.")),
116 N_(
"Other entity requested integrity or confidentiality protection "
117 "in GSSAPI mechanism but this is currently not implemented.")),
121 N_(
"SecurID needs additional passcode.")),
123 N_(
"SecurID needs new pin.")),
126 N_(
"No callback specified by caller (application error).")),
128 N_(
"Authentication failed because the anonymous token was "
131 N_(
"Authentication failed because the authentication identity was "
134 N_(
"Authentication failed because the authorization identity was "
137 N_(
"Authentication failed because the password was not provided.")),
139 N_(
"Authentication failed because the passcode was not provided.")),
141 N_(
"Authentication failed because the pin code was not provided.")),
143 N_(
"Authentication failed because the service name was not provided.")),
145 N_(
"Authentication failed because the host name was not provided.")),
147 N_(
"GSSAPI error encapsulating token.")),
149 N_(
"GSSAPI error decapsulating token.")),
151 N_(
"GSSAPI error getting OID for SASL mechanism name.")),
153 N_(
"GSSAPI error testing for OID in OID set.")),
155 N_(
"GSSAPI error releasing OID set.")),
157 N_(
"Authentication failed because a tls-unique CB was not provided.")),
159 N_(
"Callback failed to provide SAML20 IdP identifier.")),
161 N_(
"Callback failed to provide SAML20 redirect URL.")),
163 N_(
"Callback failed to provide OPENID20 redirect URL.")),
165 N_(
"Authentication failed because a tls-exporter channel binding was not provided."))
187 static const char *unknown =
N_(
"Libgsasl unknown error");
190 bindtextdomain (PACKAGE, LOCALEDIR);
192 if (err < 0 || err >= (
int) (
sizeof (errors) /
sizeof (errors[0])))
195 p = errors[err].description;
225 if (err < 0 || err >= (
int) (
sizeof (errors) /
sizeof (errors[0])))
228 return errors[err].name;
const char * gsasl_strerror(int err)
const char * gsasl_strerror_name(int err)
@ GSASL_GSSAPI_UNWRAP_ERROR
@ GSASL_GSSAPI_IMPORT_NAME_ERROR
@ GSASL_GSSAPI_RELEASE_OID_SET_ERROR
@ GSASL_SECURID_SERVER_NEED_ADDITIONAL_PASSCODE
@ GSASL_GSSAPI_RELEASE_BUFFER_ERROR
@ GSASL_NO_CB_TLS_EXPORTER
@ GSASL_GSSAPI_ACCEPT_SEC_CONTEXT_ERROR
@ GSASL_NO_OPENID20_REDIRECT_URL
@ GSASL_SECURID_SERVER_NEED_NEW_PIN
@ GSASL_GSSAPI_INQUIRE_MECH_FOR_SASLNAME_ERROR
@ GSASL_AUTHENTICATION_ERROR
@ GSASL_GSSAPI_TEST_OID_SET_MEMBER_ERROR
@ GSASL_NO_SAML20_IDP_IDENTIFIER
@ GSASL_GSSAPI_DISPLAY_NAME_ERROR
@ GSASL_GSSAPI_ENCAPSULATE_TOKEN_ERROR
@ GSASL_GSSAPI_ACQUIRE_CRED_ERROR
@ GSASL_MECHANISM_CALLED_TOO_MANY_TIMES
@ GSASL_GSSAPI_WRAP_ERROR
@ GSASL_MECHANISM_PARSE_ERROR
@ GSASL_GSSAPI_DECAPSULATE_TOKEN_ERROR
@ GSASL_NO_ANONYMOUS_TOKEN
@ GSASL_NO_SAML20_REDIRECT_URL
@ GSASL_UNKNOWN_MECHANISM
@ GSASL_GSSAPI_INIT_SEC_CONTEXT_ERROR
@ GSASL_GSSAPI_UNSUPPORTED_PROTECTION_ERROR