new flags

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2675 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-01 15:24:13 +00:00
parent 8b42e8d05d
commit aff46dec90
3 changed files with 18 additions and 9 deletions

View File

@@ -184,6 +184,10 @@ parse_flags(char *str)
f.client = i & 1;
i >>= 1;
f.invalid = i & 1;
i >>= 1;
f.require_preauth = i & 1;
i >>= 1;
f.change_pw = i & 1;
return f;
}

View File

@@ -96,6 +96,7 @@ flags2int(HDBFlags *f)
(f->postdate << 4) |
(f->server << 5) |
(f->client << 6) |
(f->invalid << 7);
(f->invalid << 7) |
(f->require_preauth << 8) |
(f->change_pw << 9);
}

View File

@@ -184,6 +184,10 @@ parse_flags(char *str)
f.client = i & 1;
i >>= 1;
f.invalid = i & 1;
i >>= 1;
f.require_preauth = i & 1;
i >>= 1;
f.change_pw = i & 1;
return f;
}