aboutsummaryrefslogtreecommitdiffstats
path: root/include/pk_keys.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 18:47:11 +0000
committerlloyd <[email protected]>2008-05-24 18:47:11 +0000
commitc4bad5476b30811ad51b1edd3bd873864d423c07 (patch)
tree94679d6cee3a38da1d64b8f5f671986566ac8a18 /include/pk_keys.h
parentebc67ae27481549a152858f24fff4a7a82ad4e51 (diff)
Avoid using the global RNG in check_key, instead pass a reference.
Update the examples
Diffstat (limited to 'include/pk_keys.h')
-rw-r--r--include/pk_keys.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/pk_keys.h b/include/pk_keys.h
index 36905e868..a44aa7c7c 100644
--- a/include/pk_keys.h
+++ b/include/pk_keys.h
@@ -20,7 +20,9 @@ class BOTAN_DLL Public_Key
virtual std::string algo_name() const = 0;
virtual OID get_oid() const;
- virtual bool check_key(bool) const { return true; }
+ virtual bool check_key(RandomNumberGenerator&, bool) const
+ { return true; }
+
virtual u32bit message_parts() const { return 1; }
virtual u32bit message_part_size() const { return 0; }
virtual u32bit max_input_bits() const = 0;