#include <afs/afsutil.h>
#include <afs/com_err.h>
+#define HC_DEPRECATED
#include <rx/rxkad.h>
#include <rx/rx_identity.h>
struct afsconf_dir *dir;
char *dirname;
int serverPid, clientPid, waited, stat;
- char keymaterial[]="\x19\x17\xff\xe6\xbb\x77\x2e\xfc";
int code;
/* Start the client and the server if requested */
exit(1);
}
- DES_set_odd_parity((DES_cblock *)keymaterial);
-
- /* Add a key to it so we can use it for connection tests */
- code = afsconf_AddKey(dir, 1, keymaterial, 1);
+ code = afstest_AddDESKeyFile(dir);
if (code) {
afs_com_err("superuser-t", code, "while adding new key\n");
exit(1);
extern char *afstest_BuildTestConfig(void);
extern void afstest_UnlinkTestConfig(char *);
+
+struct afsconf_dir;
+extern int afstest_AddDESKeyFile(struct afsconf_dir *dir);
#include <afs/param.h>
#include <roken.h>
+#include <afs/cellconfig.h>
#include <afs/afsutil.h>
+#include <hcrypto/des.h>
+
#include "common.h"
static FILE *
unlinkConfigFile(dir, "UserList");
rmdir(dir);
}
+
+int
+afstest_AddDESKeyFile(struct afsconf_dir *dir)
+{
+ char keymaterial[]="\x19\x17\xff\xe6\xbb\x77\x2e\xfc";
+
+ /* Make sure that it is actually a valid key */
+ DES_set_odd_parity((DES_cblock *)keymaterial);
+
+ return afsconf_AddKey(dir, 1, keymaterial, 1);
+}