Add new SetTokenEx pioctl
[openafs.git] / src / auth / auth.p.h
index b7aba2b..5d473f3 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
@@ -10,7 +10,7 @@
 #ifndef __AUTH_AFS_INCL_
 #define        __AUTH_AFS_INCL_    1
 
-#include <rx/rxkad.h>                  /* to get ticket parameters/contents */
+#include <rx/rxkad.h>          /* to get ticket parameters/contents */
 
 /* super-user pincipal used by servers when talking to other servers */
 #define AUTH_SUPERUSER        "afs"
@@ -19,37 +19,29 @@ struct ktc_token {
     afs_int32 startTime;
     afs_int32 endTime;
     struct ktc_encryptionKey sessionKey;
-    short kvno;  /* XXX UNALIGNED */
+    short kvno;                        /* XXX UNALIGNED */
     int ticketLen;
     char ticket[MAXKTCTICKETLEN];
 };
 
+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 *);
+
+struct ktc_setTokenData;
+int ktc_SetTokenEx(struct ktc_setTokenData *);
+
+int ktc_ListTokens(int, int *, struct ktc_principal *);
+int ktc_ForgetToken(struct ktc_principal *);
+int ktc_ForgetAllTokens(void);
+afs_uint32 ktc_curpag(void);
+
+#ifdef AFS_KERBEROS_ENV
+int ktc_newpag(void);
+#endif
+
 #ifdef AFS_NT40_ENV
-extern int ktc_SetToken(
-        struct ktc_principal *server,
-        struct ktc_token *token,
-        struct ktc_principal *client,
-        int flags
-);
-
-extern int ktc_GetToken(
-        struct ktc_principal *server,
-        struct ktc_token *token,
-        int tokenLen,
-        struct ktc_principal *client
-);
-
-extern int ktc_ListTokens(
-        int cellNum,
-        int *cellNumP,
-        struct ktc_principal *serverName
-);
-
-extern int ktc_ForgetToken(
-        struct ktc_principal *server
-);
-
-extern int ktc_ForgetAllTokens(void);
 
 /* Flags for the flag word sent along with a token */
 #define PIOCTL_LOGON           0x1     /* invoked from integrated logon */