]> granicus.if.org Git - libtirpc/commitdiff
gss_log: Removed DEBUG defines
authorSteve Dickson <steved@redhat.com>
Mon, 14 Jul 2014 11:50:04 +0000 (07:50 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 7 Aug 2014 18:41:34 +0000 (14:41 -0400)
Enable the gss_log_XXX routines by remove the
ifdef DEBUGs that surround them.

Signed-off-by: Steve Dickson <steved@redhat.com>
src/auth_gss.c

index fd6191b8546dab8975f0a46798d05dae09daf731..e36f5d92a33a285e1864d3031877a9775c08cc5c 100644 (file)
@@ -78,7 +78,6 @@ static struct auth_ops authgss_ops = {
        authgss_unwrap
 };
 
-#ifdef DEBUG
 
 /* useful as i add more mechanisms */
 void
@@ -126,7 +125,6 @@ char *p;
        fprintf(stderr, "     service: %d\n", ptr->svc);
        fprintf(stderr, "     cred: %p\n", ptr->cred);
 }
-#endif /*DEBUG*/
 
 struct rpc_gss_data {
        bool_t                   established;   /* context established */
@@ -406,6 +404,7 @@ authgss_validate(AUTH *auth, struct opaque_auth *verf)
 
        maj_stat = gss_verify_mic(&min_stat, gd->ctx, &signbuf,
                                  &checksum, &qop_state);
+
        if (maj_stat != GSS_S_COMPLETE || qop_state != gd->sec.qop) {
                gss_log_status("gss_verify_mic", maj_stat, min_stat);
                if (maj_stat == GSS_S_CONTEXT_EXPIRED) {
@@ -436,19 +435,15 @@ authgss_refresh(AUTH *auth, void *dummy)
        memset(&gr, 0, sizeof(gr));
        recv_tokenp = GSS_C_NO_BUFFER;
 
-#ifdef DEBUG
        print_rpc_gss_sec(&gd->sec);
-#endif /*DEBUG*/
 
        for (;;) {
-#ifdef DEBUG
                /* print the token we just received */
                if (recv_tokenp != GSS_C_NO_BUFFER) {
                        gss_log_debug("The token we just received (length %d):",
                                  recv_tokenp->length);
                        gss_log_hexdump(recv_tokenp->value, recv_tokenp->length, 0);
                }
-#endif
                maj_stat = gss_init_sec_context(&min_stat,
                                                gd->sec.cred,
                                                &gd->ctx,
@@ -475,12 +470,10 @@ authgss_refresh(AUTH *auth, void *dummy)
                if (send_token.length != 0) {
                        memset(&gr, 0, sizeof(gr));
 
-#ifdef DEBUG
                        /* print the token we are about to send */
                        gss_log_debug("The token being sent (length %d):",
                                  send_token.length);
                        gss_log_hexdump(send_token.value, send_token.length, 0);
-#endif
 
                        call_stat = clnt_call(gd->clnt, NULLPROC,
                                              (xdrproc_t)xdr_rpc_gss_init_args,