summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/net/ssl_manager.cpp')
-rw-r--r--src/mongo/util/net/ssl_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/net/ssl_manager.cpp b/src/mongo/util/net/ssl_manager.cpp
index c784c3792d6..2f4a6fb713f 100644
--- a/src/mongo/util/net/ssl_manager.cpp
+++ b/src/mongo/util/net/ssl_manager.cpp
@@ -38,7 +38,6 @@
#include <string>
#include <vector>
-#include "mongo/base/data_view.h"
#include "mongo/base/init.h"
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/client/internal_auth.h"
@@ -780,6 +779,7 @@ bool SSLConfiguration::isClusterMember(StringData subjectName) const {
void SSLConfiguration::getServerStatusBSON(BSONObjBuilder* security) const {
security->append("SSLServerSubjectName", _serverSubjectName.toString());
+ security->appendBool("SSLServerHasCertificateAuthority", hasCA);
security->appendDate("SSLServerCertificateExpirationDate", serverCertificateExpirationDate);
}
@@ -1048,7 +1048,7 @@ StatusWith<DERToken> DERToken::parse(ConstDataRange cdr, size_t* outLength) {
derLength = ConstDataView(lengthBuffer.data()).read<BigEndian<uint64_t>>();
} else {
// Length is <= 127 bytes, i.e. short form of length
- derLength = ConstDataView(&initialLengthByte).read<uint8_t>();
+ derLength = initialLengthByte;
}
// This is the total length of the TLV and all data