From e675865944fab38a20a7852bccda8e32a2cc4ade Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 9 Jul 2013 10:36:09 -0400 Subject: [PATCH] tids: build after gsscon change. This callback always succeeds and needs to be replaced with a correct callback exposed through the tids interface. --- tid/tids.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tid/tids.c b/tid/tids.c index a616456..b2b1a98 100644 --- a/tid/tids.c +++ b/tid/tids.c @@ -32,6 +32,7 @@ * */ +#include #include #include #include @@ -119,12 +120,21 @@ static int tids_listen (TIDS_INSTANCE *tids, int port) return conn; } +static int tids_auth_cb(gss_name_t clientName, gss_buffer_t displayName, + void *data) +{ + assert(data == NULL); + assert (clientName != NULL); + assert(displayName->value != NULL); + return 0; +} + static int tids_auth_connection (int conn, gss_ctx_id_t *gssctx) { int rc = 0; int auth, autherr = 0; - if (rc = gsscon_passive_authenticate(conn, gssctx)) { + if (rc = gsscon_passive_authenticate(conn, gssctx, tids_auth_cb, NULL)) { fprintf(stderr, "tids_auth_connection: Error from gsscon_passive_authenticate(), rc = %d.\n", rc); return -1; } -- 2.1.4