gsstest: fixed compilation errors cvshead master
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Dec 2010 10:41:02 +0000 (21:41 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 21 Dec 2010 10:41:02 +0000 (21:41 +1100)
gsstest was not being compiled with GSSAPI due to a Makefile.in
error. Once fixed, this revealed two other errors

bin/tests/dst/Makefile.in
bin/tests/dst/gsstest.c

index 7eb069ec416276c4740ec91b8dda2828019e143c..73fcf666a82382359d3d1843c02bd0acac99c3b1 100644 (file)
@@ -24,7 +24,7 @@ top_srcdir =  @top_srcdir@
 CINCLUDES =    ${TEST_INCLUDES} ${DNS_INCLUDES} \
                ${ISC_INCLUDES} @DST_GSSAPI_INC@
 
-CDEFINES =
+CDEFINES =     @USE_GSSAPI@
 CWARNINGS =
 
 DNSLIBS =      ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
index c36058422b92c7b1588ffdd6c8974d35973b5a99..3765d826fcd415cb6c8b7e5740272eb98688fb83 100755 (executable)
@@ -359,7 +359,7 @@ initctx1(isc_task_t *task, isc_event_t *event) {
        printf("Initctx - context name we're using: %s\n", contextname);
 
        printf("Negotiating GSSAPI context: ");
-       printf(gssid);
+       printf("%s", gssid);
        printf("\n");
 
        /*
@@ -388,7 +388,8 @@ initctx1(isc_task_t *task, isc_event_t *event) {
        gssctx = GSS_C_NO_CONTEXT;
        result = dns_tkey_buildgssquery(query, dns_fixedname_name(&servername),
                                        dns_fixedname_name(&gssname),
-                                       NULL, 36000, &gssctx, ISC_TRUE);
+                                       NULL, 36000, &gssctx, ISC_TRUE,
+                                       NULL, mctx, NULL);
        CHECK("dns_tkey_buildgssquery", result);
 
        printf("Sending context token to server\n");