From a10561d517e1c0d68600d71f7b0b20439fd908fd Mon Sep 17 00:00:00 2001 From: voluntas Date: Wed, 18 Sep 2024 12:01:18 +0900 Subject: [PATCH] =?UTF-8?q?=E8=B6=B3=E3=82=8A=E3=81=AA=E3=81=84=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=89=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sora.cpp | 4 ++++ src/sora.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/sora.cpp b/src/sora.cpp index 4a1795bf..8baf4117 100644 --- a/src/sora.cpp +++ b/src/sora.cpp @@ -51,6 +51,7 @@ std::shared_ptr Sora::CreateConnection( std::optional insecure, std::optional client_cert, std::optional client_key, + std::optional ca_cert, std::optional proxy_url, std::optional proxy_username, std::optional proxy_password, @@ -154,6 +155,9 @@ std::shared_ptr Sora::CreateConnection( if (client_key) { config.client_key = *client_key; } + if (ca_cert) { + config.ca_cert = *ca_cert; + } if (proxy_url) { config.proxy_url = *proxy_url; } diff --git a/src/sora.h b/src/sora.h index c8d318bb..aa9766fa 100644 --- a/src/sora.h +++ b/src/sora.h @@ -74,6 +74,7 @@ class Sora : public DisposePublisher { * @param insecure (オプション) 証明書チェックの有効無効 デフォルト: false * @param client_cert (オプション) クライアント証明書 * @param client_key (オプション) クライアントシークレットキー + * @param ca_cert (オプション) サーバー証明書チェック用の CA 証明書 * @param proxy_url (オプション) Proxy URL * @param proxy_username (オプション) Proxy ユーザー名 * @param proxy_password (オプション) Proxy パスワード @@ -121,6 +122,7 @@ class Sora : public DisposePublisher { std::optional insecure, std::optional client_cert, std::optional client_key, + std::optional ca_cert, std::optional proxy_url, std::optional proxy_username, std::optional proxy_password,