New GetToken pioctl
[openafs.git] / src / auth / auth.p.h
index 0a9d932..84f8c0c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -24,19 +24,25 @@ struct ktc_token {
     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);
+int ktc_SetToken(struct ktc_principal *, struct ktc_token *,
+    struct ktc_principal *, afs_int32);
+int ktc_GetToken(struct ktc_principal *, struct ktc_token *,
+    int, struct ktc_principal *);
 
-extern int ktc_GetToken(struct ktc_principal *server, struct ktc_token *token,
-                       int tokenLen, struct ktc_principal *client);
+struct ktc_setTokenData;
+int ktc_SetTokenEx(struct ktc_setTokenData *);
+int ktc_GetTokenEx(char *, struct ktc_setTokenData **);
 
-extern int ktc_ListTokens(int cellNum, int *cellNumP,
-                         struct ktc_principal *serverName);
+int ktc_ListTokens(int, int *, struct ktc_principal *);
+int ktc_ForgetToken(struct ktc_principal *);
+int ktc_ForgetAllTokens(void);
+afs_uint32 ktc_curpag(void);
 
-extern int ktc_ForgetToken(struct ktc_principal *server);
+#ifdef AFS_KERBEROS_ENV
+int ktc_newpag(void);
+#endif
 
-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 */