|
@@ -16,7 +16,7 @@ class SecretString {
|
|
|
AK_MAKE_NONCOPYABLE(SecretString);
|
|
|
|
|
|
public:
|
|
|
- [[nodiscard]] static SecretString take_ownership(char*&, size_t);
|
|
|
+ [[nodiscard]] static ErrorOr<SecretString> take_ownership(char*&, size_t);
|
|
|
[[nodiscard]] static SecretString take_ownership(ByteBuffer&&);
|
|
|
|
|
|
[[nodiscard]] bool is_empty() const { return m_secure_buffer.is_empty(); }
|