зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1417433 - Remove unused U2FSoftTokenManager::IsCompatibleVersion() r=jcj
Summary: This check was replaced a while ago, by [1] [1] https://searchfox.org/mozilla-central/search?q=kRequiredU2FVersion Reviewers: jcj Reviewed By: jcj Bug #: 1417433 Differential Revision: https://phabricator.services.mozilla.com/D246
This commit is contained in:
Родитель
aab0cbe92c
Коммит
fdbcf7df8e
|
@ -25,8 +25,6 @@ using mozilla::dom::CreateECParamsForCurve;
|
|||
|
||||
const nsCString U2FSoftTokenManager::mSecretNickname =
|
||||
NS_LITERAL_CSTRING("U2F_NSSTOKEN");
|
||||
const nsString U2FSoftTokenManager::mVersion =
|
||||
NS_LITERAL_STRING("U2F_V2");
|
||||
|
||||
namespace {
|
||||
NS_NAMED_LITERAL_CSTRING(kAttestCertSubjectName, "CN=Firefox U2F Soft Token");
|
||||
|
@ -575,13 +573,6 @@ PrivateKeyFromKeyHandle(const UniquePK11SlotInfo& aSlot,
|
|||
return unwrappedKey;
|
||||
}
|
||||
|
||||
// Return whether the provided version is supported by this token.
|
||||
bool
|
||||
U2FSoftTokenManager::IsCompatibleVersion(const nsAString& aVersion)
|
||||
{
|
||||
return mVersion == aVersion;
|
||||
}
|
||||
|
||||
// IsRegistered determines if the provided key handle is usable by this token.
|
||||
nsresult
|
||||
U2FSoftTokenManager::IsRegistered(const nsTArray<uint8_t>& aKeyHandle,
|
||||
|
|
|
@ -46,7 +46,6 @@ public:
|
|||
private:
|
||||
~U2FSoftTokenManager();
|
||||
nsresult Init();
|
||||
bool IsCompatibleVersion(const nsAString& aVersion);
|
||||
|
||||
nsresult IsRegistered(const nsTArray<uint8_t>& aKeyHandle,
|
||||
const nsTArray<uint8_t>& aAppParam,
|
||||
|
@ -56,7 +55,6 @@ private:
|
|||
mozilla::UniquePK11SymKey mWrappingKey;
|
||||
|
||||
static const nsCString mSecretNickname;
|
||||
static const nsString mVersion;
|
||||
|
||||
nsresult GetOrCreateWrappingKey(const mozilla::UniquePK11SlotInfo& aSlot,
|
||||
const nsNSSShutDownPreventionLock&);
|
||||
|
|
Загрузка…
Ссылка в новой задаче