summaryrefslogtreecommitdiff
path: root/src/mongo/util
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-36010 Use severe() for Windows exceptions logsYves Duhem2018-07-191-5/+5
| | | | (cherry picked from commit 6403c6a71e03cee4f6bebbc67b06ba46fbf632c4)
* SERVER-36039 Fix build for LibreSSL 2.7 (adopted parts of OpenSSL 1.1 API).Michael Gmelin2018-07-131-1/+2
| | | | | | | Closes #1252 Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com> (cherry picked from commit a1fad21d12d53d755634740e6b6fe1bc970494c8)
* SERVER-35125 Add additional SECBUFFER_EXTRA validationMark Benvenuto2018-07-131-3/+6
| | | | (cherry picked from commit dbd844703ad91562c9fe921b6911f57c29a3f0ea)
* SERVER-27264 Allow disabling no client certificate warningAdam Cooper2018-07-105-12/+40
| | | | (cherry picked from commit 14eb0afce97b372d0dc4d2a4c41a00318a36b0e2)
* SERVER-35600 Add support for targeting watchosAndrew Morrow2018-06-293-1/+59
| | | | (cherry picked from commit 9e1dd9db4bf614c785f51b23f73facc45fd75302)
* SERVER-35834 Fix compile of test on windows.ADAM David Alan Martin2018-06-281-9/+26
| | | | | | | | Microsoft's compiler has trouble with non-enclosed try-blocks, even when not function-level try blocks. Also silenced some type-mismatch warnings on high warning levels. (cherry picked from commit c467afb7b0c2c3c8f1f12ddcff01400466a53fed)
* SERVER-34563 Handle DNS names correctly in SRV record processing.ADAM David Alan Martin2018-06-284-3/+728
| | | | | | | | The current implementation of DNS name processing uses raw string processing. This change alters the mechanism to use a proper DNS name type which parses the hostname for proper processing. (cherry picked from commit 181c43bd006666b07441bb3be61b7324ef7dcc80)
* SERVER-34006 build android embedded with api version 21Gabriel Russell2018-06-141-1/+1
|
* SERVER-35541 Support PKCS#8 PrivateKeyInfo in SChannel Providerr4.0.0-rc5Mark Benvenuto2018-06-111-31/+62
| | | | (cherry picked from commit 8678e9ee87d2864376922522b9fa9b5a909aac1b)
* SERVER-35528 Limit new SSL config options to YAML/CommandLine onlySara Golemon2018-06-112-8/+14
| | | | (cherry picked from commit 4ad27bacdc573cb77aae379f7a75742a1dfc2ae1)
* SERVER-35275 rename fail point FP macros, improve docsBilly Donahue2018-06-113-11/+10
| | | | (cherry picked from commit e7fd01e0293bbb46b330ba00819ceaa638e88921)
* SERVER-35412 Namespace SSL_PROVIDER valuesSara Golemon2018-06-0814-39/+39
| | | | (cherry picked from commit 4448250e1aa4f778af67fc93176b0d07b3762a1f)
* SERVER-35444 Heap stacks should not be included in serverStatus with ↵Mark Benvenuto2018-06-071-1/+0
| | | | | | heapProfilingEnabled (cherry picked from commit 6e82b67a67edf2ca22d7bfa1c2061e56d7c94dea)
* SERVER-35272 Remove dependencies on ssl_manager and transport_layer from ↵Henrik Edin2018-06-078-31/+162
| | | | | | embedded when not dragged in by sharding. (cherry picked from commit 5dd6fcae8bedcf9dcb8a4e2e26b70320b369b48c)
* SERVER-35196 Map additional X509 OIDsSara Golemon2018-06-051-2/+55
| | | | (cherry picked from commit 23cd748c2df0800d908bb6c0e8b29d6f6ef7d0da)
* SERVER-35016 Adding commmon log for client/server certificate with LOG(1)Kashish Garg2018-06-052-10/+21
| | | | (cherry picked from commit 38f7aa5ad7aa3b7bf1b9ffa0dc28627083e2f8b8)
* SERVER-35406 Fix handling of unknown OIDs in OpenSSLSara Golemon2018-06-051-2/+8
| | | | (cherry picked from commit 656bd63ca02b37bdd3550b7a24c83085da5d145c)
* SERVER-35270 StringMap::count()Mathias Stearn2018-05-312-7/+24
| | | | (cherry picked from commit 28de1870dd72c6c6b10d2e7428a316b8ef8848ff)
* SERVER-35055 keyed executorJason Carey2018-05-254-0/+711
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a thread safe execution primitive for running jobs against an executor with mutual exclusion and queuing by key. Features: Keyed - Tasks are submitted under a key. The keys serve to prevent tasks for a given key from executing simultaneously. Tasks submitted under different keys may run concurrently. Queued - If a task is submitted for a key and another task is already running for that key, it is queued. I.e. tasks are run in FIFO order for a key. Thread Safe - This is a thread safe type. Any number of callers may invoke the public api methods simultaneously. Special Enhancements: onCurrentTasksDrained- Invoking this method for a key allows a caller to wait until all of the currently queued tasks for that key have completed. onAllCurrentTasksDrained- Invoking this method allows a caller to wait until all of the currently queued tasks for all key have completed. KeyedExecutorRetry - Throwing or returning KeyedExecutorRetry in a task will cause the task to be requeued immediately into the executor and retain its place in the queue. (cherry picked from commit 333fdd10e3981ef3938dc4a6b5807f2f2da95110)
* SERVER-35077 fix lintBenety Goh2018-05-241-1/+2
| | | | (cherry picked from commit 7d4d65716cb95c92bd86f99cd5f9333d664bd780)
* SERVER-35077 Add armv7-a SDK builderAndrew Morrow2018-05-231-5/+5
| | | | (cherry picked from commit e3ae39144d5b456085c9c1b34a89d097d457cffb)
* SERVER-35123 Fix periodic_runner_impl_testJason Carey2018-05-221-6/+0
| | | | | | | | | The periodic runner impl starts jobs immediately, rather than waiting for some time to pass on their first run. That's fine, and the correct behavior, but the unittest assumes that doesn't happen. The unittest needs to be updated to reflect realty. (cherry picked from commit b0c577146568c6e1d51b2db29bf21f4d87e93c85)
* SERVER-34894 Embedded authorization componentsADAM David Alan Martin2018-05-221-1/+1
| | | | | | | | | To facilitate using the mongodb code as an in-process embeddable library, we have created a dummy auth layer which can stand in for the real auth system in these contexts. Several link edges needed to be retargetted, and some tests needed to be relaxed. (cherry picked from commit ac1ceb8cb4994e235abe9a364c3dd7a2bfa84a62)
* SERVER-34960 Add MONGO_FAIL_POINT_BLOCK_IFJason Carey2018-05-163-18/+84
| | | | | | | | | | | It's sometimes useful to be able to check a pre-condition on a fail point without manipulating the fail point state (decrementing nTimes for instance). Adding a callable to shouldFailOpenBlock and shouldFail, and threading that through a new block macro MONGO_FAIL_POINT_BLOCK_IF, allows for observation of the fail point payload and a chance to abort without extra overhead if the fail point is disabled.
* SERVER-33706 Remove warning message about Windows FS cache configurationXiangyu Yao2018-05-168-63/+0
|
* SERVER-34735 Extract structured data from X509 subject namesSara Golemon2018-05-157-174/+318
|
* SERVER-34923 PeriodicRunnerASIO -> ImplJason Carey2018-05-1010-581/+463
| | | | | Replace PeriodicRunnerASIO with PeriodicRunnerImpl, a simpler interface that runs jobs on dedicated threads.
* SERVER-34888 Do not store subject name without validationSara Golemon2018-05-092-9/+19
|
* SERVER-33874 Unifiy hostname resolution in TransportLayerASIOJonathan Reams2018-05-082-2/+2
|
* SERVER-31400 Record netstat metrics in ftdcBruce Lucas2018-05-083-0/+245
|
* SERVER-34872 Disable `DecorableTest::ThrowingConstructor` on s390x.ADAM David Alan Martin2018-05-071-0/+4
|
* SERVER-34831 Add support for emailAddress in subject nameMark Benvenuto2018-05-072-6/+7
|
* SERVER-34805 Refactor the network libraries and move messages types to ↵Andrew Morrow2018-05-0516-2367/+322
| | | | rpc/protocol
* SERVER-34506 TLASIO test for isJustForContinuationJason Carey2018-05-041-0/+22
| | | | | | | | | | | | Adding an integration test for transport layer asio which uses a fail point to induce single byte at a time reads and writes. We use this, along with a debug block in the future header, to ensure that the continuation folding in futures is working properly with opportunisticRead/Write chaining. To test the other side of this, adding a new test command called "echo" which returns the command object passed to it (to allow for a large message body on the read and write path more easily).
* SERVER-33329: Make server and shell emit TLS protocol_version alertsSpencer Jackson2018-05-011-8/+10
|
* SERVER-34734 Make Secure Transport error messages more human readableSara Golemon2018-04-302-23/+19
|
* SERVER-34739 Migrate to 1 connpool in ARSJason Carey2018-04-271-0/+23
| | | | | | | | Migrate to 1 connection pool in mongos. This change involves the introduction of a transport layer baton, which improves perf for a particular transport layer when doing local scatter/gather operations.
* SERVER-34364 add test coverage for dassert macror3.7.9Benety Goh2018-04-261-1/+26
|
* SERVER-34636 enable opportunistic writes with sslr3.7.8Jason Carey2018-04-263-3/+12
| | | | | | | Add a side channel to the asio ssl streams which allows us to capture the work remaining for the tcp send in the event of a full send buffer. This makes opportunistic writes safe for ssl sockets
* SERVER-34364 remove invariantOK and dassertOKBenety Goh2018-04-262-18/+0
|
* SERVER-34364 replace references to invariantOK with invariantBenety Goh2018-04-261-1/+1
|
* SERVER-34364 qualify names from std namespaceBenety Goh2018-04-231-29/+28
|
* SERVER-34364 add Status and StatusWith support to invariant()Benety Goh2018-04-234-25/+130
|
* Replace LOKI_ preprocessor macros with mongo equivalents..Billy Donahue2018-04-201-9/+6
|
* SERVER-34545 Handle empty RDNs in Certificate subject namesMark Benvenuto2018-04-191-0/+4
|
* SERVER-34396 Fail to compile if io manipulators like std::hex are passed to ↵Mathias Stearn2018-04-181-0/+8
| | | | | | | StringBuilder/str::stream This includes a partial revert of 80f409d1311eb8d20251d17be474aff382538b84 (SERVER-34307) to address this bug.
* SERVER-34468 Disable TLS 1.0 by default on AppleMark Benvenuto2018-04-181-4/+3
|
* SERVER-34541 Remove MessagePort and ListenerAndrew Morrow2018-04-187-1407/+0
| | | | Also removes the unimportant but flaky scoped_db_conn_test
* SERVER-34477 Do not mix iterators from different mapsSara Golemon2018-04-171-9/+11
|
* SERVER-34413 Converting Certificate Subject Names to strings need to obey ↵Mark Benvenuto2018-04-177-38/+169
| | | | RFC 2253