summaryrefslogtreecommitdiff
path: root/include/iprt/cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-03-15 17:46:52 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-03-15 17:46:52 +0000
commit13c15f5749af08530aff3f7ebca51f7e633afe19 (patch)
treeba34b57cef38487b52004298efeb5ae6060474b5 /include/iprt/cpp
parent785b8aed38373629a48aa0e8e149060cd95faf9f (diff)
downloadVirtualBox-svn-13c15f5749af08530aff3f7ebca51f7e633afe19.tar.gz
OCI/PCA: bugref:9969 - Make it possible to specify the CA file for the
REST API calls. If "cert_bundle" profile parameter is not empty, use it. git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@88124 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'include/iprt/cpp')
-rw-r--r--include/iprt/cpp/restclient.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/iprt/cpp/restclient.h b/include/iprt/cpp/restclient.h
index 7c806ff4d0e..8b8451f862a 100644
--- a/include/iprt/cpp/restclient.h
+++ b/include/iprt/cpp/restclient.h
@@ -718,6 +718,13 @@ public:
virtual const char *getDefaultServerBasePath() const RT_NOEXCEPT = 0;
/** @} */
+ /**
+ * Sets the CA file to use for HTTPS.
+ */
+ int setCAFile(const char *pcszCAFile) RT_NOEXCEPT;
+ /** @overload */
+ int setCAFile(const RTCString &strCAFile) RT_NOEXCEPT;
+
/** Flags to doCall. */
enum
{
@@ -730,6 +737,8 @@ protected:
RTHTTP m_hHttp;
/** The server URL to use. If empty use the default. */
RTCString m_strServerUrl;
+ /** The CA file to use. If empty use the default. */
+ RTCString m_strCAFile;
/* Make non-copyable (RTCNonCopyable causes warnings): */
RTCRestClientApiBase(RTCRestClientApiBase const &);