keepassxc

Форк
0
/
YubiKeyStub.cpp 
72 строки · 1.6 Кб
1
/*
2
 *  Copyright (C) 2014 Kyle Manna <kyle@kylemanna.com>
3
 *  Copyright (C) 2017-2021 KeePassXC Team <team@keepassxc.org>
4
 *
5
 *  This program is free software: you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation, either version 2 or (at your option)
8
 *  version 3 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18

19
#include "YubiKey.h"
20

21
YubiKey::YubiKey() = default;
22

23
YubiKey* YubiKey::m_instance(Q_NULLPTR);
24

25
YubiKey* YubiKey::instance()
26
{
27
    if (!m_instance) {
28
        m_instance = new YubiKey();
29
    }
30

31
    return m_instance;
32
}
33

34
bool YubiKey::isInitialized()
35
{
36
    return false;
37
}
38

39
bool YubiKey::findValidKeys()
40
{
41
    return false;
42
}
43

44
void YubiKey::findValidKeysAsync()
45
{
46
}
47

48
YubiKey::KeyMap YubiKey::foundKeys()
49
{
50
    return {};
51
}
52

53
QString YubiKey::errorMessage()
54
{
55
    return {};
56
}
57

58
bool YubiKey::testChallenge(YubiKeySlot slot, bool* wouldBlock)
59
{
60
    Q_UNUSED(slot);
61
    Q_UNUSED(wouldBlock);
62
    return false;
63
}
64

65
YubiKey::ChallengeResult YubiKey::challenge(YubiKeySlot slot, const QByteArray& chal, Botan::secure_vector<char>& resp)
66
{
67
    Q_UNUSED(slot);
68
    Q_UNUSED(chal);
69
    Q_UNUSED(resp);
70

71
    return YubiKey::ChallengeResult::YCR_ERROR;
72
}
73

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.