diff options
Diffstat (limited to 'core/crypto/crypto.h')
-rw-r--r-- | core/crypto/crypto.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/crypto/crypto.h b/core/crypto/crypto.h index 6cc5f46164..c1bc2024bb 100644 --- a/core/crypto/crypto.h +++ b/core/crypto/crypto.h @@ -45,8 +45,11 @@ protected: public: static CryptoKey *create(); - virtual Error load(String p_path) = 0; - virtual Error save(String p_path) = 0; + virtual Error load(String p_path, bool p_public_only = false) = 0; + virtual Error save(String p_path, bool p_public_only = false) = 0; + virtual String save_to_string(bool p_public_only = false) = 0; + virtual Error load_from_string(String p_string_key, bool p_public_only = false) = 0; + virtual bool is_public_only() const = 0; }; class X509Certificate : public Resource { |