├── .gitmodules ├── VERSION_CURRENT ├── etc └── prior_version.txt ├── src ├── libmongoc │ ├── tests │ │ ├── .gitignore │ │ ├── binary │ │ │ ├── empty.dat │ │ │ ├── msg1.dat │ │ │ ├── query1.dat │ │ │ ├── query2.dat │ │ │ ├── reply1.dat │ │ │ ├── reply2.dat │ │ │ ├── delete1.dat │ │ │ ├── get_more1.dat │ │ │ ├── insert1.dat │ │ │ ├── update1.dat │ │ │ └── kill_cursors1.dat │ │ ├── release_files │ │ │ ├── empty-file.txt │ │ │ ├── example-etc-fedora-release.txt │ │ │ ├── example-etc-xyz-release-no-delimiter.txt │ │ │ ├── example-etc-os-release.txt │ │ │ └── example-etc-os-release-ubuntu1604.txt │ │ ├── pkg-config-import │ │ │ └── app.c │ │ ├── client_side_encryption_prose │ │ │ ├── lookup │ │ │ │ └── schema-non-csfle.json │ │ │ ├── limits-qe-doc.json │ │ │ ├── limits-encryptedFields.json │ │ │ └── datakey-and-double-encryption-schemamap.json │ │ ├── json │ │ │ ├── server_selection │ │ │ │ ├── rtt │ │ │ │ │ ├── value_test_1.json │ │ │ │ │ ├── first_value.json │ │ │ │ │ ├── first_value_zero.json │ │ │ │ │ ├── value_test_2.json │ │ │ │ │ ├── value_test_3.json │ │ │ │ │ ├── value_test_4.json │ │ │ │ │ └── value_test_5.json │ │ │ │ └── server_selection │ │ │ │ │ ├── Unknown │ │ │ │ │ ├── read │ │ │ │ │ │ ├── SecondaryPreferred.json │ │ │ │ │ │ └── ghost.json │ │ │ │ │ └── write │ │ │ │ │ │ ├── SecondaryPreferred.json │ │ │ │ │ │ └── ghost.json │ │ │ │ │ └── ReplicaSetNoPrimary │ │ │ │ │ └── read │ │ │ │ │ ├── PossiblePrimary.json │ │ │ │ │ └── PossiblePrimaryNearest.json │ │ │ ├── uri-options │ │ │ │ └── README │ │ │ ├── initial_dns_seedlist_discovery │ │ │ │ ├── replica-set │ │ │ │ │ ├── two-txt-records.json │ │ │ │ │ ├── no-results.json │ │ │ │ │ ├── not-enough-parts.json │ │ │ │ │ ├── txt-record-with-unallowed-option.json │ │ │ │ │ ├── uri-with-port.json │ │ │ │ │ ├── returned-parent-wrong.json │ │ │ │ │ ├── parent-part-mismatch4.json │ │ │ │ │ ├── returned-parent-too-short.json │ │ │ │ │ ├── srvMaxHosts-invalid_type.json │ │ │ │ │ ├── misformatted-option.json │ │ │ │ │ ├── txt-record-not-allowed-option.json │ │ │ │ │ ├── direct-connection-true.json │ │ │ │ │ ├── parent-part-mismatch1.json │ │ │ │ │ ├── parent-part-mismatch2.json │ │ │ │ │ ├── parent-part-mismatch3.json │ │ │ │ │ ├── parent-part-mismatch5.json │ │ │ │ │ ├── srvMaxHosts-invalid_integer.json │ │ │ │ │ ├── uri-with-two-hosts.json │ │ │ │ │ ├── srvMaxHosts-conflicts_with_replicaSet-txt.json │ │ │ │ │ ├── srvMaxHosts-conflicts_with_replicaSet.json │ │ │ │ │ ├── srvMaxHosts-less_than_srv_records.json │ │ │ │ │ ├── loadBalanced-false-txt.json │ │ │ │ │ ├── one-txt-record-multiple-strings.json │ │ │ │ │ ├── one-result-default-port.json │ │ │ │ │ ├── one-txt-record.json │ │ │ │ │ ├── direct-connection-false.json │ │ │ │ │ ├── txt-record-with-overridden-ssl-option.json │ │ │ │ │ ├── two-results-default-port.json │ │ │ │ │ ├── srvMaxHosts-greater_than_srv_records.json │ │ │ │ │ ├── srvMaxHosts-zero-txt.json │ │ │ │ │ ├── two-results-nonstandard-port.json │ │ │ │ │ ├── txt-record-with-overridden-uri-option.json │ │ │ │ │ ├── srv-service-name.json │ │ │ │ │ ├── srvMaxHosts-equal_to_srv_records.json │ │ │ │ │ ├── srvMaxHosts-zero.json │ │ │ │ │ ├── longer-parent-in-return.json │ │ │ │ │ ├── uri-with-auth.json │ │ │ │ │ └── uri-with-admin-database.json │ │ │ │ ├── sharded │ │ │ │ │ ├── srvMaxHosts-invalid_type.json │ │ │ │ │ ├── srvMaxHosts-less_than_srv_records.json │ │ │ │ │ ├── srvMaxHosts-invalid_integer.json │ │ │ │ │ ├── srvMaxHosts-zero.json │ │ │ │ │ ├── srvMaxHosts-greater_than_srv_records.json │ │ │ │ │ └── srvMaxHosts-equal_to_srv_records.json │ │ │ │ └── load-balanced │ │ │ │ │ ├── loadBalanced-no-results.json │ │ │ │ │ ├── loadBalanced-replicaSet-errors.json │ │ │ │ │ ├── loadBalanced-true-multiple-hosts.json │ │ │ │ │ ├── srvMaxHosts-conflicts_with_loadBalanced-true-txt.json │ │ │ │ │ ├── srvMaxHosts-conflicts_with_loadBalanced-true.json │ │ │ │ │ ├── loadBalanced-true-txt.json │ │ │ │ │ ├── srvMaxHosts-zero-txt.json │ │ │ │ │ ├── srvMaxHosts-zero.json │ │ │ │ │ └── loadBalanced-directConnection.json │ │ │ └── max_staleness │ │ │ │ ├── Unknown │ │ │ │ └── SmallMaxStaleness.json │ │ │ │ └── ReplicaSetNoPrimary │ │ │ │ ├── MaxStalenessTooSmall.json │ │ │ │ └── NoKnownServers.json │ │ └── cmake-import │ │ │ └── use-bson.c │ ├── src │ │ └── mongoc │ │ │ └── .gitignore │ ├── examples │ │ ├── .gitignore │ │ ├── compile-with-pkg-config.sh │ │ ├── compile-with-pkg-config-static.sh │ │ └── cmake │ │ │ └── vcpkg │ │ │ ├── app.c │ │ │ └── CMakeLists.txt │ └── doc │ │ ├── includes │ │ ├── not-retryable-read.txt │ │ ├── cmake.inv │ │ ├── python.inv │ │ ├── sphinx.inv │ │ ├── libbson.inv │ │ ├── mongoc_client_pool_thread_safe.txt │ │ ├── seealso │ │ │ ├── cursor-error.txt │ │ │ └── authmechanism.txt │ │ ├── read-cmd-opts-sources.txt │ │ ├── mongoc_client_pool_call_once.txt │ │ ├── retryable-read-command.txt │ │ ├── retryable-read.txt │ │ ├── bulk-insert-opts.txt │ │ ├── retryable-read-aggregate.txt │ │ └── gridfs-bucket-upload-opts.txt │ │ ├── CMakeLists.txt │ │ ├── .gitignore │ │ ├── mongoc_init.rst │ │ ├── mongoc_cleanup.rst │ │ ├── mongoc_stream_tls_t.rst │ │ ├── mongoc_server_api_destroy.rst │ │ ├── full_index.rst │ │ ├── mongoc_bulkwrite_destroy.rst │ │ ├── mongoc_get_major_version.rst │ │ ├── mongoc_get_micro_version.rst │ │ ├── mongoc_get_minor_version.rst │ │ ├── mongoc_get_version.rst │ │ ├── mongoc_bulkwriteopts_destroy.rst │ │ ├── mongoc_bulkwrite_set_session.rst │ │ ├── mongoc_bulkwriteresult_destroy.rst │ │ ├── mongoc_optional_init.rst │ │ ├── mongoc_bulkwriteexception_destroy.rst │ │ ├── mongoc_bulkwriteopts_new.rst │ │ ├── mongoc_rand_status.rst │ │ ├── mongoc_bulkwrite_deleteoneopts_new.rst │ │ ├── mongoc_bulkwrite_set_client.rst │ │ ├── mongoc_bulkwrite_replaceoneopts_new.rst │ │ ├── mongoc_bulkwrite_updatemanyopts_new.rst │ │ ├── mongoc_uri_destroy.rst │ │ ├── mongoc_bulkwrite_deletemanyopts_new.rst │ │ ├── mongoc_client_bulkwrite_new.rst │ │ ├── mongoc_bulkwrite_deleteoneopts_destroy.rst │ │ ├── mongoc_bulkwrite_insertoneopts_destroy.rst │ │ ├── mongoc_bulkwrite_updateoneopts_destroy.rst │ │ ├── mongoc_change_stream_destroy.rst │ │ ├── mongoc_ssl_opt_get_default.rst │ │ ├── mongoc_stream_timed_out.rst │ │ ├── mongoc_bulkwrite_deletemanyopts_destroy.rst │ │ ├── mongoc_bulkwrite_replaceoneopts_destroy.rst │ │ ├── mongoc_bulkwrite_updatemanyopts_destroy.rst │ │ ├── mongoc_bulkwriteresult_deletedcount.rst │ │ ├── mongoc_bulkwriteresult_matchedcount.rst │ │ ├── mongoc_server_api_new.rst │ │ ├── mongoc_bulkwriteresult_insertedcount.rst │ │ ├── mongoc_bulkwriteresult_modifiedcount.rst │ │ ├── mongoc_bulkwriteresult_upsertedcount.rst │ │ ├── mongoc_rand_seed.rst │ │ ├── mongoc_bulkwriteexception_errorreply.rst │ │ ├── mongoc_bulkwrite_deleteoneopts_set_collation.rst │ │ ├── mongoc_bulkwrite_updateoneopts_set_collation.rst │ │ ├── mongoc_bulkwrite_deletemanyopts_set_collation.rst │ │ ├── mongoc_bulkwrite_new.rst │ │ ├── mongoc_bulkwrite_replaceoneopts_set_collation.rst │ │ ├── mongoc_bulkwrite_updatemanyopts_set_collation.rst │ │ ├── mongoc_client_encryption_opts_new.rst │ │ ├── mongoc_read_concern_new.rst │ │ ├── mongoc_write_concern_new.rst │ │ ├── mongoc_bulkwrite_insertoneopts_new.rst │ │ ├── mongoc_bulkwrite_updateoneopts_new.rst │ │ ├── mongoc_bulkwriteexception_error.rst │ │ ├── mongoc_database_destroy.rst │ │ ├── mongoc_bulk_operation_destroy.rst │ │ ├── mongoc_database_get_name.rst │ │ ├── mongoc_optional_copy.rst │ │ ├── mongoc_cursor_get_limit.rst │ │ ├── mongoc_bulkwriteopts_set_comment.rst │ │ ├── mongoc_read_prefs_destroy.rst │ │ ├── mongoc_apm_callbacks_destroy.rst │ │ ├── mongoc_bulkwriteopts_set_serverid.rst │ │ ├── mongoc_uri_get_string.rst │ │ ├── mongoc_gridfs_bucket_destroy.rst │ │ ├── mongoc_optional_is_set.rst │ │ ├── mongoc_uri_has_option.rst │ │ ├── mongoc_write_concern_is_valid.rst │ │ ├── mongoc_bulkwrite_insertoneopts_t.rst │ │ ├── mongoc_client_encryption_datakey_opts_new.rst │ │ ├── mongoc_client_encryption_encrypt_opts_new.rst │ │ ├── mongoc_client_get_uri.rst │ │ ├── mongoc_cursor_get_max_await_time_ms.rst │ │ ├── mongoc_gridfs_destroy.rst │ │ ├── mongoc_gridfs_file_destroy.rst │ │ └── mongoc_read_prefs_add_tag.rst ├── common │ └── src │ │ ├── .gitignore │ │ └── common-config.h.in ├── kms-message │ ├── .gitattributes │ ├── cmake │ │ ├── kms_message-config.cmake │ │ └── libkms_message.pc.in │ ├── aws-sig-v4-test-suite │ │ ├── get-utf8 │ │ │ ├── get-utf8.req │ │ │ ├── get-utf8.sts │ │ │ ├── get-utf8.creq │ │ │ ├── get-utf8.authz │ │ │ └── get-utf8.sreq │ │ ├── get-vanilla │ │ │ ├── get-vanilla.req │ │ │ ├── get-vanilla.sts │ │ │ ├── get-vanilla.creq │ │ │ ├── get-vanilla.authz │ │ │ └── get-vanilla.sreq │ │ ├── post-vanilla │ │ │ ├── post-vanilla.req │ │ │ ├── post-vanilla.sts │ │ │ ├── post-vanilla.creq │ │ │ ├── post-vanilla.authz │ │ │ └── post-vanilla.sreq │ │ ├── get-vanilla-query │ │ │ ├── get-vanilla-query.req │ │ │ ├── get-vanilla-query.sts │ │ │ ├── get-vanilla-query.creq │ │ │ ├── get-vanilla-query.authz │ │ │ └── get-vanilla-query.sreq │ │ ├── normalize-path │ │ │ ├── get-slash │ │ │ │ ├── get-slash.req │ │ │ │ ├── get-slash.sts │ │ │ │ ├── get-slash.creq │ │ │ │ ├── get-slash.authz │ │ │ │ └── get-slash.sreq │ │ │ ├── get-slashes │ │ │ │ ├── get-slashes.req │ │ │ │ ├── get-slashes.sts │ │ │ │ ├── get-slashes.creq │ │ │ │ ├── get-slashes.authz │ │ │ │ └── get-slashes.sreq │ │ │ ├── get-space │ │ │ │ ├── get-space.req │ │ │ │ ├── get-space.sts │ │ │ │ ├── get-space.authz │ │ │ │ ├── get-space.creq │ │ │ │ └── get-space.sreq │ │ │ ├── get-relative │ │ │ │ ├── get-relative.req │ │ │ │ ├── get-relative.sts │ │ │ │ ├── get-relative.creq │ │ │ │ ├── get-relative.authz │ │ │ │ └── get-relative.sreq │ │ │ ├── get-slash-dot-slash │ │ │ │ ├── get-slash-dot-slash.req │ │ │ │ ├── get-slash-dot-slash.sts │ │ │ │ ├── get-slash-dot-slash.creq │ │ │ │ ├── get-slash-dot-slash.authz │ │ │ │ └── get-slash-dot-slash.sreq │ │ │ ├── get-slash-pointless-dot │ │ │ │ ├── get-slash-pointless-dot.req │ │ │ │ ├── get-slash-pointless-dot.sts │ │ │ │ ├── get-slash-pointless-dot.creq │ │ │ │ ├── get-slash-pointless-dot.authz │ │ │ │ └── get-slash-pointless-dot.sreq │ │ │ └── get-relative-relative │ │ │ │ ├── get-relative-relative.req │ │ │ │ ├── get-relative-relative.sts │ │ │ │ ├── get-relative-relative.creq │ │ │ │ ├── get-relative-relative.authz │ │ │ │ └── get-relative-relative.sreq │ │ ├── NOTICE │ │ ├── post-header-key-case │ │ │ ├── post-header-key-case.req │ │ │ ├── post-header-key-case.sts │ │ │ ├── post-header-key-case.creq │ │ │ ├── post-header-key-case.authz │ │ │ └── post-header-key-case.sreq │ │ ├── get-vanilla-utf8-query │ │ │ ├── get-vanilla-utf8-query.req │ │ │ ├── get-vanilla-utf8-query.sts │ │ │ ├── get-vanilla-utf8-query.creq │ │ │ ├── get-vanilla-utf8-query.authz │ │ │ └── get-vanilla-utf8-query.sreq │ │ ├── post-vanilla-query │ │ │ ├── post-vanilla-query.req │ │ │ ├── post-vanilla-query.sts │ │ │ ├── post-vanilla-query.authz │ │ │ ├── post-vanilla-query.creq │ │ │ └── post-vanilla-query.sreq │ │ ├── post-sts-token │ │ │ ├── post-sts-header-after │ │ │ │ ├── post-sts-header-after.req │ │ │ │ ├── post-sts-header-after.sts │ │ │ │ ├── post-sts-header-after.creq │ │ │ │ └── post-sts-header-after.authz │ │ │ └── post-sts-header-before │ │ │ │ ├── post-sts-header-before.sts │ │ │ │ ├── post-sts-header-before.authz │ │ │ │ └── post-sts-header-before.req │ │ ├── post-header-key-sort │ │ │ ├── post-header-key-sort.req │ │ │ ├── post-header-key-sort.sts │ │ │ ├── post-header-key-sort.authz │ │ │ ├── post-header-key-sort.creq │ │ │ └── post-header-key-sort.sreq │ │ ├── get-vanilla-empty-query-key │ │ │ ├── get-vanilla-empty-query-key.req │ │ │ ├── get-vanilla-empty-query-key.sts │ │ │ ├── get-vanilla-empty-query-key.creq │ │ │ ├── get-vanilla-empty-query-key.authz │ │ │ └── get-vanilla-empty-query-key.sreq │ │ ├── post-header-value-case │ │ │ ├── post-header-value-case.req │ │ │ ├── post-header-value-case.sts │ │ │ ├── post-header-value-case.authz │ │ │ ├── post-header-value-case.creq │ │ │ └── post-header-value-case.sreq │ │ ├── post-vanilla-empty-query-value │ │ │ ├── post-vanilla-empty-query-value.req │ │ │ ├── post-vanilla-empty-query-value.sts │ │ │ ├── post-vanilla-empty-query-value.authz │ │ │ ├── post-vanilla-empty-query-value.creq │ │ │ └── post-vanilla-empty-query-value.sreq │ │ ├── get-vanilla-query-order-key │ │ │ ├── get-vanilla-query-order-key.req │ │ │ ├── get-vanilla-query-order-key.sts │ │ │ ├── get-vanilla-query-order-key.authz │ │ │ ├── get-vanilla-query-order-key.creq │ │ │ └── get-vanilla-query-order-key.sreq │ │ ├── get-vanilla-query-order-value │ │ │ ├── get-vanilla-query-order-value.req │ │ │ ├── get-vanilla-query-order-value.sts │ │ │ ├── get-vanilla-query-order-value.authz │ │ │ ├── get-vanilla-query-order-value.creq │ │ │ └── get-vanilla-query-order-value.sreq │ │ ├── get-header-value-trim │ │ │ ├── get-header-value-trim.req │ │ │ ├── get-header-value-trim.sts │ │ │ ├── get-header-value-trim.authz │ │ │ ├── get-header-value-trim.creq │ │ │ └── get-header-value-trim.sreq │ │ ├── get-vanilla-query-order-key-case │ │ │ ├── get-vanilla-query-order-key-case.req │ │ │ ├── get-vanilla-query-order-key-case.sts │ │ │ ├── get-vanilla-query-order-key-case.authz │ │ │ ├── get-vanilla-query-order-key-case.creq │ │ │ └── get-vanilla-query-order-key-case.sreq │ │ ├── get-unreserved │ │ │ ├── get-unreserved.req │ │ │ ├── get-unreserved.sts │ │ │ ├── get-unreserved.authz │ │ │ ├── get-unreserved.creq │ │ │ └── get-unreserved.sreq │ │ ├── get-header-value-multiline │ │ │ ├── get-header-value-multiline.req │ │ │ ├── get-header-value-multiline.sts │ │ │ ├── get-header-value-multiline.authz │ │ │ ├── get-header-value-multiline.creq │ │ │ └── get-header-value-multiline.sreq │ │ ├── get-header-key-duplicate │ │ │ ├── get-header-key-duplicate.req │ │ │ ├── get-header-key-duplicate.sts │ │ │ ├── get-header-key-duplicate.authz │ │ │ ├── get-header-key-duplicate.creq │ │ │ └── get-header-key-duplicate.sreq │ │ ├── get-header-value-order │ │ │ ├── get-header-value-order.sts │ │ │ ├── get-header-value-order.req │ │ │ ├── get-header-value-order.authz │ │ │ ├── get-header-value-order.creq │ │ │ └── get-header-value-order.sreq │ │ ├── post-x-www-form-urlencoded │ │ │ ├── post-x-www-form-urlencoded.req │ │ │ ├── post-x-www-form-urlencoded.sts │ │ │ ├── post-x-www-form-urlencoded.authz │ │ │ ├── post-x-www-form-urlencoded.creq │ │ │ └── post-x-www-form-urlencoded.sreq │ │ ├── get-vanilla-query-unreserved │ │ │ ├── get-vanilla-query-unreserved.sts │ │ │ ├── get-vanilla-query-unreserved.authz │ │ │ ├── get-vanilla-query-unreserved.req │ │ │ ├── get-vanilla-query-unreserved.creq │ │ │ └── get-vanilla-query-unreserved.sreq │ │ └── post-x-www-form-urlencoded-parameters │ │ │ ├── post-x-www-form-urlencoded-parameters.sts │ │ │ ├── post-x-www-form-urlencoded-parameters.req │ │ │ ├── post-x-www-form-urlencoded-parameters.authz │ │ │ ├── post-x-www-form-urlencoded-parameters.creq │ │ │ └── post-x-www-form-urlencoded-parameters.sreq │ └── test │ │ ├── multibyte │ │ ├── multibyte.creq │ │ └── multibyte.sreq │ │ ├── host │ │ └── host.sreq │ │ ├── connection_close │ │ └── connection_close.sreq │ │ ├── decrypt │ │ └── decrypt.creq │ │ ├── encrypt │ │ ├── encrypt.creq │ │ └── encrypt.sreq │ │ ├── content_length │ │ └── content_length.sreq │ │ └── example-response.bin ├── libbson │ ├── tests │ │ ├── binary │ │ │ ├── test19.bson │ │ │ ├── test40.bson │ │ │ ├── test42.bson │ │ │ ├── test46.bson │ │ │ ├── dotquery.bson │ │ │ ├── test1.bson │ │ │ ├── test18.bson │ │ │ ├── test25.bson │ │ │ ├── test37.bson │ │ │ ├── test59.bson │ │ │ ├── test60.bson │ │ │ ├── test9.bson │ │ │ ├── empty_key.bson │ │ │ ├── overflow1.bson │ │ │ ├── test10.bson │ │ │ ├── test11.bson │ │ │ ├── test2.bson │ │ │ ├── test21.bson │ │ │ ├── test27.bson │ │ │ ├── test32.bson │ │ │ ├── dollarquery.bson │ │ │ ├── eurokey.bson │ │ │ ├── overflow3.bson │ │ │ ├── test29.bson │ │ │ ├── test30.bson │ │ │ ├── test57.bson │ │ │ ├── test58.bson │ │ │ ├── cdriver2269.bson │ │ │ ├── codewscope.bson │ │ │ ├── overflow4.bson │ │ │ ├── test48.bson │ │ │ ├── test5.bson │ │ │ ├── test50.bson │ │ │ ├── test8.bson │ │ │ ├── binary_deprecated.bson │ │ │ ├── test13.bson │ │ │ ├── test16.bson │ │ │ ├── test23.bson │ │ │ ├── code_w_empty_scope.bson │ │ │ ├── dotkey.bson │ │ │ ├── test14.bson │ │ │ ├── test31.bson │ │ │ ├── test6.bson │ │ │ ├── test3.bson │ │ │ ├── test4.bson │ │ │ ├── test7.bson │ │ │ ├── test12.bson │ │ │ ├── test15.bson │ │ │ ├── test17.bson │ │ │ ├── test20.bson │ │ │ ├── test22.bson │ │ │ ├── test24.bson │ │ │ ├── test26.bson │ │ │ ├── test28.bson │ │ │ ├── test33.bson │ │ │ ├── test34.bson │ │ │ ├── test35.bson │ │ │ ├── test36.bson │ │ │ ├── test38.bson │ │ │ ├── test39.bson │ │ │ ├── test41.bson │ │ │ ├── test43.bson │ │ │ ├── test44.bson │ │ │ ├── test45.bson │ │ │ ├── test47.bson │ │ │ ├── test49.bson │ │ │ ├── test51.bson │ │ │ ├── test52.bson │ │ │ ├── test53.bson │ │ │ ├── test54.bson │ │ │ ├── test55.bson │ │ │ ├── test56.bson │ │ │ ├── overflow2.bson │ │ │ ├── trailingnull.bson │ │ │ └── stackoverflow.bson │ │ ├── json │ │ │ ├── test.json │ │ │ └── bson_corpus │ │ │ │ ├── null.json │ │ │ │ ├── maxkey.json │ │ │ │ ├── minkey.json │ │ │ │ └── undefined.json │ │ └── test-clock.c │ ├── src │ │ └── bson │ │ │ └── .gitignore │ ├── .gitattributes │ ├── examples │ │ ├── cmake │ │ │ └── .gitignore │ │ ├── compile-with-pkg-config.sh │ │ └── compile-with-pkg-config-static.sh │ ├── doc │ │ ├── includes │ │ │ └── seealso │ │ │ │ ├── json.txt │ │ │ │ ├── iter-init.txt │ │ │ │ ├── bson-as-json.txt │ │ │ │ └── create-bson.txt │ │ ├── CMakeLists.txt │ │ ├── .gitignore │ │ ├── full_index.rst │ │ ├── bson_oid_hash_unsafe.rst │ │ ├── bson_oid_copy_unsafe.rst │ │ ├── bson_oid_equal_unsafe.rst │ │ ├── bson_oid_get_time_t_unsafe.rst │ │ ├── bson_oid_compare_unsafe.rst │ │ ├── bson_writer_end.rst │ │ ├── bson_get_version.rst │ │ ├── bson_oid_copy.rst │ │ ├── bson_free.rst │ │ ├── bson_value_destroy.rst │ │ ├── bson_get_major_version.rst │ │ ├── bson_get_micro_version.rst │ │ ├── bson_oid_init_from_string_unsafe.rst │ │ ├── bson_get_minor_version.rst │ │ ├── bson_oid_hash.rst │ │ ├── bson_strfreev.rst │ │ ├── bson_json_reader_destroy.rst │ │ ├── bson_reader_destroy.rst │ │ ├── bson_oid_to_string.rst │ │ ├── bson_json_opts_destroy.rst │ │ ├── bson_strdup.rst │ │ ├── bson_context_get_default.rst │ │ ├── bson_count_keys.rst │ │ ├── bson_reader_tell.rst │ │ ├── bson_oid_init.rst │ │ ├── bson_oid_init_from_data.rst │ │ ├── bson_strnlen.rst │ │ ├── bson_equal.rst │ │ └── bson_mem_restore_vtable.rst │ └── fuzz │ │ ├── validate.cpp │ │ └── init-from-json.c ├── zlib-1.3.1 │ ├── zlib.3.pdf │ ├── Makefile │ ├── zlib.pc.in │ ├── zlib.pc.cmakein │ └── inffast.h ├── c-check.c └── cpp-check.cpp ├── .tsan-suppressions ├── .gitattributes ├── .evergreen ├── ocsp │ ├── README.txt │ ├── rsa │ │ ├── responder.logs │ │ ├── mock-valid.sh │ │ ├── mock-revoked.sh │ │ ├── mock-delegate-valid.sh │ │ └── mock-delegate-revoked.sh │ └── ecdsa │ │ ├── mock-valid.sh │ │ ├── mock-delegate-valid.sh │ │ ├── mock-delegate-revoked.sh │ │ ├── mock-revoked.sh │ │ ├── ca.key │ │ └── ocsp-responder.key ├── scripts │ ├── llvm-gcov.sh │ ├── use-tools.sh │ ├── compile.sh │ ├── install-libmongoc-after-libbson.sh │ ├── oidc-azure-test.sh │ ├── oidc-gcp-test.sh │ └── run-mongodb-aws-ecs-test.sh ├── etc │ ├── require-api-version.js │ └── kerberos.realm ├── .codecov.yml └── config_generator │ ├── generators │ └── legacy_config.py │ └── components │ └── funcs │ └── backtrace.py ├── .github └── CODEOWNERS ├── .lsan-suppressions └── .git-blame-ignore-revs /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VERSION_CURRENT: -------------------------------------------------------------------------------- 1 | 2.3.0-dev 2 | -------------------------------------------------------------------------------- /etc/prior_version.txt: -------------------------------------------------------------------------------- 1 | 2.2.0 2 | -------------------------------------------------------------------------------- /src/libmongoc/tests/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/empty.dat: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.tsan-suppressions: -------------------------------------------------------------------------------- 1 | race:mongoc_counter* 2 | -------------------------------------------------------------------------------- /src/common/src/.gitignore: -------------------------------------------------------------------------------- 1 | common-config.h 2 | -------------------------------------------------------------------------------- /src/kms-message/.gitattributes: -------------------------------------------------------------------------------- 1 | *.bin binary 2 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/test19.bson: -------------------------------------------------------------------------------- 1 | bool -------------------------------------------------------------------------------- /src/libbson/tests/binary/test40.bson: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/libbson/tests/binary/test42.bson: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/libbson/tests/binary/test46.bson: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libmongoc/tests/release_files/empty-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/dotquery.bson: -------------------------------------------------------------------------------- 1 | abc.def -------------------------------------------------------------------------------- /src/libbson/tests/binary/test1.bson: -------------------------------------------------------------------------------- 1 | int -------------------------------------------------------------------------------- /src/libbson/tests/binary/test18.bson: -------------------------------------------------------------------------------- 1 | 2 | hello -------------------------------------------------------------------------------- /src/libbson/tests/binary/test25.bson: -------------------------------------------------------------------------------- 1 | undefined -------------------------------------------------------------------------------- /src/libbson/tests/binary/test37.bson: -------------------------------------------------------------------------------- 1 | maxkey -------------------------------------------------------------------------------- /src/libbson/tests/binary/test59.bson: -------------------------------------------------------------------------------- 1 | . -------------------------------------------------------------------------------- /src/libbson/tests/binary/test60.bson: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /src/libbson/tests/binary/test9.bson: -------------------------------------------------------------------------------- 1 | 2 | null -------------------------------------------------------------------------------- /src/libbson/tests/binary/empty_key.bson: -------------------------------------------------------------------------------- 1 | value -------------------------------------------------------------------------------- /src/libbson/tests/binary/overflow1.bson: -------------------------------------------------------------------------------- 1 | foobar -------------------------------------------------------------------------------- /src/libbson/tests/binary/test10.bson: -------------------------------------------------------------------------------- 1 |  regex1234i -------------------------------------------------------------------------------- /src/libbson/tests/binary/test11.bson: -------------------------------------------------------------------------------- 1 | helloworld -------------------------------------------------------------------------------- /src/libbson/tests/binary/test2.bson: -------------------------------------------------------------------------------- 1 | int64 -------------------------------------------------------------------------------- /src/libbson/tests/binary/test21.bson: -------------------------------------------------------------------------------- 1 | document -------------------------------------------------------------------------------- /src/libbson/tests/binary/test27.bson: -------------------------------------------------------------------------------- 1 |  regex^abcdilx -------------------------------------------------------------------------------- /src/libbson/tests/binary/test32.bson: -------------------------------------------------------------------------------- 1 | helloworld -------------------------------------------------------------------------------- /src/libbson/src/bson/.gitignore: -------------------------------------------------------------------------------- 1 | bson-stdint.h 2 | .dirstamp 3 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/dollarquery.bson: -------------------------------------------------------------------------------- 1 | $query -------------------------------------------------------------------------------- /src/libbson/tests/binary/eurokey.bson: -------------------------------------------------------------------------------- 1 | *€€€€€€€€€€ -------------------------------------------------------------------------------- /src/libbson/tests/binary/overflow3.bson: -------------------------------------------------------------------------------- 1 | foo bar -------------------------------------------------------------------------------- /src/libbson/tests/binary/test29.bson: -------------------------------------------------------------------------------- 1 |  code var a = {}; -------------------------------------------------------------------------------- /src/libbson/tests/binary/test30.bson: -------------------------------------------------------------------------------- 1 |  code var a = {}; -------------------------------------------------------------------------------- /src/libbson/tests/binary/test57.bson: -------------------------------------------------------------------------------- 1 | binary1234 -------------------------------------------------------------------------------- /src/libbson/tests/binary/test58.bson: -------------------------------------------------------------------------------- 1 | a -------------------------------------------------------------------------------- /src/libbson/tests/binary/cdriver2269.bson: -------------------------------------------------------------------------------- 1 | 興 -------------------------------------------------------------------------------- /src/libbson/tests/binary/codewscope.bson: -------------------------------------------------------------------------------- 1 | foofoo -------------------------------------------------------------------------------- /src/libbson/tests/binary/overflow4.bson: -------------------------------------------------------------------------------- 1 | foobarbaz -------------------------------------------------------------------------------- /src/libbson/tests/binary/test48.bson: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /src/libbson/tests/binary/test5.bson: -------------------------------------------------------------------------------- 1 | string some string -------------------------------------------------------------------------------- /src/libbson/tests/binary/test50.bson: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /src/libbson/tests/binary/test8.bson: -------------------------------------------------------------------------------- 1 | documentint -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | tests/binary/* text eol=lf 2 | *.bat text eol=crlf 3 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/binary_deprecated.bson: -------------------------------------------------------------------------------- 1 | binary1234 -------------------------------------------------------------------------------- /src/libbson/tests/binary/test13.bson: -------------------------------------------------------------------------------- 1 | #array[bool]012 -------------------------------------------------------------------------------- /src/libmongoc/tests/pkg-config-import/app.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | } -------------------------------------------------------------------------------- /.evergreen/ocsp/README.txt: -------------------------------------------------------------------------------- 1 | Copied from drivers-evergreen-tools/.evergreen/ocsp. -------------------------------------------------------------------------------- /src/libmongoc/src/mongoc/.gitignore: -------------------------------------------------------------------------------- 1 | mongoc-config.h 2 | mongoc-version.h 3 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/test16.bson: -------------------------------------------------------------------------------- 1 | array[null] 2 | 0 3 | 1 4 | 2 -------------------------------------------------------------------------------- /src/libbson/tests/binary/test23.bson: -------------------------------------------------------------------------------- 1 | +array0hello1world -------------------------------------------------------------------------------- /.evergreen/scripts/llvm-gcov.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | exec llvm-cov gcov "$@" 4 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/code_w_empty_scope.bson: -------------------------------------------------------------------------------- 1 | $code var a = {}; -------------------------------------------------------------------------------- /src/libbson/tests/binary/dotkey.bson: -------------------------------------------------------------------------------- 1 | 2a*b"c012 -------------------------------------------------------------------------------- /src/libbson/tests/binary/test14.bson: -------------------------------------------------------------------------------- 1 | 3array[string]0hello1world -------------------------------------------------------------------------------- /src/libbson/tests/binary/test31.bson: -------------------------------------------------------------------------------- 1 | 1code& var a = {};foobar -------------------------------------------------------------------------------- /src/libmongoc/examples/.gitignore: -------------------------------------------------------------------------------- 1 | cmake_install.cmake 2 | hello_mongoc 3 | build 4 | -------------------------------------------------------------------------------- /.evergreen/ocsp/rsa/responder.logs: -------------------------------------------------------------------------------- 1 | INFO:mock_ocsp_responder:Launching debugserver on port 8100 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Listing code owners is required by DRIVERS-3098 2 | * @mongodb/dbx-c-cxx 3 | -------------------------------------------------------------------------------- /src/libmongoc/tests/release_files/example-etc-fedora-release.txt: -------------------------------------------------------------------------------- 1 | Fedora release 8 (Werewolf) 2 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/test6.bson: -------------------------------------------------------------------------------- 1 | @array[int]/012345 -------------------------------------------------------------------------------- /.evergreen/etc/require-api-version.js: -------------------------------------------------------------------------------- 1 | db.adminCommand({ "setParameter": 1, "requireApiVersion": 1 }); 2 | -------------------------------------------------------------------------------- /src/libbson/.gitattributes: -------------------------------------------------------------------------------- 1 | *.txt text 2 | *.vcproj eol=crlf 3 | *.sh eol=lf 4 | -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/not-retryable-read.txt: -------------------------------------------------------------------------------- 1 | This function is not considered a retryable read operation. -------------------------------------------------------------------------------- /src/zlib-1.3.1/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/zlib-1.3.1/zlib.3.pdf -------------------------------------------------------------------------------- /src/kms-message/cmake/kms_message-config.cmake: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/kms_message_targets.cmake") 2 | -------------------------------------------------------------------------------- /src/libbson/tests/json/test.json: -------------------------------------------------------------------------------- 1 | {"foo": "bar", "a": 1} 2 | {"_id": {"$oid": "aabbccddeeff001122334455"}} 3 | -------------------------------------------------------------------------------- /src/libmongoc/tests/client_side_encryption_prose/lookup/schema-non-csfle.json: -------------------------------------------------------------------------------- 1 | { 2 | "bsonType": "object" 3 | } 4 | -------------------------------------------------------------------------------- /src/libmongoc/tests/release_files/example-etc-xyz-release-no-delimiter.txt: -------------------------------------------------------------------------------- 1 | This one just has name, not that R word 2 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/test3.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test3.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test4.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test4.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test7.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test7.bson -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/msg1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/msg1.dat -------------------------------------------------------------------------------- /src/c-check.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int 5 | main (void) 6 | { 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /src/libbson/examples/cmake/.gitignore: -------------------------------------------------------------------------------- 1 | CMakeCache.txt 2 | CMakeFiles 3 | Makefile 4 | cmake_install.cmake 5 | hello_bson 6 | build 7 | -------------------------------------------------------------------------------- /src/libbson/tests/binary/test12.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test12.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test15.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test15.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test17.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test17.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test20.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test20.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test22.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test22.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test24.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test24.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test26.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test26.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test28.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test28.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test33.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test33.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test34.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test34.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test35.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test35.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test36.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test36.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test38.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test38.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test39.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test39.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test41.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test41.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test43.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test43.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test44.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test44.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test45.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test45.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test47.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test47.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test49.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test49.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test51.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test51.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test52.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test52.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test53.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test53.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test54.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test54.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test55.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test55.bson -------------------------------------------------------------------------------- /src/libbson/tests/binary/test56.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/test56.bson -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/cmake.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/doc/includes/cmake.inv -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/python.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/doc/includes/python.inv -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/sphinx.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/doc/includes/sphinx.inv -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/query1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/query1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/query2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/query2.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/reply1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/reply1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/reply2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/reply2.dat -------------------------------------------------------------------------------- /.lsan-suppressions: -------------------------------------------------------------------------------- 1 | leak:ccrng_cryptographic_init_once 2 | leak:ccrng_cryptographic_generate 3 | leak:res_9_ninit 4 | leak:SSLCreateContext -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-utf8/get-utf8.req: -------------------------------------------------------------------------------- 1 | GET /ሴ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libbson/tests/binary/overflow2.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/overflow2.bson -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/libbson.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/doc/includes/libbson.inv -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/delete1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/delete1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/get_more1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/get_more1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/insert1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/insert1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/update1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/update1.dat -------------------------------------------------------------------------------- /.evergreen/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "src/kms-message" 3 | - "src/zlib-*" 4 | - "src/libbson/tests" 5 | - "src/libmongoc/tests" 6 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla/get-vanilla.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libbson/tests/binary/trailingnull.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/trailingnull.bson -------------------------------------------------------------------------------- /src/zlib-1.3.1/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla/post-vanilla.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libbson/tests/binary/stackoverflow.bson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libbson/tests/binary/stackoverflow.bson -------------------------------------------------------------------------------- /src/libmongoc/tests/binary/kill_cursors1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/mongo-c-driver/HEAD/src/libmongoc/tests/binary/kill_cursors1.dat -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 0, 3 | "new_rtt_ms": 5, 4 | "new_avg_rtt": 1 5 | } 6 | -------------------------------------------------------------------------------- /.evergreen/etc/kerberos.realm: -------------------------------------------------------------------------------- 1 | [realms] 2 | LDAPTEST.10GEN.CC = { 3 | kdc = ldaptest.10gen.cc 4 | admin_server = ldaptest.10gen.cc 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/first_value.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": "NULL", 3 | "new_rtt_ms": 10, 4 | "new_avg_rtt": 10 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/first_value_zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": "NULL", 3 | "new_rtt_ms": 0, 4 | "new_avg_rtt": 0 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 3.1, 3 | "new_rtt_ms": 36, 4 | "new_avg_rtt": 9.68 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_3.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 9.12, 3 | "new_rtt_ms": 9.12, 4 | "new_avg_rtt": 9.12 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_4.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 1, 3 | "new_rtt_ms": 1000, 4 | "new_avg_rtt": 200.8 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/rtt/value_test_5.json: -------------------------------------------------------------------------------- 1 | { 2 | "avg_rtt_ms": 0, 3 | "new_rtt_ms": 0.25, 4 | "new_avg_rtt": 0.05 5 | } 6 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/uri-options/README: -------------------------------------------------------------------------------- 1 | Driver URI options tests from: https://github.com/mongodb/specifications/tree/master/source/uri-options 2 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query/get-vanilla-query.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash/get-slash.req: -------------------------------------------------------------------------------- 1 | GET // HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /.evergreen/scripts/use-tools.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Call out to tools/use.sh 4 | source "$(dirname "${BASH_SOURCE[0]}")/../../tools/use.sh" "$@" 5 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/NOTICE: -------------------------------------------------------------------------------- 1 | AWS Signature Version 4 Test Suite 2 | Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-case/post-header-key-case.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/mongoc_client_pool_thread_safe.txt: -------------------------------------------------------------------------------- 1 | Thread Safety 2 | ------------- 3 | 4 | This function is safe to call from multiple threads. 5 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slashes/get-slashes.req: -------------------------------------------------------------------------------- 1 | GET //example// HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-space/get-space.req: -------------------------------------------------------------------------------- 1 | GET /example space/ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/seealso/cursor-error.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | 3 | | :symbol:`mongoc_cursor_error()` 4 | 5 | | :symbol:`mongoc_cursor_error_document()` 6 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-utf8-query/get-vanilla-utf8-query.req: -------------------------------------------------------------------------------- 1 | GET /?ሴ=bar HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative/get-relative.req: -------------------------------------------------------------------------------- 1 | GET /example/.. HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-query/post-vanilla-query.req: -------------------------------------------------------------------------------- 1 | POST /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-dot-slash/get-slash-dot-slash.req: -------------------------------------------------------------------------------- 1 | GET /./ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-after/post-sts-header-after.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-sort/post-header-key-sort.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value1 4 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/read-cmd-opts-sources.txt: -------------------------------------------------------------------------------- 1 | Use this function for commands that read such as "count" or "distinct". 2 | 3 | .. include:: includes/read-opts-sources.txt 4 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-empty-query-key/get-vanilla-empty-query-key.req: -------------------------------------------------------------------------------- 1 | GET /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-value-case/post-header-value-case.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:VALUE1 4 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-pointless-dot/get-slash-pointless-dot.req: -------------------------------------------------------------------------------- 1 | GET /./example HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libmongoc/examples/compile-with-pkg-config.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # -- sphinx-include-start -- 4 | gcc -o hello_mongoc hello_mongoc.c $(pkg-config --libs --cflags mongoc$major) 5 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-empty-query-value/post-vanilla-empty-query-value.req: -------------------------------------------------------------------------------- 1 | POST /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libbson/doc/includes/seealso/json.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | 3 | | :symbol:`bson_init_from_json()` 4 | 5 | | :symbol:`bson_json_reader_read()` 6 | 7 | | :symbol:`bson_new_from_json()` 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/client_side_encryption_prose/limits-qe-doc.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 3 | } -------------------------------------------------------------------------------- /.evergreen/scripts/compile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ "${OSTYPE}" == "cygwin" ]]; then 4 | .evergreen/scripts/compile-windows.sh 5 | else 6 | .evergreen/scripts/compile-unix.sh 7 | fi 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key/get-vanilla-query-order-key.req: -------------------------------------------------------------------------------- 1 | GET /?Param1=value2&Param1=Value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative-relative/get-relative-relative.req: -------------------------------------------------------------------------------- 1 | GET /example1/example2/../.. HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /.evergreen/ocsp/rsa/mock-valid.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ca.crt \ 5 | --ocsp_responder_key ca.key \ 6 | -p 8100 \ 7 | -v 8 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # Format source files with ColumnLimit: 120 2 | 482ea4e8d20a6af4be9c01d4fd220dd63b231332 3 | # Remove whitespace in function/macro calls 4 | 6ccc0ae7b5ce30559853cc53f3a8938010fde332 5 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-value/get-vanilla-query-order-value.req: -------------------------------------------------------------------------------- 1 | GET /?Param1=value2&Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/libmongoc/examples/compile-with-pkg-config-static.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # -- sphinx-include-start -- 4 | gcc -o hello_mongoc hello_mongoc.c $(pkg-config --libs --cflags mongoc$major-static) 5 | -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/mock-valid.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ca.crt \ 5 | --ocsp_responder_key ca.key \ 6 | -p 8100 \ 7 | -v 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-trim/get-header-value-trim.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1: value1 4 | My-Header2: "a b c" 5 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-utf8/get-utf8.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 2a0a97d02205e45ce2e994789806b19270cfbbb0921b278ccf58f5249ac42102 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.req: -------------------------------------------------------------------------------- 1 | GET /?Param2=value2&Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/cpp-check.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * The sole purpose of this file is to check that the mongoc headers can be 3 | * included in a C++ file without error. 4 | */ 5 | #include 6 | #include 7 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-unreserved/get-unreserved.req: -------------------------------------------------------------------------------- 1 | GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla/get-vanilla.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla/post-vanilla.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-multiline/get-header-value-multiline.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value1 4 | value2 5 | value3 6 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-unreserved/get-unreserved.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 6a968768eefaa713e2a6b16b589a8ea192661f098f37349f4e2c0082757446f9 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query/get-vanilla-query.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash/get-slash.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-space/get-space.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative/get-relative.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slashes/get-slashes.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | cb96b4ac96d501f7c5c15bc6d67b3035061cfced4af6585ad927f7e6c985c015 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-case/post-header-key-case.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-sort/post-header-key-sort.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 9368318c2967cf6de74404b30c65a91e8f6253e0a8659d6d5319f1a812f87d65 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-query/post-vanilla-query.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/mongoc_client_pool_call_once.txt: -------------------------------------------------------------------------------- 1 | Thread Safety 2 | ------------- 3 | 4 | This function can only be called once on a pool, and must be called before the first call to :symbol:`mongoc_client_pool_pop`. 5 | -------------------------------------------------------------------------------- /.evergreen/ocsp/rsa/mock-revoked.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ca.crt \ 5 | --ocsp_responder_key ca.key \ 6 | -p 8100 \ 7 | -v \ 8 | --fault revoked 9 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-key-duplicate/get-header-key-duplicate.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value2 4 | My-Header1:value2 5 | My-Header1:value1 6 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-order/get-header-value-order.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 31ce73cd3f3d9f66977ad3dd957dc47af14df92fcd8509f59b349e9137c58b86 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-trim/get-header-value-trim.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | a726db9b0df21c14f559d0a978e563112acb1b9e05476f0a6a1c7d68f28605c7 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-utf8-query/get-vanilla-utf8-query.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | eb30c5bed55734080471a834cc727ae56beb50e5f39d1bff6d0d38cb192a7073 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla/get-vanilla.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-value-case/post-header-value-case.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | d51ced243e649e3de6ef63afbbdcbca03131a21a7103a1583706a64618606a93 -------------------------------------------------------------------------------- /src/libbson/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include (SphinxBuild) 2 | 3 | if (ENABLE_HTML_DOCS) 4 | sphinx_build_html (bson-html libbson) 5 | endif () 6 | 7 | if (ENABLE_MAN_PAGES) 8 | sphinx_build_man (bson-man) 9 | endif () 10 | -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/mock-delegate-valid.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ocsp-responder.crt \ 5 | --ocsp_responder_key ocsp-responder.key \ 6 | -p 8100 \ 7 | -v 8 | -------------------------------------------------------------------------------- /.evergreen/ocsp/rsa/mock-delegate-valid.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ocsp-responder.crt \ 5 | --ocsp_responder_key ocsp-responder.key \ 6 | -p 8100 \ 7 | -v 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-key-duplicate/get-header-key-duplicate.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | dc7f04a3abfde8d472b0ab1a418b741b7c67174dad1551b4117b15527fbe966c -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-utf8/get-utf8.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /%E1%88%B4 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla/post-vanilla.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/libbson/fuzz/validate.cpp: -------------------------------------------------------------------------------- 1 | #include "./validate.hpp" 2 | 3 | #include 4 | 5 | extern "C" int 6 | LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) 7 | { 8 | return validate_one_input(data, size); 9 | } 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-multiline/get-header-value-multiline.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | b7b6cbfd8a0430b78891e986784da2630c8a135a8595cec25b26ea94f926ee55 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-utf8/get-utf8.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 1e24db194ed7d0eec2de28d7369675a243488e08526e8c1c73571282f7c517ab -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key/get-vanilla-query-order-key.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 704b4cef673542d84cdff252633f065e8daeba5f168b77116f8b1bcaf3d38f89 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-dot-slash/get-slash-dot-slash.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash/get-slash.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded/post-x-www-form-urlencoded.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Type:application/x-www-form-urlencoded 3 | Host:example.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | 6 | Param1=value1 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 42a5e5bb34198acb3e84da4f085bb7927f2bc277ca766e6d19c73c2154021281 -------------------------------------------------------------------------------- /src/libmongoc/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include (SphinxBuild) 2 | 3 | if (ENABLE_HTML_DOCS) 4 | sphinx_build_html (mongoc-html mongo-c-driver) 5 | endif () 6 | 7 | if (ENABLE_MAN_PAGES) 8 | sphinx_build_man (mongoc-man) 9 | endif () 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-order/get-header-value-order.req: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value4 4 | My-Header1:value1 5 | My-Header1:value3 6 | My-Header1:value2 7 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-value/get-vanilla-query-order-value.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | c968629d70850097a2d8781c9bf7edcb988b04cac14cca9be4acc3595f884606 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-unreserved/get-vanilla-query-unreserved.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | c30d4703d9f799439be92736156d47ccfb2d879ddf56f5befa6d1d6aab979177 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query/get-vanilla-query.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla/get-vanilla.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative-relative/get-relative-relative.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-after/post-sts-header-after.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-before/post-sts-header-before.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | c237e1b440d4c63c32ca95b5b99481081cb7b13c7e40434868e71567c1a882f6 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-empty-query-value/post-vanilla-empty-query-value.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative/get-relative.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-pointless-dot/get-slash-pointless-dot.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 214d50c111a8edc4819da6a636336472c916b5240f51e9a51b5c3305180cf702 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-case/post-header-key-case.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla/post-vanilla.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b -------------------------------------------------------------------------------- /src/libbson/doc/.gitignore: -------------------------------------------------------------------------------- 1 | *.7 2 | *.pyc 3 | .doctrees 4 | objects.inv 5 | html/*.html 6 | html/*.css 7 | html/*.js 8 | html/*.png 9 | html/_sources 10 | html/_static 11 | html/.buildinfo 12 | html/.nojekyll 13 | man/*.3 14 | man/.buildinfo 15 | -------------------------------------------------------------------------------- /src/libbson/doc/includes/seealso/iter-init.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | 3 | | :symbol:`bson_iter_init()` 4 | 5 | | :symbol:`bson_iter_init_find()` 6 | 7 | | :symbol:`bson_iter_init_find_case()` 8 | 9 | | :symbol:`bson_iter_init_from_data()` 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-unreserved/get-unreserved.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slashes/get-slashes.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /example/ 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /.evergreen/ocsp/rsa/mock-delegate-revoked.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ocsp_responder.crt \ 5 | --ocsp_responder_key ocsp_responder.key \ 6 | -p 8100 \ 7 | -v \ 8 | --fault revoked 9 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query/get-vanilla-query.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-dot-slash/get-slash-dot-slash.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash/get-slash.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slashes/get-slashes.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9a624bd73a37c9a373b5312afbebe7a714a789de108f0bdfe846570885f57e84 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-space/get-space.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-space/get-space.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /example%20space/ 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-query/post-vanilla-query.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-query/post-vanilla-query.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | Param1=value1 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.sts: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 2 | 20150830T123600Z 3 | 20150830/us-east-1/service/aws4_request 4 | 2e1cf7ed91881a30569e46552437e4156c823447bf1781b921b5d486c568dd1c -------------------------------------------------------------------------------- /src/libbson/examples/compile-with-pkg-config.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -o errexit # Exit the script with error if any of the commands fail 4 | 5 | # -- sphinx-include-start -- 6 | gcc -o hello_bson hello_bson.c $(pkg-config --libs --cflags bson$major) 7 | -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/mock-delegate-revoked.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | python3 ../ocsp_mock.py \ 3 | --ca_file ca.pem \ 4 | --ocsp_responder_cert ocsp-responder.crt \ 5 | --ocsp_responder_key ocsp-responder.key \ 6 | -p 8100 \ 7 | -v \ 8 | --fault revoked 9 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-utf8-query/get-vanilla-utf8-query.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | %E1%88%B4=bar 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative-relative/get-relative-relative.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative/get-relative.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-case/post-header-key-case.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-after/post-sts-header-after.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-utf8-query/get-vanilla-utf8-query.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04 -------------------------------------------------------------------------------- /src/libmongoc/doc/.gitignore: -------------------------------------------------------------------------------- 1 | *.7 2 | *.pyc 3 | .doctrees 4 | objects.inv 5 | html/*.html 6 | html/*.css 7 | html/*.js 8 | html/*.png 9 | html/_sources 10 | html/_static 11 | html/_images/ 12 | html/.buildinfo 13 | html/.nojekyll 14 | man/*.3 15 | man/.buildinfo 16 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-empty-query-key/get-vanilla-empty-query-key.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | Param1=value1 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-pointless-dot/get-slash-pointless-dot.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /example 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-sort/post-header-key-sort.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Type:application/x-www-form-urlencoded; charset=utf8 3 | Host:example.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | 6 | Param1=value1 -------------------------------------------------------------------------------- /src/libbson/examples/compile-with-pkg-config-static.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -o errexit # Exit the script with error if any of the commands fail 4 | 5 | # -- sphinx-include-start -- 6 | gcc -o hello_bson hello_bson.c $(pkg-config --libs --cflags bson$major-static) 7 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/two-txt-records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test6.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because there are two TXT records." 7 | } 8 | -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/mock-revoked.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # Use the CA as the OCSP responder 3 | python3 ../ocsp_mock.py \ 4 | --ca_file ca.pem \ 5 | --ocsp_responder_cert ca.crt \ 6 | --ocsp_responder_key ca.key \ 7 | -p 8100 \ 8 | -v \ 9 | --fault revoked 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-order/get-header-value-order.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-empty-query-key/get-vanilla-empty-query-key.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key/get-vanilla-query-order-key.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=eedbc4e291e521cf13422ffca22be7d2eb8146eecf653089df300a15b2382bd1 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-unreserved/get-vanilla-query-unreserved.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative-relative/get-relative-relative.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-dot-slash/get-slash-dot-slash.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-value-case/post-header-value-case.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-after/post-sts-header-after.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgMzE6ziHkSWt+sE2O 3 | RMFZ9wqjOg88cWTuMMYrKXXL1UWhRANCAAT1rsrbhlZEQAubaPkS23tOfSEdWNd+ 4 | u7N5kV4nxKQDNxPcScnSGrb41tBEINdGLQ/SopWZx9O8UJSrh8sqaV1A 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-key-duplicate/get-header-key-duplicate.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-value/get-vanilla-query-order-value.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5772eed61e12b33fae39ee5e7012498b51d56abc0abb7c60486157bd471c4694 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-pointless-dot/get-slash-pointless-dot.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=ef75d96142cf21edca26f06005da7988e4f8dc83a165a80865db7089db637ec5 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-sort/post-header-key-sort.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:value1 6 | x-amz-date:20150830T123600Z 7 | 8 | host;my-header1;x-amz-date 9 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-value-case/post-header-value-case.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:VALUE1 6 | x-amz-date:20150830T123600Z 7 | 8 | host;my-header1;x-amz-date 9 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-empty-query-value/post-vanilla-empty-query-value.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-empty-query-value/post-vanilla-empty-query-value.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | Param1=value1 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/libmongoc/examples/cmake/vcpkg/app.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | int 6 | main(void) 7 | { 8 | mongoc_init(); 9 | fprintf(stdout, "Linked with libmongoc %s\n", mongoc_get_version()); 10 | mongoc_cleanup(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/no-results.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test4.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because no SRV records are present for this URI." 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-multiline/get-header-value-multiline.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=ba17b383a53190154eb5fa66a1b836cc297cc0a3d70a5d00705980573d8ff790 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-trim/get-header-value-trim.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key/get-vanilla-query-order-key.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | Param1=Value1&Param1=value2 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded/post-x-www-form-urlencoded.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ff11897932ad3f4e8b18135d722051e5ac45fc38421b1da7b9d196a0fe09473a -------------------------------------------------------------------------------- /src/kms-message/test/multibyte/multibyte.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /%E2%82%AC/ 3 | euro=%E2%82%AC 4 | content-length:4 5 | host:€.€.amazonaws.com 6 | x-amz-date:20150830T123600Z 7 | €:€asdf€ 8 | 9 | content-length;host;x-amz-date;€ 10 | 5bf858e4b892817978d798623768af7080d99ded72501cf15374e12861725f12 -------------------------------------------------------------------------------- /.evergreen/ocsp/ecdsa/ocsp-responder.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgxxFxGTsPETczP0SW 3 | 69vnqYXZIgk+qG61j6JKElHa6duhRANCAARFxr0G/Q8MuQJQvLFrHDHyfI+qicUX 4 | zwxCJmljvArtq0F9aSln0H+6Srmn7FUNfFLj2G4QhBRY5nnGiwV+uZr3 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /src/common/src/common-config.h.in: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_CONFIG_H 2 | #define COMMON_CONFIG_H 3 | 4 | #define MONGOC_ENABLE_DEBUG_ASSERTIONS @MONGOC_ENABLE_DEBUG_ASSERTIONS@ 5 | 6 | #if MONGOC_ENABLE_DEBUG_ASSERTIONS != 1 7 | # undef MONGOC_ENABLE_DEBUG_ASSERTIONS 8 | #endif 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-value/get-vanilla-query-order-value.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | Param1=value1&Param1=value2 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/not-enough-parts.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because host in URI does not have {hostname}, {domainname} and {tld}." 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | Param1=value1&Param2=value2 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_init.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_init 2 | 3 | mongoc_init() 4 | ============= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_init (void); 13 | 14 | Description 15 | ----------- 16 | 17 | .. include:: includes/init_cleanup.txt 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/txt-record-with-unallowed-option.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test7.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because \"ssl\" is not an allowed option." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-invalid_type.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=foo", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because srvMaxHosts is not an integer" 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-key-duplicate/get-header-key-duplicate.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:value2,value2,value1 6 | x-amz-date:20150830T123600Z 7 | 8 | host;my-header1;x-amz-date 9 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-order/get-header-value-order.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:value4,value1,value3,value2 6 | x-amz-date:20150830T123600Z 7 | 8 | host;my-header1;x-amz-date 9 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-unreserved/get-unreserved.creq: -------------------------------------------------------------------------------- 1 | GET 2 | /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 3 | 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-unreserved/get-vanilla-query-unreserved.req: -------------------------------------------------------------------------------- 1 | GET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-before/post-sts-header-before.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=85d96828115b5dc0cfc3bd16ad9e210dd772bbebba041836c64533a82be05ead -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/uri-with-port.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc:8123/?replicaSet=repl0", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because the mongodb+srv URI includes a port." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-less_than_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=1", 3 | "numSeeds": 1, 4 | "numHosts": 1, 5 | "options": { 6 | "srvMaxHosts": 1, 7 | "ssl": true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-multiline/get-header-value-multiline.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:value1,value2,value3 6 | x-amz-date:20150830T123600Z 7 | 8 | host;my-header1;x-amz-date 9 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.authz: -------------------------------------------------------------------------------- 1 | AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1a72ec8f64bd914b0e42e42607c7fbce7fb2c7465f63e3092b3b0d39fa77a6fe -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_cleanup.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_cleanup 2 | 3 | mongoc_cleanup() 4 | ================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_cleanup (void); 13 | 14 | Description 15 | ----------- 16 | 17 | .. include:: includes/init_cleanup.txt 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/returned-parent-wrong.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test12.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name is too short and mismatches a parent." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/retryable-read-command.txt: -------------------------------------------------------------------------------- 1 | Retry logic occurs regardless of the underlying command. Retrying ``mapReduce`` has the potential for degraded performance. 2 | Retrying a ``getMore`` command has the potential to miss results. For those commands, use generic command helpers (like |generic-cmd|) instead. -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/loadBalanced-no-results.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test4.test.build.10gen.cc/?loadBalanced=true", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because no SRV records are present for this URI." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/parent-part-mismatch4.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test17.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name's TLD \"not-cc\" mismatches URI TLD \"cc\"." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/returned-parent-too-short.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test13.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name's parent (build.10gen.cc) misses \"test.\"" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-invalid_type.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0&srvMaxHosts=foo", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because srvMaxHosts is not an integer" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-invalid_integer.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=-1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because srvMaxHosts is not greater than or equal to zero" 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded/post-x-www-form-urlencoded.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | content-type:application/x-www-form-urlencoded 5 | host:example.amazonaws.com 6 | x-amz-date:20150830T123600Z 7 | 8 | content-type;host;x-amz-date 9 | 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/retryable-read.txt: -------------------------------------------------------------------------------- 1 | This function is considered a retryable read operation. 2 | Upon a transient error (a network error, errors due to replica set failover, etc.) the operation is safely retried once. 3 | If ``retryreads`` is false in the URI (see :symbol:`mongoc_uri_t`) the retry behavior does not apply. -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/misformatted-option.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test8.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because the options in the TXT record are incorrectly formatted (misses value)." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/txt-record-not-allowed-option.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test10.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because socketTimeoutMS is not an allowed option." 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-trim/get-header-value-trim.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | 4 | host:example.amazonaws.com 5 | my-header1:value1 6 | my-header2:"a b c" 7 | x-amz-date:20150830T123600Z 8 | 9 | host;my-header1;my-header2;x-amz-date 10 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/test/host/host.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:foo-service.foo-region.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=foo-akid/20150830/foo-region/foo-service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8b264695a2fd7fe28b309c611e0770da5a4c5ca0c040209941f78d773d9297b2 -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/direct-connection-true.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test3.test.build.10gen.cc/?directConnection=true", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because directConnection=true is incompatible with SRV URIs." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/parent-part-mismatch1.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test14.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name's part \"not-test\" mismatches URI parent part \"test\"." 7 | } 8 | -------------------------------------------------------------------------------- /.evergreen/config_generator/generators/legacy_config.py: -------------------------------------------------------------------------------- 1 | import subprocess 2 | import sys 3 | 4 | 5 | def generate(): 6 | subprocess.run( 7 | args=[ 8 | sys.executable, 9 | '.evergreen/legacy_config_generator/generate-evergreen-config.py', 10 | ], 11 | check=True, 12 | ) 13 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/loadBalanced-replicaSet-errors.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test24.test.build.10gen.cc/?replicaSet=replset", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because loadBalanced=true is incompatible with replicaSet" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/parent-part-mismatch2.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test15.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name's part \"not-build\" mismatches URI parent part \"build\"." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/parent-part-mismatch3.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test16.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because returned host name's part \"not-10gen\" mismatches URI parent part \"10gen\"." 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/parent-part-mismatch5.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test19.test.build.10gen.cc/", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because one of the returned host names' domain name parts \"evil\" mismatches \"test\"." 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-utf8/get-utf8.sreq: -------------------------------------------------------------------------------- 1 | GET /ሴ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85 -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-invalid_integer.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0&srvMaxHosts=-1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because srvMaxHosts is not greater than or equal to zero" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/uri-with-two-hosts.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc,test6.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because the mongodb+srv URI includes two host names." 7 | } 8 | -------------------------------------------------------------------------------- /src/zlib-1.3.1/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla/get-vanilla.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla/post-vanilla.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b -------------------------------------------------------------------------------- /src/kms-message/cmake/libkms_message.pc.in: -------------------------------------------------------------------------------- 1 | Name: ${PROJECT_NAME} 2 | Description: ${PROJECT_DESCRIPTION} 3 | Version: ${PROJECT_VERSION} 4 | Requires: ${PKG_CONFIG_REQUIRES} 5 | prefix=${CMAKE_INSTALL_PREFIX} 6 | includedir=${PKG_CONFIG_INCLUDEDIR} 7 | libdir=${PKG_CONFIG_LIBDIR} 8 | Libs: ${PKG_CONFIG_LIBS} 9 | Cflags: ${PKG_CONFIG_CFLAGS} 10 | -------------------------------------------------------------------------------- /src/libmongoc/tests/release_files/example-etc-os-release.txt: -------------------------------------------------------------------------------- 1 | NAME=Fedora 2 | VERSION="17 (Beefy Miracle)" 3 | ID=fedora 4 | VERSION_ID=17 5 | PRETTY_NAME="Fedora 17 (Beefy Miracle)" 6 | ANSI_COLOR="0;34" 7 | CPE_NAME="cpe:/o:fedoraproject:fedora:17" 8 | HOME_URL="https://fedoraproject.org/" 9 | BUG_REPORT_URL="https://bugzilla.redhat.com/" 10 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query/get-vanilla-query.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash/get-slash.sreq: -------------------------------------------------------------------------------- 1 | GET // HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/libbson/tests/json/bson_corpus/null.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Null type", 3 | "bson_type": "0x0A", 4 | "test_key": "a", 5 | "valid": [ 6 | { 7 | "description": "Null", 8 | "canonical_bson": "080000000A610000", 9 | "canonical_extjson": "{\"a\" : null}" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/loadBalanced-true-multiple-hosts.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?loadBalanced=true", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because loadBalanced is true but the SRV record resolves to multiple hosts" 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-case/post-header-key-case.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | content-type:application/x-www-form-urlencoded; charset=utf8 5 | host:example.amazonaws.com 6 | x-amz-date:20150830T123600Z 7 | 8 | content-type;host;x-amz-date 9 | 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-conflicts_with_replicaSet-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc/?srvMaxHosts=1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because positive integer for srvMaxHosts conflicts with replicaSet option (TXT)" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_tls_t.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_stream_tls_t 2 | 3 | mongoc_stream_tls_t 4 | =================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | typedef struct _mongoc_stream_tls_t mongoc_stream_tls_t 12 | 13 | ``mongoc_stream_tls_t`` is a :symbol:`mongoc_stream_t` subclass for working with TLS streams. 14 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-utf8-query/get-vanilla-utf8-query.sreq: -------------------------------------------------------------------------------- 1 | GET /?ሴ=bar HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative/get-relative.sreq: -------------------------------------------------------------------------------- 1 | GET /example/.. HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slashes/get-slashes.sreq: -------------------------------------------------------------------------------- 1 | GET //example// HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9a624bd73a37c9a373b5312afbebe7a714a789de108f0bdfe846570885f57e84 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-space/get-space.sreq: -------------------------------------------------------------------------------- 1 | GET /example space/ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-query/post-vanilla-query.sreq: -------------------------------------------------------------------------------- 1 | POST /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11 -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test24.test.build.10gen.cc/?srvMaxHosts=1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because positive integer for srvMaxHosts conflicts with loadBalanced=true (TXT)" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-conflicts_with_replicaSet.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0&srvMaxHosts=1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because positive integer for srvMaxHosts conflicts with replicaSet option" 7 | } 8 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-dot-slash/get-slash-dot-slash.sreq: -------------------------------------------------------------------------------- 1 | GET /./ HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/test/connection_close/connection_close.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Connection:close 3 | Host:foo-service.foo-region.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=foo-akid/20150830/foo-region/foo-service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8b264695a2fd7fe28b309c611e0770da5a4c5ca0c040209941f78d773d9297b2 -------------------------------------------------------------------------------- /src/kms-message/test/decrypt/decrypt.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | content-length:234 5 | content-type:application/x-amz-json-1.1 6 | host:service.us-east-1.amazonaws.com 7 | x-amz-date:20150830T123600Z 8 | x-amz-target:TrentService.Decrypt 9 | 10 | content-length;content-type;host;x-amz-date;x-amz-target 11 | 48384de310621c850968f3948bddd004ecf5cae592a24530f778e4d190bd9dbc -------------------------------------------------------------------------------- /src/kms-message/test/encrypt/encrypt.creq: -------------------------------------------------------------------------------- 1 | POST 2 | / 3 | 4 | content-length:45 5 | content-type:application/x-amz-json-1.1 6 | host:service.us-east-1.amazonaws.com 7 | x-amz-date:20150830T123600Z 8 | x-amz-target:TrentService.Encrypt 9 | 10 | content-length;content-type;host;x-amz-date;x-amz-target 11 | 5fc6e5b49ee8c6926b9eeefb69e108be4c8e1cf81d8af8f51c7d5b992afd029c -------------------------------------------------------------------------------- /src/kms-message/test/multibyte/multibyte.sreq: -------------------------------------------------------------------------------- 1 | GET /€/?euro=€ HTTP/1.1 2 | Content-Length:4 3 | Host:€.€.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | €:€asdf€ 6 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/€/€/aws4_request, SignedHeaders=content-length;host;x-amz-date;€, Signature=88d2d4b0639c6b6db1ce366d2578b8407562caa905fc375fdf1ddb7f0b789f5b 7 | 8 | € -------------------------------------------------------------------------------- /src/libbson/tests/json/bson_corpus/maxkey.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Maxkey type", 3 | "bson_type": "0x7F", 4 | "test_key": "a", 5 | "valid": [ 6 | { 7 | "description": "Maxkey", 8 | "canonical_bson": "080000007F610000", 9 | "canonical_extjson": "{\"a\" : {\"$maxKey\" : 1}}" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /src/libbson/tests/json/bson_corpus/minkey.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Minkey type", 3 | "bson_type": "0xFF", 4 | "test_key": "a", 5 | "valid": [ 6 | { 7 | "description": "Minkey", 8 | "canonical_bson": "08000000FF610000", 9 | "canonical_extjson": "{\"a\" : {\"$minKey\" : 1}}" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /src/libbson/doc/full_index.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_reference 2 | :orphan: 3 | 4 | .. Yes it's confusing: the home page is called "index" so this is "full_index", 5 | and it works by including the complete Table of Contents from the homepage, 6 | i.e., "index". 7 | 8 | Index 9 | ===== 10 | 11 | .. toctree:: 12 | :maxdepth: 6 13 | :titlesonly: 14 | 15 | index 16 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_server_api_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_server_api_destroy 2 | 3 | mongoc_server_api_destroy() 4 | =========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_server_api_destroy (mongoc_server_api_t *api); 13 | 14 | Free a :symbol:`mongoc_server_api_t`. Does nothing if ``api`` is NULL. 15 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test3.test.build.10gen.cc/?loadBalanced=true&srvMaxHosts=1", 3 | "seeds": [], 4 | "hosts": [], 5 | "error": true, 6 | "comment": "Should fail because positive integer for srvMaxHosts conflicts with loadBalanced=true" 7 | } 8 | -------------------------------------------------------------------------------- /src/libmongoc/doc/full_index.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_reference 2 | :orphan: 3 | 4 | .. Yes it's confusing: the home page is called "index" so this is "full_index", 5 | and it works by including the complete Table of Contents from the homepage, 6 | i.e., "index". 7 | 8 | Index 9 | ===== 10 | 11 | .. toctree:: 12 | :maxdepth: 6 13 | :titlesonly: 14 | 15 | index 16 | -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/bulk-insert-opts.txt: -------------------------------------------------------------------------------- 1 | 2 | .. 3 | Generated with build/generate-opts.py 4 | DO NOT EDIT THIS FILE 5 | 6 | ``opts`` may be NULL or a BSON document with additional command options: 7 | 8 | * ``validate``: Construct a bitwise-or of all desired :symbol:`bson_validate_flags_t`. Set to ``false`` to skip client-side validation of the provided BSON documents. 9 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_destroy 2 | 3 | mongoc_bulkwrite_destroy() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_destroy (mongoc_bulkwrite_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_t`. 18 | -------------------------------------------------------------------------------- /src/zlib-1.3.1/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sreq: -------------------------------------------------------------------------------- 1 | GET /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-slash-pointless-dot/get-slash-pointless-dot.sreq: -------------------------------------------------------------------------------- 1 | GET /./example HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=ef75d96142cf21edca26f06005da7988e4f8dc83a165a80865db7089db637ec5 -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_major_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_get_major_version 2 | 3 | mongoc_get_major_version() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | mongoc_get_major_version (void); 13 | 14 | Returns 15 | ------- 16 | 17 | The value of ``MONGOC_MAJOR_VERSION`` when libmongoc was compiled. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_micro_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_get_micro_version 2 | 3 | mongoc_get_micro_version() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | mongoc_get_micro_version (void); 13 | 14 | Returns 15 | ------- 16 | 17 | The value of ``MONGOC_MICRO_VERSION`` when libmongoc was compiled. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_minor_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_get_minor_version 2 | 3 | mongoc_get_minor_version() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | mongoc_get_minor_version (void); 13 | 14 | Returns 15 | ------- 16 | 17 | The value of ``MONGOC_MINOR_VERSION`` when libmongoc was compiled. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/release_files/example-etc-os-release-ubuntu1604.txt: -------------------------------------------------------------------------------- 1 | NAME="Ubuntu" 2 | VERSION="16.04.1 LTS (Xenial Xerus)" 3 | ID=ubuntu 4 | ID_LIKE=debian 5 | PRETTY_NAME="Ubuntu 16.04.1 LTS" 6 | VERSION_ID="16.04" 7 | HOME_URL="http://www.ubuntu.com/" 8 | SUPPORT_URL="http://help.ubuntu.com/" 9 | BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" 10 | UBUNTU_CODENAME=xenial 11 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-key-sort/post-header-key-sort.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value1 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-vanilla-empty-query-value/post-vanilla-empty-query-value.sreq: -------------------------------------------------------------------------------- 1 | POST /?Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11 -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_get_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_get_version 2 | 3 | mongoc_get_version() 4 | ==================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const char * 12 | mongoc_get_version (void); 13 | 14 | Returns 15 | ------- 16 | 17 | A string representation of libmongoc's version, formatted something like "1.2.3" or "1.2.3-pre". 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/loadBalanced-true-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test24.test.build.10gen.cc/", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:8000" 5 | ], 6 | "hosts": [ 7 | "localhost.test.build.10gen.cc:8000" 8 | ], 9 | "options": { 10 | "loadBalanced": true, 11 | "ssl": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-less_than_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=1", 3 | "numSeeds": 1, 4 | "hosts": [ 5 | "localhost:27017", 6 | "localhost:27018", 7 | "localhost:27019" 8 | ], 9 | "options": { 10 | "srvMaxHosts": 1, 11 | "ssl": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-unreserved/get-vanilla-query-unreserved.creq: -------------------------------------------------------------------------------- 1 | GET 2 | / 3 | -._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 4 | host:example.amazonaws.com 5 | x-amz-date:20150830T123600Z 6 | 7 | host;x-amz-date 8 | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/normalize-path/get-relative-relative/get-relative-relative.sreq: -------------------------------------------------------------------------------- 1 | GET /example1/example2/../.. HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-header-value-case/post-header-value-case.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:VALUE1 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/retryable-read-aggregate.txt: -------------------------------------------------------------------------------- 1 | This function is considered a retryable read operation unless the pipeline contains a write stage like $out or $merge. 2 | Upon a transient error (a network error, errors due to replica set failover, etc.) the operation is safely retried once. 3 | If ``retryreads`` is false in the URI (see :symbol:`mongoc_uri_t`) the retry behavior does not apply. -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key/get-vanilla-query-order-key.sreq: -------------------------------------------------------------------------------- 1 | GET /?Param1=value2&Param1=Value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=eedbc4e291e521cf13422ffca22be7d2eb8146eecf653089df300a15b2382bd1 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-value/get-vanilla-query-order-value.sreq: -------------------------------------------------------------------------------- 1 | GET /?Param1=value2&Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5772eed61e12b33fae39ee5e7012498b51d56abc0abb7c60486157bd471c4694 -------------------------------------------------------------------------------- /src/kms-message/test/content_length/content_length.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Length:11 3 | Host:foo-service.foo-region.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=foo-akid/20150830/foo-region/foo-service/aws4_request, SignedHeaders=content-length;host;x-amz-date, Signature=9025f1937fb114f77158a8bf0170e1ec1a9aa29806bc7800ca850966cd32920b 6 | 7 | foo-payload -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteopts_destroy 2 | 3 | mongoc_bulkwriteopts_destroy() 4 | ============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwriteopts_destroy (mongoc_bulkwriteopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwriteopts_t`. 18 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-unreserved/get-unreserved.sreq: -------------------------------------------------------------------------------- 1 | GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.sreq: -------------------------------------------------------------------------------- 1 | GET /?Param2=value2&Param1=value1 HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500 -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_hash_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_hash_unsafe 2 | 3 | bson_oid_hash_unsafe() 4 | ====================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline uint32_t 12 | bson_oid_hash_unsafe (const bson_oid_t *oid); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_hash()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libbson/fuzz/init-from-json.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | int 8 | LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) 9 | { 10 | bson_error_t error; 11 | 12 | bson_t b; 13 | if (bson_init_from_json(&b, (const char *)data, size, &error)) { 14 | bson_destroy(&b); 15 | } 16 | 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/client_side_encryption_prose/limits-encryptedFields.json: -------------------------------------------------------------------------------- 1 | { 2 | "fields": [ 3 | { 4 | "keyId": { 5 | "$binary": { 6 | "base64": "LOCALAAAAAAAAAAAAAAAAA==", 7 | "subType": "04" 8 | } 9 | }, 10 | "path": "foo", 11 | "bsonType": "string" 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_copy_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_copy_unsafe 2 | 3 | bson_oid_copy_unsafe() 4 | ====================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline void 12 | bson_oid_copy_unsafe (const bson_oid_t *src, bson_oid_t *dst); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_copy()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_set_session.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_set_session 2 | 3 | mongoc_bulkwrite_set_session() 4 | ============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_set_session (mongoc_bulkwrite_t *self, mongoc_client_session_t *session); 13 | 14 | Description 15 | ----------- 16 | 17 | Sets an explicit session. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_destroy 2 | 3 | mongoc_bulkwriteresult_destroy() 4 | ================================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwriteresult_destroy (mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwriteresult_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_optional_init.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_optional_init 2 | 3 | mongoc_optional_init() 4 | ====================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_optional_init (mongoc_optional_t *opt); 13 | 14 | Initializes values for a :symbol:`mongoc_optional_t`. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``opt``: A :symbol:`mongoc_optional_t`. 20 | -------------------------------------------------------------------------------- /src/libmongoc/tests/client_side_encryption_prose/datakey-and-double-encryption-schemamap.json: -------------------------------------------------------------------------------- 1 | { 2 | "db.coll": { 3 | "bsonType": "object", 4 | "properties": { 5 | "encrypted_placeholder": { 6 | "encrypt": { 7 | "keyId": "/placeholder", 8 | "bsonType": "string", 9 | "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random" 10 | } 11 | } 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/loadBalanced-false-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test21.test.build.10gen.cc/", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "loadBalanced": false, 13 | "ssl": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-multiline/get-header-value-multiline.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value1 4 | value2 5 | value3 6 | X-Amz-Date:20150830T123600Z 7 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=ba17b383a53190154eb5fa66a1b836cc297cc0a3d70a5d00705980573d8ff790 -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-trim/get-header-value-trim.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1: value1 4 | My-Header2: "a b c" 5 | X-Amz-Date:20150830T123600Z 6 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736 -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/srvMaxHosts-zero-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test24.test.build.10gen.cc/?srvMaxHosts=0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:8000" 5 | ], 6 | "hosts": [ 7 | "localhost.test.build.10gen.cc:8000" 8 | ], 9 | "options": { 10 | "loadBalanced": true, 11 | "srvMaxHosts": 0, 12 | "ssl": true 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.evergreen/scripts/install-libmongoc-after-libbson.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -o errexit 4 | set -o pipefail 5 | set -o nounset 6 | 7 | # Install libbson only. 8 | EXTRA_CONFIGURE_FLAGS="-DENABLE_MONGOC=OFF" \ 9 | .evergreen/scripts/compile.sh 10 | 11 | # Install libmongoc using the system installed libbson. 12 | EXTRA_CONFIGURE_FLAGS="-DENABLE_MONGOC=ON -DUSE_SYSTEM_LIBBSON=ON" \ 13 | .evergreen/scripts/compile.sh 14 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_equal_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_equal_unsafe 2 | 3 | bson_oid_equal_unsafe() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline bool 12 | bson_oid_equal_unsafe (const bson_oid_t *oid1, const bson_oid_t *oid2); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_equal()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/one-txt-record-multiple-strings.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test11.test.build.10gen.cc/", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "ssl": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-key-duplicate/get-header-key-duplicate.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value2 4 | My-Header1:value2 5 | My-Header1:value1 6 | X-Amz-Date:20150830T123600Z 7 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_get_time_t_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_get_time_t_unsafe 2 | 3 | bson_oid_get_time_t_unsafe() 4 | ============================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline time_t 12 | bson_oid_get_time_t_unsafe (const bson_oid_t *oid); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_get_time_t()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/gridfs-bucket-upload-opts.txt: -------------------------------------------------------------------------------- 1 | 2 | .. 3 | Generated with build/generate-opts.py 4 | DO NOT EDIT THIS FILE 5 | 6 | ``opts`` may be NULL or a BSON document with additional command options: 7 | 8 | * ``chunkSizeBytes``: An ``int32`` chunk size to use for this file. Overrides the ``chunkSizeBytes`` set on ``bucket``. 9 | * ``metadata``: A :symbol:`bson_t` representing metadata to include with the file. 10 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteexception_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteexception_destroy 2 | 3 | mongoc_bulkwriteexception_destroy() 4 | =================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwriteexception_destroy (mongoc_bulkwriteexception_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwriteexception_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/srvMaxHosts-zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test23.test.build.10gen.cc/?loadBalanced=true&srvMaxHosts=0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:8000" 5 | ], 6 | "hosts": [ 7 | "localhost.test.build.10gen.cc:8000" 8 | ], 9 | "options": { 10 | "loadBalanced": true, 11 | "srvMaxHosts": 0, 12 | "ssl": true 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_compare_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_compare_unsafe 2 | 3 | bson_oid_compare_unsafe() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline int 12 | bson_oid_compare_unsafe (const bson_oid_t *oid1, const bson_oid_t *oid2); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_compare()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteopts_new 2 | 3 | mongoc_bulkwriteopts_new() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwriteopts_t * 12 | mongoc_bulkwriteopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwriteopts_t`. Free with :symbol:`mongoc_bulkwriteopts_destroy`. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/one-result-default-port.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test3.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "ssl": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/one-txt-record.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc/", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "authSource": "thisDB", 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Type:application/x-www-form-urlencoded 3 | Host:example.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ff11897932ad3f4e8b18135d722051e5ac45fc38421b1da7b9d196a0fe09473a 6 | 7 | Param1=value1 -------------------------------------------------------------------------------- /src/libbson/doc/bson_writer_end.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_writer_end 2 | 3 | bson_writer_end() 4 | ================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_writer_end (bson_writer_t *writer); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``writer``: A :symbol:`bson_writer_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Complete writing of a :symbol:`bson_writer_t` to the buffer supplied. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_rand_status.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_rand_status 2 | 3 | mongoc_rand_status() 4 | ==================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | mongoc_rand_status (void); 13 | 14 | Description 15 | ----------- 16 | 17 | The status of the mongoc random number generator. 18 | 19 | Returns 20 | ------- 21 | 22 | Returns 1 if the PRNG has been seeded with enough data, 0 otherwise. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/load-balanced/loadBalanced-directConnection.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test24.test.build.10gen.cc/?directConnection=false", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:8000" 5 | ], 6 | "hosts": [ 7 | "localhost.test.build.10gen.cc:8000" 8 | ], 9 | "options": { 10 | "loadBalanced": true, 11 | "ssl": true, 12 | "directConnection": false 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/direct-connection-false.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test3.test.build.10gen.cc/?directConnection=false", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "ssl": true, 13 | "directConnection": false 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/read/SecondaryPreferred.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "Unknown", 4 | "servers": [] 5 | }, 6 | "operation": "read", 7 | "read_preference": { 8 | "mode": "SecondaryPreferred", 9 | "tag_sets": [ 10 | { 11 | "data_center": "nyc" 12 | } 13 | ] 14 | }, 15 | "suitable_servers": [], 16 | "in_latency_window": [] 17 | } 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/write/SecondaryPreferred.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "Unknown", 4 | "servers": [] 5 | }, 6 | "operation": "write", 7 | "read_preference": { 8 | "mode": "SecondaryPreferred", 9 | "tag_sets": [ 10 | { 11 | "data_center": "nyc" 12 | } 13 | ] 14 | }, 15 | "suitable_servers": [], 16 | "in_latency_window": [] 17 | } 18 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-header-value-order/get-header-value-order.sreq: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | Host:example.amazonaws.com 3 | My-Header1:value4 4 | My-Header1:value1 5 | My-Header1:value3 6 | My-Header1:value2 7 | X-Amz-Date:20150830T123600Z 8 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01 -------------------------------------------------------------------------------- /src/libmongoc/doc/includes/seealso/authmechanism.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | 3 | | `Authentication `_ 4 | 5 | | :symbol:`mongoc_uri_get_auth_mechanism()` 6 | 7 | | :symbol:`mongoc_uri_get_auth_source()` 8 | 9 | | :symbol:`mongoc_uri_get_mechanism_properties()` 10 | 11 | | :symbol:`mongoc_uri_set_auth_mechanism()` 12 | 13 | | :symbol:`mongoc_uri_set_auth_source()` 14 | 15 | | :symbol:`mongoc_uri_set_mechanism_properties()` 16 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deleteoneopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deleteoneopts_new 2 | 3 | mongoc_bulkwrite_deleteoneopts_new() 4 | ==================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_deleteoneopts_t * 12 | mongoc_bulkwrite_deleteoneopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_deleteoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_set_client.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_set_client 2 | 3 | mongoc_bulkwrite_set_client() 4 | ============================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_set_client (mongoc_bulkwrite_t *self, mongoc_client_t *client); 13 | 14 | Description 15 | ----------- 16 | 17 | Sets the client that will be used to execute the :symbol:`mongoc_bulkwrite_t`. 18 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_get_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_get_version 2 | 3 | bson_get_version() 4 | ================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const char * 12 | bson_get_version (void); 13 | 14 | Description 15 | ----------- 16 | 17 | A string representation of Libbson's version, formatted something like "1.2.3" or "1.2.3-pre". 18 | 19 | Returns 20 | ------- 21 | 22 | A string you must not modify or free. 23 | 24 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_copy.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_copy 2 | 3 | bson_oid_copy() 4 | =============== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_oid_copy (const bson_oid_t *src, bson_oid_t *dst); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``src``: A :symbol:`bson_oid_t`. 18 | * ``dst``: A :symbol:`bson_oid_t`. 19 | 20 | Description 21 | ----------- 22 | 23 | Copies the contents of src into dst. 24 | 25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_replaceoneopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_replaceoneopts_new 2 | 3 | mongoc_bulkwrite_replaceoneopts_new() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_replaceoneopts_t * 12 | mongoc_bulkwrite_replaceoneopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_replaceoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updatemanyopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updatemanyopts_new 2 | 3 | mongoc_bulkwrite_updatemanyopts_new() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_updatemanyopts_t * 12 | mongoc_bulkwrite_updatemanyopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_updatemanyopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_uri_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_uri_destroy 2 | 3 | mongoc_uri_destroy() 4 | ==================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_uri_destroy (mongoc_uri_t *uri); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``uri``: A :symbol:`mongoc_uri_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Frees all resources associated with a uri. Does nothing if ``uri`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/read/ghost.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "Unknown", 4 | "servers": [ 5 | { 6 | "address": "a:27017", 7 | "avg_rtt_ms": 5, 8 | "type": "RSGhost" 9 | } 10 | ] 11 | }, 12 | "operation": "read", 13 | "read_preference": { 14 | "mode": "Nearest" 15 | }, 16 | "suitable_servers": [], 17 | "in_latency_window": [] 18 | } 19 | -------------------------------------------------------------------------------- /src/libbson/doc/includes/seealso/bson-as-json.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | | :symbol:`bson_as_canonical_extended_json()` 3 | 4 | | :symbol:`bson_as_relaxed_extended_json()` 5 | 6 | | :symbol:`bson_as_legacy_extended_json()` 7 | 8 | | :symbol:`bson_as_json_with_opts()` 9 | 10 | | :symbol:`bson_array_as_canonical_extended_json()` 11 | 12 | | :symbol:`bson_array_as_relaxed_extended_json()` 13 | 14 | | :symbol:`bson_array_as_legacy_extended_json()` 15 | 16 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deletemanyopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deletemanyopts_new 2 | 3 | mongoc_bulkwrite_deletemanyopts_new() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_deletemanyopts_t * 12 | mongoc_bulkwrite_deletemanyopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_deletemanyopts_new`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_bulkwrite_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_client_bulkwrite_new 2 | 3 | mongoc_client_bulkwrite_new() 4 | ============================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_t * 12 | mongoc_client_bulkwrite_new (mongoc_client_t *self); 13 | 14 | 15 | Description 16 | ----------- 17 | 18 | Returns a new :symbol:`mongoc_bulkwrite_t`. Free with :symbol:`mongoc_bulkwrite_destroy()`. 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/Unknown/write/ghost.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "Unknown", 4 | "servers": [ 5 | { 6 | "address": "a:27017", 7 | "avg_rtt_ms": 5, 8 | "type": "RSGhost" 9 | } 10 | ] 11 | }, 12 | "operation": "write", 13 | "read_preference": { 14 | "mode": "Nearest" 15 | }, 16 | "suitable_servers": [], 17 | "in_latency_window": [] 18 | } 19 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_free.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_free 2 | 3 | bson_free() 4 | =========== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_free (void *mem); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``mem``: A memory region. 18 | 19 | Description 20 | ----------- 21 | 22 | This function shall free the memory supplied by ``mem``. This should be used by functions that require you free the result with ``bson_free()``. 23 | 24 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_value_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_value_destroy 2 | 3 | bson_value_destroy() 4 | ==================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_value_destroy (bson_value_t *value); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``value``: A :symbol:`bson_value_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Releases any resources associated with ``value``. Does nothing if ``value`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deleteoneopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deleteoneopts_destroy 2 | 3 | mongoc_bulkwrite_deleteoneopts_destroy() 4 | ======================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_deleteoneopts_destroy (mongoc_bulkwrite_deleteoneopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_deleteoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_insertoneopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_insertoneopts_destroy 2 | 3 | mongoc_bulkwrite_insertoneopts_destroy() 4 | ======================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_insertoneopts_destroy (mongoc_bulkwrite_insertoneopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_insertoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updateoneopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updateoneopts_destroy 2 | 3 | mongoc_bulkwrite_updateoneopts_destroy() 4 | ======================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_updateoneopts_destroy (mongoc_bulkwrite_updateoneopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_updateoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_change_stream_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_change_stream_destroy 2 | 3 | mongoc_change_stream_destroy() 4 | ============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_change_stream_destroy (mongoc_change_stream_t *stream); 13 | 14 | Destroys a change stream and associated data. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``stream``: An allocated :symbol:`mongoc_change_stream_t`. -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_ssl_opt_get_default.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_ssl_opt_get_default 2 | 3 | mongoc_ssl_opt_get_default() 4 | ============================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const mongoc_ssl_opt_t * 12 | mongoc_ssl_opt_get_default (void); 13 | 14 | .. note:: 15 | |ssl:naming| 16 | 17 | Returns 18 | ------- 19 | 20 | Returns the default TLS options for the process. This should not be modified or freed. 21 | 22 | -------------------------------------------------------------------------------- /.evergreen/config_generator/components/funcs/backtrace.py: -------------------------------------------------------------------------------- 1 | from config_generator.etc.function import Function 2 | from config_generator.etc.utils import bash_exec 3 | 4 | 5 | class Backtrace(Function): 6 | name = 'backtrace' 7 | commands = [ 8 | bash_exec( 9 | working_dir='mongoc', 10 | script='.evergreen/scripts/debug-core-evergreen.sh', 11 | ), 12 | ] 13 | 14 | 15 | def functions(): 16 | return Backtrace.defn() 17 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_stream_timed_out.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_stream_timed_out 2 | 3 | mongoc_stream_timed_out() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | mongoc_stream_timed_out (mongoc_stream_t *stream); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``stream``: A :symbol:`mongoc_stream_t`. 18 | 19 | Returns 20 | ------- 21 | 22 | True if there has been a network timeout error on this stream. 23 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_get_major_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_get_major_version 2 | 3 | bson_get_major_version() 4 | ======================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | bson_get_major_version (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Get the first number in libbson's MAJOR.MINOR.MICRO release version. 18 | 19 | Returns 20 | ------- 21 | 22 | The value of ``BSON_MAJOR_VERSION`` when Libbson was compiled. 23 | 24 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_get_micro_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_get_micro_version 2 | 3 | bson_get_micro_version() 4 | ======================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | bson_get_micro_version (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Get the third number in libbson's MAJOR.MINOR.MICRO release version. 18 | 19 | Returns 20 | ------- 21 | 22 | The value of ``BSON_MICRO_VERSION`` when Libbson was compiled. 23 | 24 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_init_from_string_unsafe.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_init_from_string_unsafe 2 | 3 | bson_oid_init_from_string_unsafe() 4 | ================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | static inline void 12 | bson_oid_init_from_string_unsafe (bson_oid_t *oid, const char *str); 13 | 14 | Description 15 | ----------- 16 | 17 | Identical to :symbol:`bson_oid_init_from_string()`, but performs no integrity checking. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deletemanyopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deletemanyopts_destroy 2 | 3 | mongoc_bulkwrite_deletemanyopts_destroy() 4 | ========================================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_deletemanyopts_destroy (mongoc_bulkwrite_deletemanyopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_deletemanyopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_replaceoneopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_replaceoneopts_destroy 2 | 3 | mongoc_bulkwrite_replaceoneopts_destroy() 4 | ========================================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_replaceoneopts_destroy (mongoc_bulkwrite_replaceoneopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_replaceoneopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updatemanyopts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updatemanyopts_destroy 2 | 3 | mongoc_bulkwrite_updatemanyopts_destroy() 4 | ========================================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_updatemanyopts_destroy (mongoc_bulkwrite_updatemanyopts_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Frees a :symbol:`mongoc_bulkwrite_updatemanyopts_t`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_deletedcount.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_deletedcount 2 | 3 | mongoc_bulkwriteresult_deletedcount() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_bulkwriteresult_deletedcount (const mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns the total number of documents deleted across all delete operations. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_matchedcount.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_matchedcount 2 | 3 | mongoc_bulkwriteresult_matchedcount() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_bulkwriteresult_matchedcount (const mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns the total number of documents matched across all update operations. 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/txt-record-with-overridden-ssl-option.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc/?ssl=false", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "authSource": "thisDB", 14 | "ssl": false 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost.test.build.10gen.cc:27017", 9 | "localhost.test.build.10gen.cc:27018" 10 | ], 11 | "options": { 12 | "srvMaxHosts": 0, 13 | "ssl": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.evergreen/scripts/oidc-azure-test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -o errexit 3 | set -o pipefail 4 | set -o nounset 5 | 6 | export MONGOC_TEST_OIDC="ON" 7 | export MONGOC_TEST_USER="$OIDC_ADMIN_USER" 8 | export MONGOC_TEST_PASSWORD="$OIDC_ADMIN_PWD" 9 | export MONGOC_AZURE_RESOURCE="$AZUREOIDC_RESOURCE" 10 | 11 | # Install required OpenSSL runtime library. 12 | sudo apt install -y libssl-dev 13 | 14 | ./cmake-build/src/libmongoc/test-libmongoc -d -l '/auth/unified/*' -l '/oidc/*' 15 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Type:application/x-www-form-urlencoded; charset=utf8 3 | Host:example.amazonaws.com 4 | X-Amz-Date:20150830T123600Z 5 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1a72ec8f64bd914b0e42e42607c7fbce7fb2c7465f63e3092b3b0d39fa77a6fe 6 | 7 | Param1=value1 -------------------------------------------------------------------------------- /src/libbson/doc/bson_get_minor_version.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_get_minor_version 2 | 3 | bson_get_minor_version() 4 | ======================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int 12 | bson_get_minor_version (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Get the middle number in libbson's MAJOR.MINOR.MICRO release version. 18 | 19 | Returns 20 | ------- 21 | 22 | The value of ``BSON_MINOR_VERSION`` when Libbson was compiled. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_server_api_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_server_api_new 2 | 3 | mongoc_server_api_new() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_server_api_t * 12 | mongoc_server_api_new (mongoc_server_api_version_t version); 13 | 14 | Create a struct to hold server API preferences. 15 | 16 | Returns 17 | ------- 18 | 19 | A new ``mongoc_server_api_t`` you must free with :symbol:`mongoc_server_api_destroy`. 20 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/two-results-default-port.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "replicaSet": "repl0", 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/zlib-1.3.1/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start); 12 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_hash.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_hash 2 | 3 | bson_oid_hash() 4 | =============== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | uint32_t 12 | bson_oid_hash (const bson_oid_t *oid); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``oid``: A :symbol:`bson_oid_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Generates a hash code for ``oid`` suitable for a hashtable. 23 | 24 | Returns 25 | ------- 26 | 27 | A 32-bit hash code. 28 | 29 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_strfreev.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_strfreev 2 | 3 | bson_strfreev() 4 | =============== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_strfreev (char **strv); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``strv``: A NULL-terminated array of strings to free, including the array. 18 | 19 | Description 20 | ----------- 21 | 22 | This will free each string in a NULL-terminated array of strings and then the array itself. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_insertedcount.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_insertedcount 2 | 3 | mongoc_bulkwriteresult_insertedcount() 4 | ====================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_bulkwriteresult_insertedcount (const mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns the total number of documents inserted across all insert operations. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_modifiedcount.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_modifiedcount 2 | 3 | mongoc_bulkwriteresult_modifiedcount() 4 | ====================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_bulkwriteresult_modifiedcount (const mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns the total number of documents modified across all update operations. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteresult_upsertedcount.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteresult_upsertedcount 2 | 3 | mongoc_bulkwriteresult_upsertedcount() 4 | ====================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_bulkwriteresult_upsertedcount (const mongoc_bulkwriteresult_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns the total number of documents upserted across all update operations. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_rand_seed.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_rand_seed 2 | 3 | mongoc_rand_seed() 4 | ================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_rand_seed (const void *buf, int num); 13 | 14 | Description 15 | ----------- 16 | 17 | Seeds the mongoc random number generator with num bytes of entropy. 18 | 19 | Parameters 20 | ---------- 21 | 22 | * ``buf``: A buffer. 23 | * ``num``: An int of number of bytes in buf. 24 | 25 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-greater_than_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=3", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "srvMaxHosts": 3, 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-zero-txt.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc/?srvMaxHosts=0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "authSource": "thisDB", 13 | "replicaSet": "repl0", 14 | "srvMaxHosts": 0, 15 | "ssl": true 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/two-results-nonstandard-port.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test2.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27018", 5 | "localhost.test.build.10gen.cc:27019" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "replicaSet": "repl0", 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/txt-record-with-overridden-uri-option.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test5.test.build.10gen.cc/?authSource=otherDB", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "authSource": "otherDB", 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_json_reader_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_json_reader_destroy 2 | 3 | bson_json_reader_destroy() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_json_reader_destroy (bson_json_reader_t *reader); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``reader``: A :symbol:`bson_json_reader_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Frees a bson_json_reader_t. Does nothing if ``reader`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_reader_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_reader_destroy 2 | 3 | bson_reader_destroy() 4 | ===================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_reader_destroy (bson_reader_t *reader); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``reader``: A :symbol:`bson_reader_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Destroys and releases all resources associated with ``reader``. Does nothing if ``reader`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteexception_errorreply.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteexception_errorreply 2 | 3 | mongoc_bulkwriteexception_errorreply() 4 | ====================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const bson_t * 12 | mongoc_bulkwriteexception_errorreply (const mongoc_bulkwriteexception_t *self); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a possible server reply related to the error, or an empty document. 18 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/get-vanilla-query-unreserved/get-vanilla-query-unreserved.sreq: -------------------------------------------------------------------------------- 1 | GET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197 -------------------------------------------------------------------------------- /src/kms-message/test/example-response.bin: -------------------------------------------------------------------------------- 1 | HTTP/1.1 200 OK 2 | x-amzn-RequestId: deeb35e5-4ecb-4bf1-9af5-84a54ff0af0e 3 | Content-Type: application/x-amz-json-1.1 4 | Content-Length: 319 5 | 6 | {"CiphertextBlob":"AQICAHifzrL6n/3uqZyz+z1bJj80DhqPcSAibAaIoYc+HOVP6QEplwbM0wpvU5zsQG/1SBKvAAAAZDBiBgkqhkiG9w0BBwagVTBTAgEAME4GCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM5syMJE7RodxDaqYqAgEQgCHMFCnFso4Lih0CNbLT1kiET0hQyzjgoa9733353GQkGlM=","KeyId":"arn:aws:kms:us-east-1:524754917239:key/bd05530b-0a7f-4fbd-8362-ab3667370db0"} -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_to_string.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_to_string 2 | 3 | bson_oid_to_string() 4 | ==================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_oid_to_string (const bson_oid_t *oid, char str[25]); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``oid``: A :symbol:`bson_oid_t`. 18 | * ``str``: A location for the resulting string. 19 | 20 | Description 21 | ----------- 22 | 23 | Converts ``oid`` into a hex encoded string. 24 | 25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deleteoneopts_set_collation.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deleteoneopts_set_collation 2 | 3 | mongoc_bulkwrite_deleteoneopts_set_collation() 4 | ============================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_deleteoneopts_set_collation (mongoc_bulkwrite_deleteoneopts_t *self, const bson_t *collation); 13 | 14 | Description 15 | ----------- 16 | 17 | Specifies a collation. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updateoneopts_set_collation.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updateoneopts_set_collation 2 | 3 | mongoc_bulkwrite_updateoneopts_set_collation() 4 | ============================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_updateoneopts_set_collation (mongoc_bulkwrite_updateoneopts_t *self, const bson_t *collation); 13 | 14 | Description 15 | ----------- 16 | 17 | Specifies a collation. 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srv-service-name.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "ssl": true, 14 | "srvServiceName": "customname" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-greater_than_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=3", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost.test.build.10gen.cc:27017", 9 | "localhost.test.build.10gen.cc:27018" 10 | ], 11 | "options": { 12 | "srvMaxHosts": 3, 13 | "ssl": true 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/max_staleness/Unknown/SmallMaxStaleness.json: -------------------------------------------------------------------------------- 1 | { 2 | "heartbeatFrequencyMS": 10000, 3 | "topology_description": { 4 | "type": "Unknown", 5 | "servers": [ 6 | { 7 | "address": "a:27017", 8 | "type": "Unknown", 9 | "maxWireVersion": 6 10 | } 11 | ] 12 | }, 13 | "read_preference": { 14 | "mode": "Nearest", 15 | "maxStalenessSeconds": 1 16 | }, 17 | "suitable_servers": [], 18 | "in_latency_window": [] 19 | } 20 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_json_opts_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_json_opts_destroy 2 | 3 | bson_json_opts_destroy() 4 | ======================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_json_opts_destroy (bson_json_opts_t *opts); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``opts``: A :symbol:`bson_json_opts_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Destroys and releases all resources associated with ``opts``. Does nothing if ``opts`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_deletemanyopts_set_collation.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_deletemanyopts_set_collation 2 | 3 | mongoc_bulkwrite_deletemanyopts_set_collation() 4 | =============================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_deletemanyopts_set_collation (mongoc_bulkwrite_deletemanyopts_t *self, const bson_t *collation); 13 | 14 | Description 15 | ----------- 16 | 17 | Specifies a collation. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_new 2 | 3 | mongoc_bulkwrite_new() 4 | ====================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_t * 12 | mongoc_bulkwrite_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_t`. Free with :symbol:`mongoc_bulkwrite_destroy()`. 18 | 19 | A client must be assigned with :symbol:`mongoc_bulkwrite_set_client()` prior to execution. 20 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_replaceoneopts_set_collation.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_replaceoneopts_set_collation 2 | 3 | mongoc_bulkwrite_replaceoneopts_set_collation() 4 | =============================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_replaceoneopts_set_collation (mongoc_bulkwrite_replaceoneopts_t *self, const bson_t *collation); 13 | 14 | Description 15 | ----------- 16 | 17 | Specifies a collation. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updatemanyopts_set_collation.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updatemanyopts_set_collation 2 | 3 | mongoc_bulkwrite_updatemanyopts_set_collation() 4 | =============================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwrite_updatemanyopts_set_collation (mongoc_bulkwrite_updatemanyopts_t *self, const bson_t *collation); 13 | 14 | Description 15 | ----------- 16 | 17 | Specifies a collation. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_encryption_opts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_client_encryption_opts_new 2 | 3 | mongoc_client_encryption_opts_new() 4 | =================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_client_encryption_opts_t * 12 | mongoc_client_encryption_opts_new (void); 13 | 14 | Returns 15 | ------- 16 | 17 | A new :symbol:`mongoc_client_encryption_opts_t` that must be freed with :symbol:`mongoc_client_encryption_opts_destroy()`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_concern_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_read_concern_new 2 | 3 | mongoc_read_concern_new() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_read_concern_t * 12 | mongoc_read_concern_new (void); 13 | 14 | Returns 15 | ------- 16 | 17 | Creates a newly allocated read concern that can be configured based on user preference. This should be freed with :symbol:`mongoc_read_concern_destroy()` when no longer in use. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/max_staleness/ReplicaSetNoPrimary/MaxStalenessTooSmall.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "ReplicaSetNoPrimary", 4 | "servers": [ 5 | { 6 | "address": "a:27017", 7 | "type": "Unknown" 8 | }, 9 | { 10 | "address": "b:27017", 11 | "type": "Unknown" 12 | } 13 | ] 14 | }, 15 | "read_preference": { 16 | "mode": "Nearest", 17 | "maxStalenessSeconds": 1 18 | }, 19 | "error": true 20 | } 21 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_write_concern_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_write_concern_new 2 | 3 | mongoc_write_concern_new() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_write_concern_t * 12 | mongoc_write_concern_new (void); 13 | 14 | Returns 15 | ------- 16 | 17 | Creates a newly allocated write concern that can be configured based on user preference. This should be freed with :symbol:`mongoc_write_concern_destroy()` when no longer in use. 18 | 19 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-equal_to_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2", 3 | "numSeeds": 2, 4 | "seeds": [ 5 | "localhost.test.build.10gen.cc:27017", 6 | "localhost.test.build.10gen.cc:27018" 7 | ], 8 | "hosts": [ 9 | "localhost:27017", 10 | "localhost:27018", 11 | "localhost:27019" 12 | ], 13 | "options": { 14 | "srvMaxHosts": 2, 15 | "ssl": true 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_insertoneopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_insertoneopts_new 2 | 3 | mongoc_bulkwrite_insertoneopts_new() 4 | ==================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_insertoneopts_t * 12 | mongoc_bulkwrite_insertoneopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_insertoneopts_t`. Free with :symbol:`mongoc_bulkwrite_insertoneopts_destroy`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_updateoneopts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_updateoneopts_new 2 | 3 | mongoc_bulkwrite_updateoneopts_new() 4 | ==================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_bulkwrite_updateoneopts_t * 12 | mongoc_bulkwrite_updateoneopts_new (void); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns a new :symbol:`mongoc_bulkwrite_updateoneopts_t`. Free with :symbol:`mongoc_bulkwrite_updateoneopts_destroy`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/sharded/srvMaxHosts-equal_to_srv_records.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2", 3 | "numSeeds": 2, 4 | "seeds": [ 5 | "localhost.test.build.10gen.cc:27017", 6 | "localhost.test.build.10gen.cc:27018" 7 | ], 8 | "hosts": [ 9 | "localhost.test.build.10gen.cc:27017", 10 | "localhost.test.build.10gen.cc:27018" 11 | ], 12 | "options": { 13 | "srvMaxHosts": 2, 14 | "ssl": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/kms-message/test/encrypt/encrypt.sreq: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Content-Length:45 3 | Content-Type:application/x-amz-json-1.1 4 | Host:service.us-east-1.amazonaws.com 5 | X-Amz-Date:20150830T123600Z 6 | X-Amz-Target:TrentService.Encrypt 7 | Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-target, Signature=28d8a139a4a7da0bd7082979fa938ce20514e0500cdd441fd46f702ae3d3cfd2 8 | 9 | {"Plaintext": "Zm9vYmFy", "KeyId": "alias/1"} -------------------------------------------------------------------------------- /src/libbson/doc/bson_strdup.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_strdup 2 | 3 | bson_strdup() 4 | ============= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | char * 12 | bson_strdup (const char *str); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``str``: A string. 18 | 19 | Description 20 | ----------- 21 | 22 | Copies ``str`` into a new string. If ``str`` is NULL, then NULL is returned. 23 | 24 | Returns 25 | ------- 26 | 27 | A newly allocated string that should be freed with bson_free(). 28 | 29 | -------------------------------------------------------------------------------- /src/libbson/doc/includes/seealso/create-bson.txt: -------------------------------------------------------------------------------- 1 | .. seealso:: 2 | 3 | | :symbol:`bson_concat()` 4 | 5 | | :symbol:`bson_init()` 6 | 7 | | :symbol:`bson_init_from_json()` 8 | 9 | | :symbol:`bson_init_static()` 10 | 11 | | :symbol:`bson_new()` 12 | 13 | | :symbol:`bson_new_from_buffer()` 14 | 15 | | :symbol:`bson_new_from_data()` 16 | 17 | | :symbol:`bson_new_from_json()` 18 | 19 | | :symbol:`bson_reinit()` 20 | 21 | | :symbol:`bson_reserve_buffer()` 22 | 23 | | :symbol:`bson_sized_new()` 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteexception_error.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteexception_error 2 | 3 | mongoc_bulkwriteexception_error() 4 | ================================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | mongoc_bulkwriteexception_error (const mongoc_bulkwriteexception_t *self, bson_error_t *error); 13 | 14 | Description 15 | ----------- 16 | 17 | Returns true and sets ``error`` if there was a top-level error. Returns false if there was no top-level error. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_database_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_database_destroy 2 | 3 | mongoc_database_destroy() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_database_destroy (mongoc_database_t *database); 13 | 14 | Releases all resources associated with ``database``, including freeing the structure. Does nothing if ``database`` is NULL. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``database``: A :symbol:`mongoc_database_t`. 20 | 21 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/srvMaxHosts-zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0&srvMaxHosts=0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "replicaSet": "repl0", 14 | "srvMaxHosts": 0, 15 | "ssl": true 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/kms-message/aws-sig-v4-test-suite/post-sts-token/post-sts-header-before/post-sts-header-before.req: -------------------------------------------------------------------------------- 1 | POST / HTTP/1.1 2 | Host:example.amazonaws.com 3 | X-Amz-Date:20150830T123600Z 4 | X-Amz-Security-Token:AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA== -------------------------------------------------------------------------------- /src/libbson/tests/test-clock.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | 6 | static void 7 | test_get_monotonic_time(void) 8 | { 9 | int64_t t; 10 | int64_t t2; 11 | 12 | t = bson_get_monotonic_time(); 13 | t2 = bson_get_monotonic_time(); 14 | BSON_ASSERT(t); 15 | BSON_ASSERT(t2); 16 | ASSERT_CMPINT64(t, <=, t2); 17 | } 18 | 19 | 20 | void 21 | test_clock_install(TestSuite *suite) 22 | { 23 | TestSuite_Add(suite, "/bson/clock/get_monotonic_time", test_get_monotonic_time); 24 | } 25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulk_operation_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulk_operation_destroy 2 | 3 | mongoc_bulk_operation_destroy() 4 | =============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulk_operation_destroy (mongoc_bulk_operation_t *bulk); 13 | 14 | Destroys a :symbol:`mongoc_bulk_operation_t` and frees the structure. Does nothing if ``bulk`` is NULL. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``bulk``: A :symbol:`mongoc_bulk_operation_t`. 20 | 21 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_database_get_name.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_database_get_name 2 | 3 | mongoc_database_get_name() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const char * 12 | mongoc_database_get_name (mongoc_database_t *database); 13 | 14 | Fetches the name of the database. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``database``: A :symbol:`mongoc_database_t`. 20 | 21 | Returns 22 | ------- 23 | 24 | A string which should not be modified or freed. 25 | 26 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_optional_copy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_optional_copy 2 | 3 | mongoc_optional_copy() 4 | ====================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_optional_copy (const mongoc_optional_t *source, mongoc_optional_t *copy); 13 | 14 | Creates a deep copy of ``source`` into ``copy``. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``source``: A :symbol:`mongoc_optional_t`. 20 | * ``copy``: An empty :symbol:`mongoc_optional_t`. Values will be overwritten. 21 | -------------------------------------------------------------------------------- /src/libmongoc/examples/cmake/vcpkg/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.15...4.0) 2 | project(vcpkg-example-project) 3 | 4 | find_package(mongoc CONFIG REQUIRED) 5 | message(STATUS "Found libmongoc: ${mongoc_DIR}") 6 | 7 | enable_testing() 8 | 9 | add_executable(my-app app.c) 10 | target_link_libraries(my-app PRIVATE mongoc::static) 11 | add_test(my-app my-app) 12 | set_property( 13 | TEST my-app 14 | PROPERTY PASS_REGULAR_EXPRESSION 15 | "^Linked with libmongoc [1-9]+\\.[0-9]+\\.[0-9]+\r?\n$" 16 | ) 17 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_context_get_default.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_context_get_default 2 | 3 | bson_context_get_default() 4 | ========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bson_context_t * 12 | bson_context_get_default (void); 13 | 14 | Returns 15 | ------- 16 | 17 | The ``bson_context_get_default()`` function shall return the default :symbol:`bson_context_t` for the process. 18 | This context is created with the flags ``BSON_CONTEXT_THREAD_SAFE`` and ``BSON_CONTEXT_DISABLE_PID_CACHE``. -------------------------------------------------------------------------------- /src/libbson/doc/bson_count_keys.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_count_keys 2 | 3 | bson_count_keys() 4 | ================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | uint32_t 12 | bson_count_keys (const bson_t *bson); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``bson``: A :symbol:`bson_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | The :symbol:`bson_count_keys()` function shall count the number of elements within ``bson``. 23 | 24 | Returns 25 | ------- 26 | 27 | A positive integer or zero. 28 | 29 | -------------------------------------------------------------------------------- /src/libbson/tests/json/bson_corpus/undefined.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Undefined type (deprecated)", 3 | "bson_type": "0x06", 4 | "deprecated": true, 5 | "test_key": "a", 6 | "valid": [ 7 | { 8 | "description": "Undefined", 9 | "canonical_bson": "0800000006610000", 10 | "canonical_extjson": "{\"a\" : {\"$undefined\" : true}}", 11 | "converted_bson": "080000000A610000", 12 | "converted_extjson": "{\"a\" : null}" 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_cursor_get_limit.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_cursor_get_limit 2 | 3 | mongoc_cursor_get_limit() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | int64_t 12 | mongoc_cursor_get_limit (mongoc_cursor_t *cursor); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``cursor``: A :symbol:`mongoc_cursor_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Return the value set with :symbol:`mongoc_cursor_set_limit` or :symbol:`mongoc_collection_find_with_opts`. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/tests/cmake-import/use-bson.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | #ifndef EXPECT_BSON_VERSION 6 | #error This file requires EXPECT_BSON_VERSION to be defined 7 | #define EXPECT_BSON_VERSION "" 8 | #endif 9 | 10 | int 11 | main(void) 12 | { 13 | if (strcmp(BSON_VERSION_S, EXPECT_BSON_VERSION)) { 14 | fprintf( 15 | stderr, "Wrong BSON_MAJOR_VERSION found (Expected “%s”, but got “%s”)", EXPECT_BSON_VERSION, BSON_VERSION_S); 16 | return 2; 17 | } 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /.evergreen/scripts/oidc-gcp-test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -o errexit 3 | set -o pipefail 4 | set -o nounset 5 | 6 | export MONGOC_TEST_OIDC="ON" 7 | export MONGOC_TEST_USER="$OIDC_ADMIN_USER" 8 | export MONGOC_TEST_PASSWORD="$OIDC_ADMIN_PWD" 9 | export MONGOC_GCP_RESOURCE="$GCPOIDC_AUDIENCE" 10 | export MONGOC_TEST_URI="$MONGODB_URI" 11 | export MONGOC_TEST_SSL="ON" 12 | 13 | # Install required OpenSSL runtime library. 14 | sudo apt install -y libssl-dev 15 | 16 | ./cmake-build/src/libmongoc/test-libmongoc -d -l '/auth/unified/*' 17 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteopts_set_comment.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteopts_set_comment 2 | 3 | mongoc_bulkwriteopts_set_comment() 4 | ================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwriteopts_set_comment (mongoc_bulkwriteopts_t *self, const bson_value_t *comment); 13 | 14 | Description 15 | ----------- 16 | 17 | Enables users to specify an arbitrary comment to help trace the operation through the database profiler, currentOp and 18 | logs. 19 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_prefs_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_read_prefs_destroy 2 | 3 | mongoc_read_prefs_destroy() 4 | =========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_read_prefs_destroy (mongoc_read_prefs_t *read_prefs); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``read_prefs``: A :symbol:`mongoc_read_prefs_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Frees a read preference and all associated resources. Does nothing if ``read_prefs`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/max_staleness/ReplicaSetNoPrimary/NoKnownServers.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "ReplicaSetNoPrimary", 4 | "servers": [ 5 | { 6 | "address": "a:27017", 7 | "type": "Unknown" 8 | }, 9 | { 10 | "address": "b:27017", 11 | "type": "Unknown" 12 | } 13 | ] 14 | }, 15 | "read_preference": { 16 | "mode": "Nearest", 17 | "maxStalenessSeconds": 90 18 | }, 19 | "suitable_servers": [], 20 | "in_latency_window": [] 21 | } 22 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_apm_callbacks_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_apm_callbacks_destroy 2 | 3 | mongoc_apm_callbacks_destroy() 4 | ============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_apm_callbacks_destroy (mongoc_apm_callbacks_t *callbacks); 13 | 14 | Free a :symbol:`mongoc_apm_callbacks_t`. Does nothing if ``callbacks`` is NULL. 15 | 16 | .. seealso:: 17 | 18 | | :doc:`Introduction to Application Performance Monitoring ` 19 | 20 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwriteopts_set_serverid.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwriteopts_set_serverid 2 | 3 | mongoc_bulkwriteopts_set_serverid() 4 | =================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_bulkwriteopts_set_serverid (mongoc_bulkwriteopts_t *self, uint32_t serverid); 13 | 14 | Description 15 | ----------- 16 | 17 | Identifies which server to perform the operation. Intended for use by wrapping drivers that select a server before 18 | running the operation. 19 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_uri_get_string.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_uri_get_string 2 | 3 | mongoc_uri_get_string() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const char * 12 | mongoc_uri_get_string (const mongoc_uri_t *uri); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``uri``: A :symbol:`mongoc_uri_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Fetches the URI as a string. 23 | 24 | Returns 25 | ------- 26 | 27 | Returns a string which should not be modified or freed. 28 | 29 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/longer-parent-in-return.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test18.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.sub.test.build.10gen.cc:27017" 5 | ], 6 | "hosts": [ 7 | "localhost:27017", 8 | "localhost:27018", 9 | "localhost:27019" 10 | ], 11 | "options": { 12 | "replicaSet": "repl0", 13 | "ssl": true 14 | }, 15 | "comment": "Is correct, as returned host name shared the URI root \"test.build.10gen.cc\"." 16 | } 17 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_reader_tell.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_reader_tell 2 | 3 | bson_reader_tell() 4 | ================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | off_t 12 | bson_reader_tell (bson_reader_t *reader); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``reader``: A :symbol:`bson_reader_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Tells the current position within the underlying stream. 23 | 24 | Returns 25 | ------- 26 | 27 | -1 on failure, otherwise the offset within the underlying stream. 28 | 29 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_bucket_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_gridfs_bucket_destroy 2 | 3 | mongoc_gridfs_bucket_destroy() 4 | ============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_gridfs_bucket_destroy (mongoc_gridfs_bucket_t *bucket); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``bucket``: A :symbol:`mongoc_gridfs_bucket_t` or ``NULL``. 18 | 19 | Description 20 | ----------- 21 | 22 | Destroys a :symbol:`mongoc_gridfs_bucket_t`. Does nothing if passed ``NULL``. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_optional_is_set.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_optional_is_set 2 | 3 | mongoc_optional_is_set() 4 | ======================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | mongoc_optional_is_set (const mongoc_optional_t *opt); 13 | 14 | Returns whether a value for a :symbol:`mongoc_optional_t` was set. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``opt``: A :symbol:`mongoc_optional_t`. 20 | 21 | Returns 22 | ------- 23 | 24 | Returns ``true`` if a value was set, or ``false`` otherwise. 25 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/uri-with-auth.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://auser:apass@test1.test.build.10gen.cc/?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "parsed_options": { 13 | "user": "auser", 14 | "password": "apass" 15 | }, 16 | "comment": "Should preserve auth credentials" 17 | } 18 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_init.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_init 2 | 3 | bson_oid_init() 4 | =============== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_oid_init (bson_oid_t *oid, bson_context_t *context); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``oid``: A :symbol:`bson_oid_t`. 18 | * ``context``: An *optional* :symbol:`bson_context_t` or NULL. 19 | 20 | Description 21 | ----------- 22 | 23 | Generates a new :symbol:`bson_oid_t` using either ``context`` or the default :symbol:`bson_context_t`. 24 | 25 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_oid_init_from_data.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_oid_init_from_data 2 | 3 | bson_oid_init_from_data() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_oid_init_from_data (bson_oid_t *oid, const uint8_t *data); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``oid``: A :symbol:`bson_oid_t`. 18 | * ``data``: A buffer containing 12 bytes for the oid. 19 | 20 | Description 21 | ----------- 22 | 23 | Initializes a :symbol:`bson_oid_t` using the raw buffer provided. 24 | 25 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_strnlen.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_strnlen 2 | 3 | bson_strnlen() 4 | ============== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | size_t 12 | bson_strnlen (const char *s, size_t maxlen); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``s``: A string. 18 | * ``maxlen``: The maximum size of string to check. 19 | 20 | Description 21 | ----------- 22 | 23 | A portable version of ``strnlen()``. 24 | 25 | Returns 26 | ------- 27 | 28 | The length of ``s`` in bytes or ``maxlen`` if no ``\0`` was found. 29 | 30 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_uri_has_option.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_uri_has_option 2 | 3 | mongoc_uri_has_option() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | mongoc_uri_has_option (const mongoc_uri_t *uri, const char *option); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``uri``: A :symbol:`mongoc_uri_t`. 18 | * ``option``: The name of an option, case insensitive. 19 | 20 | Description 21 | ----------- 22 | 23 | Returns true if the option was present in the initial MongoDB URI. 24 | 25 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_write_concern_is_valid.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_write_concern_is_valid 2 | 3 | mongoc_write_concern_is_valid() 4 | =============================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | mongoc_write_concern_is_valid (const mongoc_write_concern_t *write_concern); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``write_concern``: A :symbol:`mongoc_write_concern_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Test if this write concern uses an invalid combination of options. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/ReplicaSetNoPrimary/read/PossiblePrimary.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "ReplicaSetNoPrimary", 4 | "servers": [ 5 | { 6 | "address": "b:27017", 7 | "avg_rtt_ms": 5, 8 | "type": "PossiblePrimary" 9 | } 10 | ] 11 | }, 12 | "operation": "read", 13 | "read_preference": { 14 | "mode": "Primary", 15 | "tag_sets": [ 16 | {} 17 | ] 18 | }, 19 | "suitable_servers": [], 20 | "in_latency_window": [] 21 | } 22 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_equal.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_equal 2 | 3 | bson_equal() 4 | ============ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | bool 12 | bson_equal (const bson_t *bson, const bson_t *other); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``bson``: A :symbol:`bson_t`. 18 | * ``other``: A :symbol:`bson_t`. 19 | 20 | Description 21 | ----------- 22 | 23 | The :symbol:`bson_equal()` function shall return true if both documents are equal. 24 | 25 | Returns 26 | ------- 27 | 28 | true if both documents are equal. 29 | 30 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/server_selection/server_selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.json: -------------------------------------------------------------------------------- 1 | { 2 | "topology_description": { 3 | "type": "ReplicaSetNoPrimary", 4 | "servers": [ 5 | { 6 | "address": "b:27017", 7 | "avg_rtt_ms": 5, 8 | "type": "PossiblePrimary" 9 | } 10 | ] 11 | }, 12 | "operation": "read", 13 | "read_preference": { 14 | "mode": "Nearest", 15 | "tag_sets": [ 16 | {} 17 | ] 18 | }, 19 | "suitable_servers": [], 20 | "in_latency_window": [] 21 | } 22 | -------------------------------------------------------------------------------- /src/libbson/doc/bson_mem_restore_vtable.rst: -------------------------------------------------------------------------------- 1 | :man_page: bson_mem_restore_vtable 2 | 3 | bson_mem_restore_vtable() 4 | ========================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | bson_mem_restore_vtable (void); 13 | 14 | Description 15 | ----------- 16 | 17 | This function shall restore the default memory allocator to be used by Libbson. 18 | 19 | .. warning:: 20 | 21 | This function *MUST* be called at the end of the process. Failure to do so will result in memory being freed by the wrong allocator. 22 | 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_bulkwrite_insertoneopts_t.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_bulkwrite_insertoneopts_t 2 | 3 | mongoc_bulkwrite_insertoneopts_t 4 | ================================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | typedef struct _mongoc_bulkwrite_insertoneopts_t mongoc_bulkwrite_insertoneopts_t; 12 | 13 | .. only:: html 14 | 15 | Functions 16 | --------- 17 | 18 | .. toctree:: 19 | :titlesonly: 20 | :maxdepth: 1 21 | 22 | mongoc_bulkwrite_insertoneopts_new 23 | mongoc_bulkwrite_insertoneopts_destroy 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_encryption_datakey_opts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_client_encryption_datakey_opts_new 2 | 3 | mongoc_client_encryption_datakey_opts_new() 4 | =========================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_client_encryption_datakey_opts_t * 12 | mongoc_client_encryption_datakey_opts_new (void); 13 | 14 | Returns 15 | ------- 16 | 17 | A new :symbol:`mongoc_client_encryption_datakey_opts_t` that must be freed with :symbol:`mongoc_client_encryption_datakey_opts_destroy()`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_encryption_encrypt_opts_new.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_client_encryption_encrypt_opts_new 2 | 3 | mongoc_client_encryption_encrypt_opts_new() 4 | =========================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | mongoc_client_encryption_encrypt_opts_t * 12 | mongoc_client_encryption_encrypt_opts_new (void); 13 | 14 | Returns 15 | ------- 16 | 17 | A new :symbol:`mongoc_client_encryption_encrypt_opts_t` that must be freed with :symbol:`mongoc_client_encryption_encrypt_opts_destroy()`. 18 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_client_get_uri.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_client_get_uri 2 | 3 | mongoc_client_get_uri() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | const mongoc_uri_t * 12 | mongoc_client_get_uri (const mongoc_client_t *client); 13 | 14 | Fetches the :symbol:`mongoc_uri_t` used to create the client. 15 | 16 | Parameters 17 | ---------- 18 | 19 | * ``client``: A :symbol:`mongoc_client_t`. 20 | 21 | Returns 22 | ------- 23 | 24 | A :symbol:`mongoc_uri_t` that should not be modified or freed. 25 | 26 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_cursor_get_max_await_time_ms.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_cursor_get_max_await_time_ms 2 | 3 | mongoc_cursor_get_max_await_time_ms() 4 | ===================================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | uint32_t 12 | mongoc_cursor_get_max_await_time_ms (mongoc_cursor_t *cursor); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``cursor``: A :symbol:`mongoc_cursor_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Retrieve the value set with :symbol:`mongoc_cursor_set_max_await_time_ms`. 23 | 24 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_gridfs_destroy 2 | 3 | mongoc_gridfs_destroy() 4 | ======================= 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_gridfs_destroy (mongoc_gridfs_t *gridfs); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``gridfs``: A :symbol:`mongoc_gridfs_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | This function shall destroy the gridfs structure referenced by ``gridfs`` and any resources associated with the gridfs. Does nothing if ``gridfs`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_gridfs_file_destroy.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_gridfs_file_destroy 2 | 3 | mongoc_gridfs_file_destroy() 4 | ============================ 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_gridfs_file_destroy (mongoc_gridfs_file_t *file); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``file``: A :symbol:`mongoc_gridfs_file_t`. 18 | 19 | Description 20 | ----------- 21 | 22 | Destroys the :symbol:`mongoc_gridfs_file_t` instance and any resources associated with it. Does nothing if ``file`` is NULL. 23 | -------------------------------------------------------------------------------- /src/libmongoc/doc/mongoc_read_prefs_add_tag.rst: -------------------------------------------------------------------------------- 1 | :man_page: mongoc_read_prefs_add_tag 2 | 3 | mongoc_read_prefs_add_tag() 4 | =========================== 5 | 6 | Synopsis 7 | -------- 8 | 9 | .. code-block:: c 10 | 11 | void 12 | mongoc_read_prefs_add_tag (mongoc_read_prefs_t *read_prefs, const bson_t *tag); 13 | 14 | Parameters 15 | ---------- 16 | 17 | * ``read_prefs``: A :symbol:`mongoc_read_prefs_t`. 18 | * ``tag``: A :symbol:`bson:bson_t`. 19 | 20 | Description 21 | ----------- 22 | 23 | This function shall add a tag to a read preference. 24 | 25 | -------------------------------------------------------------------------------- /src/libmongoc/tests/json/initial_dns_seedlist_discovery/replica-set/uri-with-admin-database.json: -------------------------------------------------------------------------------- 1 | { 2 | "uri": "mongodb+srv://test1.test.build.10gen.cc/adminDB?replicaSet=repl0", 3 | "seeds": [ 4 | "localhost.test.build.10gen.cc:27017", 5 | "localhost.test.build.10gen.cc:27018" 6 | ], 7 | "hosts": [ 8 | "localhost:27017", 9 | "localhost:27018", 10 | "localhost:27019" 11 | ], 12 | "options": { 13 | "replicaSet": "repl0", 14 | "ssl": true 15 | }, 16 | "parsed_options": { 17 | "auth_database": "adminDB" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.evergreen/scripts/run-mongodb-aws-ecs-test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # run-mongodb-aws-ecs-test.sh is intended to run on a remote ECS host. 4 | # For a description of ECS tests, see: https://github.com/mongodb-labs/drivers-evergreen-tools/tree/b01493d57e6716cb6385afaa4dc06330e4f33e01/.evergreen/auth_aws#ecs-test-process 5 | 6 | # ECS tests have paths /root/src 7 | 8 | echo "run-mongodb-aws-ecs-test.sh" 9 | 10 | expect_success() { 11 | echo "Should succeed:" 12 | /root/src/test-awsauth "${1:?}" "EXPECT_SUCCESS" 13 | } 14 | 15 | expect_success "${1:?}" 16 | --------------------------------------------------------------------------------