summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_manager_openssl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/net/ssl_manager_openssl.cpp')
-rw-r--r--src/mongo/util/net/ssl_manager_openssl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp
index 7612f08a205..e175d584e59 100644
--- a/src/mongo/util/net/ssl_manager_openssl.cpp
+++ b/src/mongo/util/net/ssl_manager_openssl.cpp
@@ -3088,7 +3088,7 @@ Status _validatePeerRoles(const stdx::unordered_set<RoleName>& embeddedRoles, SS
auto allowedRoles = it->second;
// See TLSCATrustsSetParameter::set() for a description of tlsCATrusts format.
- if (allowedRoles.count(RoleName("", ""))) {
+ if (allowedRoles.count(RoleName())) {
// CA is authorized for all role assignments.
return Status::OK();
}
@@ -3099,7 +3099,7 @@ Status _validatePeerRoles(const stdx::unordered_set<RoleName>& embeddedRoles, SS
!allowedRoles.count(RoleName("", role.getDB()))) {
return {ErrorCodes::BadValue,
str::stream() << "CA: " << sha256.toHexString()
- << " is not authorized to grant role " << role.toString()
+ << " is not authorized to grant role " << role
<< " due to tlsCATrusts parameter"};
}
}