diff options
Diffstat (limited to 'src/mongo/util/net/ssl_manager.h')
-rw-r--r-- | src/mongo/util/net/ssl_manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/util/net/ssl_manager.h b/src/mongo/util/net/ssl_manager.h index 28b218530d5..6c8c98a91cf 100644 --- a/src/mongo/util/net/ssl_manager.h +++ b/src/mongo/util/net/ssl_manager.h @@ -446,6 +446,14 @@ std::string removeFQDNRoot(std::string name); std::string escapeRfc2253(StringData str); /** + * Generates a new SSLX509Name containing only the attributes requested in filteredAttributes. + * Note that multi-valued RDNs will be preserved if any of the attributes in the RDN are specified + * in filteredAttributes. + */ +SSLX509Name filterClusterDN(const SSLX509Name& fullClusterDN, + const stdx::unordered_set<std::string>& filterAttributes); + +/** * Parse a DN from a string per RFC 4514 */ StatusWith<SSLX509Name> parseDN(StringData str); |