From 7ab44372d81e86df99b3aefa114a5003df98bc61 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 31 Oct 2019 20:38:27 -0500 Subject: hscript: Implement SigningKey, add tests --- hscript/meta.hh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hscript/meta.hh') diff --git a/hscript/meta.hh b/hscript/meta.hh index dad4cf3..547349d 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -88,7 +88,14 @@ public: bool execute(ScriptOptions) const override; }; -class SigningKey : public Key { +class SigningKey : public StringKey { +private: + SigningKey(int _line, const std::string &_path) : + StringKey(_line, _path) {} +public: + static Key *parseFromData(const std::string &, int, int *, int *); + bool validate(ScriptOptions) const override; + bool execute(ScriptOptions) const override; }; } -- cgit v1.2.3-60-g2f50