/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/libs/poco/NetSSL_OpenSSL/src/KeyConsoleHandler.cpp
40 строк
707 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
// // KeyConsoleHandler.cpp // // Library: NetSSL_OpenSSL // Package: SSLCore // Module: KeyConsoleHandler // // Copyright (c) 2006-2009, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/Net/KeyConsoleHandler.h" #include <iostream> namespace Poco { namespace Net { KeyConsoleHandler::KeyConsoleHandler(bool server):PrivateKeyPassphraseHandler(server) { } KeyConsoleHandler::~KeyConsoleHandler() { } void KeyConsoleHandler::onPrivateKeyRequested(const void* /*pSender*/, std::string& privateKey) { std::cout << "Please enter the passphrase for the private key: "; std::cin >> privateKey; } } } // namespace Poco::Net