rxkad-prototypes-20081129
[openafs.git] / src / rxkad / rxkad_prototypes.h
index 3dc8930..21c6e57 100644 (file)
@@ -28,10 +28,10 @@ extern afs_int32 rxkad_EncryptPacket(const struct rx_connection *conn,
 /* domestic/fcrypt.c */
 extern int fc_keysched(struct ktc_encryptionKey *key,
                       fc_KeySchedule schedule);
-extern afs_int32 fc_ecb_encrypt(afs_uint32 * clear, afs_uint32 * cipher,
+extern afs_int32 fc_ecb_encrypt(void * clear, void * cipher,
                                fc_KeySchedule schedule, int encrypt);
-extern afs_int32 fc_cbc_encrypt(char *input, char *output, afs_int32 length,
-                               fc_KeySchedule key, afs_uint32 * xor,
+extern afs_int32 fc_cbc_encrypt(void *input, void *output, afs_int32 length,
+                               fc_KeySchedule key, afs_uint32 * iv,
                                int encrypt);
 
 /* rxkad_client.c */
@@ -50,14 +50,13 @@ extern int rxkad_GetResponse(struct rx_securityClass *aobj,
 extern void rxkad_ResetState(void);
 
 /* rxkad_common.c */
-#if 0
-/* can't prototype these due to types */
+struct rxkad_endpoint;
 extern int rxkad_SetupEndpoint(struct rx_connection *aconnp,
                               struct rxkad_endpoint *aendpointp);
+struct rxkad_v2ChallengeResponse;
 extern afs_uint32 rxkad_CksumChallengeResponse(struct
                                               rxkad_v2ChallengeResponse
                                               *v2r);
-#endif
 extern int rxkad_DeriveXORInfo(struct rx_connection *aconnp,
                               fc_KeySchedule * aschedule, char *aivec,
                               char *aresult);
@@ -76,28 +75,37 @@ extern int rxkad_PreparePacket(struct rx_securityClass *aobj,
 extern int rxkad_GetStats(struct rx_securityClass *aobj,
                          struct rx_connection *aconn,
                          struct rx_securityObjectStats *astats);
+extern rxkad_level rxkad_StringToLevel(char *string);
+extern char *rxkad_LevelToString(rxkad_level level);
 
+extern void rxkad_global_stats_init(void);
 
 /* rxkad_errs.c */
 
 /* rxkad_server.c */
 extern struct rx_securityClass *rxkad_NewServerSecurityObject(rxkad_level
-                                                             level, char
+                                                             level, void
                                                              *get_key_rock,
                                                              int (*get_key)
-                                                               (char
-                                                                *get_key_rock,
-                                                                int kvno,
-                                                                struct
-                                                                ktc_encryptionKey
-                                                                * serverKey),
+
+
+                                                              
+                                                             (void
+                                                              *get_key_rock,
+                                                              int kvno,
+                                                              struct
+                                                              ktc_encryptionKey
+                                                              * serverKey),
                                                              int (*user_ok)
-                                                               (char *name,
-                                                                char
-                                                                *instance,
-                                                                char *cell,
-                                                                afs_int32
-                                                                kvno));
+
+
+                                                              
+                                                             (char *name,
+                                                              char
+                                                              *instance,
+                                                              char *cell,
+                                                              afs_int32
+                                                              kvno));
 extern int rxkad_CheckAuthentication(struct rx_securityClass *aobj,
                                     struct rx_connection *aconn);
 extern int rxkad_CreateChallenge(struct rx_securityClass *aobj,
@@ -113,8 +121,10 @@ extern afs_int32 rxkad_GetServerInfo(struct rx_connection *aconn,
                                     afs_uint32 * expiration, char *name,
                                     char *instance, char *cell,
                                     afs_int32 * kvno);
-
-
+extern afs_int32 rxkad_SetConfiguration(struct rx_securityClass *aobj,
+                                        struct rx_connection *aconn, 
+                                        rx_securityConfigVariables atype,
+                                        void * avalue, void **aresult);
 
 /* ticket.c */
 extern int tkt_DecodeTicket(char *asecret, afs_int32 ticketLen,
@@ -140,6 +150,6 @@ extern int tkt_DecodeTicket5(char *ticket, afs_int32 ticket_len,
                             char *get_key_rock, int serv_kvno, char *name,
                             char *inst, char *cell, char *session_key,
                             afs_int32 * host, afs_int32 * start,
-                            afs_int32 * end);
+                            afs_int32 * end, afs_int32 disableDotCheck);
 
 #endif