Files
sousa-gecko/security/manager/ssl/LibSecret.h
T
2026-03-17 12:10:18 +00:00

29 lines
782 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef LibSecret_h
#define LibSecret_h
#include "OSKeyStore.h"
#include "nsString.h"
nsresult MaybeLoadLibSecret();
class LibSecret final : public AbstractOSKeyStore {
public:
LibSecret();
virtual nsresult RetrieveSecret(const nsACString& label,
/* out */ nsACString& secret) override;
virtual nsresult StoreSecret(const nsACString& secret,
const nsACString& label) override;
virtual nsresult DeleteSecret(const nsACString& label) override;
virtual ~LibSecret();
};
#endif // LibSecret_h