ATTRIBUTE Password 2004 tlv
BEGIN Password
-ATTRIBUTE With-Header 1 string
+ATTRIBUTE With-Header 1 string unsafe
-ATTRIBUTE Cleartext 2 string secret
+ATTRIBUTE Cleartext 2 string secret,unsafe
ATTRIBUTE Crypt 3 string
unsigned int secret : 1; //!< this attribute should be omitted in debug mode
+ unsigned int unsafe : 1; //!< e.g. Cleartext-Password
+
/*
* @todo - if we want to clean these fields up, make
* "subtype" and "type_size" both 4-bit bitfields. That
return 0;
}
+FLAG_FUNC(unsafe)
+
/** A lookup function for dictionary attribute flags
*
*/
{ L("precision"), { .func = dict_flag_precision, .needs_value = true } },
{ L("ref"), { .func = dict_flag_ref, .needs_value = true } },
{ L("secret"), { .func = dict_flag_secret } },
- { L("subtype"), { .func = dict_flag_subtype, .needs_value = true } }
+ { L("subtype"), { .func = dict_flag_subtype, .needs_value = true } },
+ { L("unsafe"), { .func = dict_flag_unsafe } },
};
static size_t dict_common_flags_len = NUM_ELEMENTS(dict_common_flags);