Lines Matching defs:mask

103  * setting the `bit' in `mask' if attributes are given and valid.
107 parse_attributes (const char *resp, krb5_flags *attr, int *mask, int bit)
113 if (mask)
114 *mask |= bit;
129 edit_attributes (const char *prompt, krb5_flags *attr, int *mask, int bit)
133 if (mask && (*mask & bit))
142 if (parse_attributes (resp, attr, mask, bit) == 0)
237 parse_timet (const char *resp, krb5_timestamp *value, int *mask, int bit)
243 if(mask)
244 *mask |= bit;
258 edit_timet (const char *prompt, krb5_timestamp *value, int *mask, int bit)
262 if (mask && (*mask & bit))
270 if (parse_timet (resp, value, mask, bit) == 0)
319 * `mask' will get the bit `bit' set if a value was given.
323 parse_deltat (const char *resp, krb5_deltat *value, int *mask, int bit)
329 if (mask)
330 *mask |= bit;
345 edit_deltat (const char *prompt, krb5_deltat *value, int *mask, int bit)
349 if (mask && (*mask & bit))
356 if (parse_deltat (resp, value, mask, bit) == 0)
367 set_defaults(kadm5_principal_ent_t ent, int *mask,
372 && !(*mask & KADM5_MAX_LIFE))
377 && !(*mask & KADM5_MAX_RLIFE))
382 && !(*mask & KADM5_PRINC_EXPIRE_TIME))
387 && !(*mask & KADM5_PW_EXPIRATION))
392 && !(*mask & KADM5_ATTRIBUTES))
397 edit_entry(kadm5_principal_ent_t ent, int *mask,
401 set_defaults(ent, mask, default_ent, default_mask);
403 if(edit_deltat ("Max ticket life", &ent->max_life, mask,
407 if(edit_deltat ("Max renewable life", &ent->max_renewable_life, mask,
411 if(edit_timet ("Principal expiration time", &ent->princ_expire_time, mask,
415 if(edit_timet ("Password expiration time", &ent->pw_expiration, mask,
419 if(edit_attributes ("Attributes", &ent->attributes, mask,
427 * Parse the arguments, set the fields in `ent' and the `mask' for the
435 int *mask,
444 mask, KADM5_MAX_LIFE)) {
451 mask, KADM5_MAX_RLIFE)) {
459 mask, KADM5_PRINC_EXPIRE_TIME)) {
466 mask, KADM5_PW_EXPIRATION)) {
473 mask, KADM5_ATTRIBUTES)) {