mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-24 23:10:55 +08:00
更新ZLToolKit(完善ssl相关)
This commit is contained in:
@@ -48,6 +48,13 @@ int main(int argc, char *argv[]) {
|
||||
Logger::Instance().add(std::make_shared<ConsoleChannel>());
|
||||
Logger::Instance().setWriter(std::make_shared<AsyncLogWriter>());
|
||||
|
||||
//加载证书,证书包含公钥和私钥
|
||||
SSL_Initor::Instance().loadCertificate((exeDir() + "ssl.p12").data());
|
||||
//信任某个自签名证书
|
||||
SSL_Initor::Instance().trustCertificate((exeDir() + "ssl.p12").data());
|
||||
//不忽略无效证书证书(例如自签名或过期证书)
|
||||
SSL_Initor::Instance().ignoreInvalidCertificate(false);
|
||||
|
||||
///////////////////////////////http downloader///////////////////////
|
||||
//下载器map
|
||||
map<string, HttpDownloader::Ptr> downloaderMap;
|
||||
|
||||
Reference in New Issue
Block a user