Skip to content

Commit

Permalink
Add helper method to set delegated credential
Browse files Browse the repository at this point in the history
Summary: Add an analogous set method for DCs as we have for regular certs

Reviewed By: frqiu

Differential Revision: D57458927

fbshipit-source-id: f3f368ef3184e053ea9c668b621a59e21f037329
  • Loading branch information
Ajanthan Asogamoorthy authored and facebook-github-bot committed May 17, 2024
1 parent 69a5ed2 commit 1fd797d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions third-party/wangle/src/wangle/ssl/SSLContextConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ struct SSLContextConfig {
certificates.emplace_back(cert, key);
}

void setDelegatedCredential(const std::string& credPath) {
delegatedCredentials.clear();
addDelegatedCredential(credPath);
}

void addDelegatedCredential(const std::string& credPath) {
delegatedCredentials.emplace_back(DelegatedCredInfo{credPath});
}
Expand Down

0 comments on commit 1fd797d

Please sign in to comment.