[OpenAFS-devel] no prototypes for ktc_XXX() on unix?

Christopher Allen Wing wingc@engin.umich.edu
Thu, 14 Jul 2005 15:11:31 -0400 (EDT)


The prototypes for the functions:

 	ktc_SetToken()
 	ktc_GetToken()
 	ktc_ListTokens()
 	ktc_ForgetToken()
 	ktc_ForgetAllTokens()


are wrapped inside '#ifdef AFS_NT40_ENV'.

But all the Unix code, as well as stuff like 'aklog', wants to build 
using libauth as well.

Is there any reason why we can't go ahead and move the #ifdef like this:



diff -uNr openafs-20050717.orig/src/auth/auth.p.h openafs-20050717/src/auth/auth.p.h
--- openafs-20050717.orig/src/auth/auth.p.h	2003-07-15 19:14:39.000000000 -0400
+++ openafs-20050717/src/auth/auth.p.h	2005-07-14 15:10:52.141626120 -0400
@@ -24,7 +24,6 @@
      char ticket[MAXKTCTICKETLEN];
  };

-#ifdef AFS_NT40_ENV
  extern int ktc_SetToken(struct ktc_principal *server, struct ktc_token *token,
  			struct ktc_principal *client, afs_int32 flags);

@@ -38,6 +37,7 @@

  extern int ktc_ForgetAllTokens(void);

+#ifdef AFS_NT40_ENV
  /* Flags for the flag word sent along with a token */
  #define PIOCTL_LOGON		0x1	/* invoked from integrated logon */




Thanks,

Chris Wing
wingc@engin.umich.edu