]> granicus.if.org Git - libtirpc/commitdiff
When the configuration --enable-gss used, the libgssglue
authorSteve Dickson <steved@redhat.com>
Thu, 25 Oct 2007 17:38:31 +0000 (13:38 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 25 Oct 2007 17:38:31 +0000 (13:38 -0400)
library will be used instead of the libgssapi.

Signed-off-by: Steve Dickson <steved@redhat.com>
configure.in
src/Makefile.am
src/svc_auth_gss.c

index 392535e616fe13f257a57070e811f31c58591890..dc597ddac60c6894c89614f17e00e49199736920 100644 (file)
@@ -10,6 +10,10 @@ AC_ARG_ENABLE(gss,[  --enable-gss            Turn on gss api], [case "${enableva
         *) AC_MSG_ERROR(bad value ${enableval} for --enable-gss) ;;
       esac],[gss=false])
 AM_CONDITIONAL(GSS, test x$gss = xtrue)
+if test x$gss = xtrue; then
+       PKG_CHECK_MODULES(GSSGLUE, libgssglue, [],
+       AC_MSG_ERROR([Unable to locate information required to use libgssglue.]))
+fi
 
 
 AC_PROG_CC
index f3f96255c0319e660af081e7a180e3226044d1b5..79bec0b0ed10f82fcdb79a1755bf00fff55ba06b 100644 (file)
@@ -28,10 +28,9 @@ libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_ref
 
 ## Secure-RPC
 if GSS
-    libtirpc_la_SOURCES += auth_gss.c authgss_prot.c svc_auth_gss.c \
-               svc_auth_none.c
-    libtirpc_la_LDFLAGS += $(GSSAPI_LIBS)
-    libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSAPI_CFLAGS)
+    libtirpc_la_SOURCES += auth_gss.c authgss_prot.c svc_auth_gss.c
+    libtirpc_la_LDFLAGS += $(GSSGLUE_LIBS)
+    libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSGLUE_CFLAGS)
 endif
 
 ## libtirpc_a_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
@@ -50,7 +49,7 @@ $(libtirpc_la_OBJECTS) :auth_none.c auth_unix.c authunix_prot.c bindresvport.c c
         svc_raw.c svc_run.c svc_simple.c svc_vc.c \
        xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c \
        auth_gss.c authgss_prot.c svc_auth_gss.c getpeereid.c \
-       auth_time.c auth_des.c authdes_prot.c svc_auth_none.c
+       auth_time.c auth_des.c authdes_prot.c
         
 else
 $(libtirpc_la_OBJECTS) :auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \
index 02153f9a6b317f7c0b3e3b61f75b219aa5a0b3f8..19c27d196a87b84686c74d3ede5e8f7fca1f76f8 100644 (file)
@@ -382,7 +382,7 @@ _svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg, bool_t *no_dispatch)
                        return (AUTH_FAILED);
                }
                auth->svc_ah_ops = &svc_auth_gss_ops;
-               SVCAUTH_PRIVATE(auth) = gd;
+               auth->svc_ah_private = (caddr_t) gd;
                rqst->rq_xprt->xp_auth = auth;
        }
        else gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);