From 35f88b305ab6a0e27b5ff1b445f63f544986e14e Mon Sep 17 00:00:00 2001 From: Toke Høiland-Jørgensen Date: Wed, 14 Apr 2021 21:39:43 +0200 Subject: Nest: Allow specifying security keys as hex bytes as well as strings Add support for specifying a password in hexadecimal format, The result is the same whether a password is specified as a quoted string or a hex-encoded byte string, this just makes it more convenient to input high-entropy byte strings as MAC keys. --- conf/conf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'conf/conf.h') diff --git a/conf/conf.h b/conf/conf.h index 860d267a..3bc37959 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -136,6 +136,11 @@ struct sym_scope { int active; /* Currently entered */ }; +struct bytestring { + size_t length; + byte data[]; +}; + #define SYM_MAX_LEN 64 /* Remember to update cf_symbol_class_name() */ -- cgit v1.2.3