afs_int32 * pwexpires)
{
struct ka_ticketAnswer *answer;
- afs_uint32 cksum;
unsigned char tempc;
answer = (struct ka_ticketAnswer *)oanswer->SeqBody;
- cksum = ntohl(answer->cksum);
if (challenge != ntohl(answer->challenge))
return KABADPROTOCOL;
memcpy(&token->sessionKey, &answer->sessionKey,
Date now = time(0);
afs_int32 newkeyver; /* new key version number */
afs_int32 newtotalkeyentries = 0, oldtotalkeyentries = 0, keyentries;
- int foundcurrentkey = 0, addednewkey = 0, modified;
+ int addednewkey = 0, modified;
+#ifdef AUTH_DBM_LOG
+ int foundcurrentkey = 0;
+#endif
es_Report("Newkey for %s.%s\n", tentry->userID.name,
tentry->userID.instance);
("Warning: Entry %s.%s contains more than one valid key: fixing\n",
tentry->userID.name, tentry->userID.instance));
}
-#endif
foundcurrentkey = 1;
+#endif
}
/* If we find an oldkey of the same version or
static int
simplify_name(char *orig_name, char *true_name)
{
- int thru_symlink;
struct stat statbuff;
- thru_symlink = 0;
#ifdef AFS_NT40_ENV
if (stat(orig_name, &statbuff) < 0) {
* the contents of the link for the file name.
*/
if ((statbuff.st_mode & S_IFMT) == S_IFLNK) {
- thru_symlink = 1;
link_chars_read = readlink(orig_name, true_name, 1024);
if (link_chars_read <= 0) {
*true_name = '\0';
struct passwd pwent;
struct passwd *pw = &pwent;
- int insist; /* insist on good password quality */
int lexplicit = 0; /* servers specified explicitly */
int local; /* explicit cell is same a local cell */
int foundPassword = 0; /*Not yet, anyway */
give_to_child(passwd);
/* Get new password if it wasn't provided. */
- insist = 0;
if (!foundNewPassword) {
if (Pipe)
getpipepass(npasswd, sizeof(npasswd));
f_print(fout, "\tz_xdrs->x_op = XDR_FREE;\n");
for (plist = defp->pc.plists; plist; plist = plist->next) {
if (plist->component_kind == DEF_PARAM
- && (plist->pl.param_flag & FREETHIS_PARAM)) {
- char *dot = "", *extens = "";
- if (plist->pl.string_name) {
- dot = ".";
- extens = plist->pl.string_name;
- }
+ && (plist->pl.param_flag & FREETHIS_PARAM))
f_print(fout, "\tif (!%s) goto fail1;\n", plist->scode);
- }
}
for (listp = typedef_defined; listp != NULL; listp = listp->next) {
defp1 = (definition *) listp->val;