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 not call
authgss_free_private_data() will be as correct as, or slightly more
correct than, it was, but will suffer a slight memory leak.

This patch is based on commit 07fce317cac267509b944a8191cafa8e49b5e328
from librpcsecgss that was committed by Kevin Coffman.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
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>
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>
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>
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>
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 will break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Steve Dickson <steved@redhat.com>
Release 0.2.3

Signed-off-by: Steve Dickson <steved@redhat.com>
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>