Commits

Author Commit Message Labels Comments Date
Steve Dickson
Revert "Include crypt_client in build" This reverts commit 26a263169 due to xdr_desresp() and des_crypt_1() not being defined Signed-off-by: Steve Dickson <steved@redhat.com>
Steve Dickson
Release 0.2.3 Signed-off-by: Steve Dickson <steved@redhat.com>
Steve Dickson
clnt_vc_control: Removed a strict-aliasing warning clnt_vc.c:587:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] clnt_vc.c:593:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] clnt_vc.c:605:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] clnt_vc.c:611:7: warning: dereferencing type-punned pointer w…
Steve Dickson
clnt_dg_call: Removed a unused-but-set-variable warning clnt_dg.c:312:12: warning: variable 'inlen' set but not used [-Wunused-but-set-variable] Signed-off-by: Steve Dickson <steved@redhat.com>
Thomas Petazzoni
rpcent: mark getrpcbyname name argument as const char * This allows to match the glibc prototype and avoid compiling error when building libtirpc against a C library that has RPC support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Thomas Petazzoni
rpcent: remove prototypes of reentrant variants The reentrant variants of getrpcbynumber() and al. are not implemented by libtirpc, so there is no point in advertising them in this header file. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Mike Frysinger
key_call: utilize uname() all the time Since we already rely on the utsname struct existing, and uname() is in POSIX, drop the ifdef trickery around the call. Signed-off-by: Steve Dickson <steved@redhat.com>
NeilBrown
Add authgss_free_private_data interface. This is a necessary partner to authgss_get_private_data, so that the caller can free the data when needed (and not before). The previous practice of leaving the private data where it was resulted in authgss_destroy_context() attempting to destroy the context on the server which was incorrect, and fortunately fails for other reasons. An application which uses authgss_get_private_data() but does n…
Mike Frysinger
Include crypt_client in build The des_crypt code also needs the client_client code. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Allison Henderson
tirpc: Fix compiler error on rhel 5.5 When compiled on rhel 5.5, the build fails due to a missing SOCK_CLOEXEC flag that is not available in the downstream kernel. This patch corrects this error by checking to see if the flag is present before using it Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Thomas Petazzoni
doc/Makefile.am: fix out-of-tree installation Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Mike Frysinger
Make IPv6 enabled by default Added a --disable-ipv6 configuration flag to allow the disabling of the IPv6 support. Signed-off-by: Steve Dickson <steved@redhat.com>
Thomas Petazzoni
Add missing INET6 conditional Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Max Matveev
Use correct socket option for PKTINFO on UDPv6 IPV6_PKTINFO from RFC 2292 has been renamed to IPV6_RECVPKTINFO in RFC 3542. Signed-off-by: Max Matveev <makc@gmx.co.uk> Signed-off-by: Steve Dickson <steved@redhat.com>
Max Matveev
authnone - respect the locks Don't try to unlock the lock which has not been locked. Signed-off-by: Max Matveev <makc@gmx.co.uk> Signed-off-by: Steve Dickson <steved@redhat.com>
Nick Alcock
Fix debugging-related namespace pollution. From: Nick Alcock <nick.alcock@oracle.com> When GSS is compiled in, libtirpc exports three symbols, 'log_debug', 'log_status', and 'log_hexdump', which do nothing unless DEBUG is #defined at libtirpc compile time. This is a pretty abominable piece of namespace pollution: these symbols are quite likely to be used for local debugging routines by other binaries and shared libraries, and those local …
Nick Alcock
No longer require NIS. From: Nick Alcock <nick.alcock@oracle.com> NIS is deader than the proverbial dodo, and eglibc allows you to compile it out entirely. Though libtirpc can work with NIS, it works perfectly well if NIS is not in the libc, thanks to nsswitch (acting as if NIS is there but empty). However, when NIS is not compiled into eglibc, libnsl is not present. So check for it at configure time, and include it …
Nick Alcock
Make svc_auth_none always available. From: Nick Alcock <nick.alcock@oracle.com> svc_auth_none is only included in the build when GSS is compiled in, but is used by svc_auth_unix, which is unconditionally included. Include svc_auth_none unconditionally as well. Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Nick Alcock
Fix debugging reference from non-GSS to optional GSS code. From: Nick Alcock <nick.alcock@oracle.com> AUTH_DESTROY() and auth_destroy() are pulling in log_debug() from authgss_prot.c, but are used from outside the GSS code, thus preventing libtirpc from being used if compiled without GSS support. The (somewhat ugly) fix here defines a new macro to do the job. Because we're not compiling as C99, I use the GNU C variadic macro extension: if we mean to be …
Peter Simons
Makefile.am: install target in doc/Makefile.am doesn't honor sysconfdir Signed-off-by: Steve Dickson <steved@redhat.com>
Mike Frysinger
Delete unused local variable rpc_soc.c: In function 'clntunix_create': rpc_soc.c:563:20: warning: variable 'nconf' set but not used [-Wunused-but-set-variable] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Steve Dickson
Segfault in SVCAUTH_WRAP call The xprt->xp_auth pointer need to be checked before used in the SVCAUTH_WRAP call since it can be NULL during error conditions. Signed-off-by: Steve Dickson <steved@redhat.com>
Mike Frysinger
Revert "Include des_crypt in build" The des_crypt code requires the crypt_client code (which wasn't added), and that code requires a currently undefined function (namely xdr_desresp). Since I have no idea what that's about, and this change ends up breaking some systems, just revert it. Once we have a patch that improves portability without breaking existing systems, we can revisit this. This reverts commit 9bdcba10aa67ce3f67810c7…
Mike Frysinger
Add multiple inclusion protection to rpc/des.h If you try to include this file multiple times, you get a build failure due to redefinitions of enums and such. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Matthew N. Dodd
Use correct AUTH when calling RPCSEC_GSS_DESTROY. When using multiple AUTHs per client connection, calling AUTH_DESTROY(auth) may result in 'cl_auth' being set to something other than 'auth'. Avoid this by saving and restoring 'cl_auth' across the RPCSEC_GSS_DESTROY clnt_call(). Signed-off-by: Steve Dickson <steved@redhat.com>
Matthew N. Dodd
Reference count AUTHs RPCSEC GSSv3 has the concept of a parent and a compound credential. As the normal course of operation involves using multiple AUTHs per client connection, and providing parent and compounds AUTHs when creating a GSSv3 AUTH, we need a way of reference counting them so that AUTH_DESTROY does not free them out from under a GSSv3 AUTH that is using them. Signed-off-by: Steve Dickson <steved@redhat.c…
Matthew N. Dodd
auth_null used when auth_none is appropriate svc_auth.c uses a fake entry function for AUTH_NULL (AUTH_NONE) when the use of the svc_auth_none is appropriate. With the previous patches to make use of WRAP/UNWRAP svc_auth_none is required. Signed-off-by: Steve Dickson <steved@redhat.com>
Matthew N. Dodd
SVCAUTH_WRAP/SVCAUTH_UNWRAP Server code lacks support for authenticator wrapping/unwrapping, which is particularly useful when using GSS. Verified for both tcp & udp using a trivial RPC server against an MIT Krb5 client. Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Matthew N. Dodd
AUTH_WRAP/AUTH_UNWRAP support. Client code lacks support for authenticator wrapping/unwrapping, which is particularly useful when using GSS. Verified for both tcp & udp using a trivial RPC client against a MIT Krb5 server. Signed-off-by: Steve Dickson <steved@redhat.com>
Matthew N. Dodd
Use of lseek() in xdr_rec.c:xdrrec_getpos(). The use of lseek() in xdr_rec.c:xdrrec_getpos() without checking for ESPIPE will fail to handle the common case, resulting in poor behavior in calling code. (In particular auth_gss.c:authgss_marshal() calls gss_get_mic() with rpcbuf.length set to -1, with spectacular results.) The original MIT Krb5 RPC code lacks this addition, which I'm unclear of the utility of in the first place. Reverting to…
  1. Prev
  2. Next