Backed out changeset f53842753805 (bug 1804872) for causing reftest failures on 15535...
[gecko.git] / security / manager / ssl / LibSecret.h
blobbd2814de044bc2ebfb2064eec077d3cb2b994974
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef LibSecret_h
8 #define LibSecret_h
10 #include "OSKeyStore.h"
12 #include "nsString.h"
14 nsresult MaybeLoadLibSecret();
16 class LibSecret final : public AbstractOSKeyStore {
17 public:
18 LibSecret();
20 virtual nsresult RetrieveSecret(const nsACString& label,
21 /* out */ nsACString& secret) override;
22 virtual nsresult StoreSecret(const nsACString& secret,
23 const nsACString& label) override;
24 virtual nsresult DeleteSecret(const nsACString& label) override;
25 virtual nsresult Lock() override;
26 virtual nsresult Unlock() override;
28 virtual ~LibSecret();
31 #endif // LibSecret_h