From 8bfa8171cfba14c97dd90c0a0c70b9449c9f2f49 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 29 May 2018 15:02:22 +0200 Subject: [settings] Add md5 encoding type for doing ${foo:md5} This obviously only works for formatting, not parsing. This makes it possible to implement client side password checks without giving the password away too easily. Not super secure as it's md5, but enough for basic protection. --- src/include/ipxe/settings.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/ipxe/settings.h b/src/include/ipxe/settings.h index f463e6674..2bffe2fba 100644 --- a/src/include/ipxe/settings.h +++ b/src/include/ipxe/settings.h @@ -424,6 +424,7 @@ extern const struct setting_type setting_type_uint32 __setting_type; extern const struct setting_type setting_type_hex __setting_type; extern const struct setting_type setting_type_hexhyp __setting_type; extern const struct setting_type setting_type_hexraw __setting_type; +extern const struct setting_type setting_type_md5 __setting_type; extern const struct setting_type setting_type_base64 __setting_type; extern const struct setting_type setting_type_uuid __setting_type; extern const struct setting_type setting_type_busdevfn __setting_type; -- cgit v1.2.3-55-g7522