diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2021-02-22 10:46:10 +0100 |
---|---|---|
committer | Jiffin Tony Thottan <jthottan@redhat.com> | 2021-04-16 19:37:49 +0200 |
commit | 5b9139bd366d029871d29ca90971c5ad058fcf01 (patch) | |
tree | f4fd2540b5e314d56eb5cf14782577ddc0fb1df5 /src/rgw/rgw_http_client.h | |
parent | rgw: update debug log for curl error (diff) | |
download | ceph-5b9139bd366d029871d29ca90971c5ad058fcf01.tar.xz ceph-5b9139bd366d029871d29ca90971c5ad058fcf01.zip |
rgw: add support for client cert and key for vault
Authenticate vault with help of user supplied client cert and keys.
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Diffstat (limited to 'src/rgw/rgw_http_client.h')
-rw-r--r-- | src/rgw/rgw_http_client.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rgw/rgw_http_client.h b/src/rgw/rgw_http_client.h index 5782be6da5c..355e4181df9 100644 --- a/src/rgw/rgw_http_client.h +++ b/src/rgw/rgw_http_client.h @@ -42,6 +42,10 @@ class RGWHTTPClient : public RGWIOProvider, string ca_path; + string client_cert; + + string client_key; + std::atomic<unsigned> stopped { 0 }; @@ -178,6 +182,14 @@ public: void set_ca_path(const string& _ca_path) { ca_path = _ca_path; } + + void set_client_cert(const string& _client_cert) { + client_cert = _client_cert; + } + + void set_client_key(const string& _client_key) { + client_key = _client_key; + } }; |