Lines Matching +full:rpc +full:- +full:if
4 /*-
5 * SPDX-License-Identifier: BSD-3-Clause
12 * - Redistributions of source code must retain the above copyright notice,
14 * - Redistributions in binary form must reproduce the above copyright notice,
17 * - Neither the name of Sun Microsystems, Inc. nor the names of its
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 #include <rpc/rpc.h>
47 #include <rpc/types.h>
48 #include <rpc/auth.h>
49 #include <rpc/clnt.h>
50 #include "un-namespace.h"
62 if (buf == NULL) in _buf()
83 if (str == NULL) in clnt_sperror()
89 if ((i = snprintf(str, len, "%s: ", s)) > 0) { in clnt_sperror()
91 len -= i; in clnt_sperror()
94 (void)strncpy(str, clnt_sperrno(e.re_status), len - 1); in clnt_sperror()
97 len -= i; in clnt_sperror()
118 if (i > 0) { in clnt_sperror()
120 len -= i; in clnt_sperror()
127 if (i > 0) { in clnt_sperror()
129 len -= i; in clnt_sperror()
136 if (i > 0) { in clnt_sperror()
138 len -= i; in clnt_sperror()
140 if (err != NULL) { in clnt_sperror()
144 "(unknown authentication error - %d)", in clnt_sperror()
147 if (i > 0) { in clnt_sperror()
149 len -= i; in clnt_sperror()
156 if (i > 0) { in clnt_sperror()
158 len -= i; in clnt_sperror()
165 if (i > 0) { in clnt_sperror()
167 len -= i; in clnt_sperror()
171 strstart[CLNT_PERROR_BUFLEN-1] = '\0'; in clnt_sperror()
186 "RPC: Success", /* 0 - RPC_SUCCESS */
187 "RPC: Can't encode arguments", /* 1 - RPC_CANTENCODEARGS */
188 "RPC: Can't decode result", /* 2 - RPC_CANTDECODERES */
189 "RPC: Unable to send", /* 3 - RPC_CANTSEND */
190 "RPC: Unable to receive", /* 4 - RPC_CANTRECV */
191 "RPC: Timed out", /* 5 - RPC_TIMEDOUT */
192 "RPC: Incompatible versions of RPC", /* 6 - RPC_VERSMISMATCH */
193 "RPC: Authentication error", /* 7 - RPC_AUTHERROR */
194 "RPC: Program unavailable", /* 8 - RPC_PROGUNAVAIL */
195 "RPC: Program/version mismatch", /* 9 - RPC_PROGVERSMISMATCH */
196 "RPC: Procedure unavailable", /* 10 - RPC_PROCUNAVAIL */
197 "RPC: Server can't decode arguments", /* 11 - RPC_CANTDECODEARGS */
198 "RPC: Remote system error", /* 12 - RPC_SYSTEMERROR */
199 "RPC: Unknown host", /* 13 - RPC_UNKNOWNHOST */
200 "RPC: Port mapper failure", /* 14 - RPC_PMAPFAILURE */
201 "RPC: Program not registered", /* 15 - RPC_PROGNOTREGISTERED */
202 "RPC: Failed (unspecified error)", /* 16 - RPC_FAILED */
203 "RPC: Unknown protocol" /* 17 - RPC_UNKNOWNPROTO */
215 if (errnum < (sizeof(rpc_errlist)/sizeof(rpc_errlist[0]))) in clnt_sperrno()
219 return ("RPC: (unknown error code)"); in clnt_sperrno()
238 if (str == NULL) in clnt_spcreateerror()
242 if (i > 0) in clnt_spcreateerror()
243 len -= i; in clnt_spcreateerror()
244 (void)strncat(str, clnt_sperrno(rpc_createerr.cf_stat), len - 1); in clnt_spcreateerror()
247 (void) strncat(str, " - ", len - 1); in clnt_spcreateerror()
249 clnt_sperrno(rpc_createerr.cf_error.re_status), len - 4); in clnt_spcreateerror()
253 (void)strncat(str, " - ", len - 1); in clnt_spcreateerror()
255 len - 4); in clnt_spcreateerror()
277 str[CLNT_PERROR_BUFLEN-1] = '\0'; in clnt_spcreateerror()
291 "Authentication OK", /* 0 - AUTH_OK */
292 "Invalid client credential", /* 1 - AUTH_BADCRED */
293 "Server rejected credential", /* 2 - AUTH_REJECTEDCRED */
294 "Invalid client verifier", /* 3 - AUTH_BADVERF */
295 "Server rejected verifier", /* 4 - AUTH_REJECTEDVERF */
296 "Client credential too weak", /* 5 - AUTH_TOOWEAK */
297 "Invalid server verifier", /* 6 - AUTH_INVALIDRESP */
298 "Failed (unspecified error)", /* 7 - AUTH_FAILED */
299 "Kerberos generic error", /* 8 - AUTH_KERB_GENERIC*/
300 "Kerberos credential expired", /* 9 - AUTH_TIMEEXPIRE */
301 "Bad kerberos ticket file", /* 10 - AUTH_TKT_FILE */
302 "Can't decode kerberos authenticator", /* 11 - AUTH_DECODE */
303 "Address wrong in kerberos ticket", /* 12 - AUTH_NET_ADDR */
304 "GSS-API crediential problem", /* 13 - RPCSEC_GSS_CREDPROBLEM */
305 "GSS-API context problem" /* 14 - RPCSEC_GSS_CTXPROBLEM */
313 if (errnum < (sizeof(auth_errlist)/sizeof(auth_errlist[0]))) in auth_errmsg()