couchbase 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -13
- data/ext/couchbase/CMakeLists.txt +367 -86
- data/ext/couchbase/cmake/CompilerWarnings.cmake +11 -4
- data/ext/couchbase/cmake/Documentation.cmake +35 -0
- data/ext/couchbase/cmake/OpenSSL.cmake +23 -0
- data/ext/couchbase/cmake/Testing.cmake +61 -0
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +1 -0
- data/ext/couchbase/cmake/VersionInfo.cmake +13 -1
- data/ext/couchbase/cmake/build_version.hxx.in +3 -0
- data/ext/couchbase/core/CMakeLists.txt +0 -0
- data/ext/couchbase/core/agent.cxx +556 -0
- data/ext/couchbase/core/agent.hxx +165 -0
- data/ext/couchbase/core/agent_config.cxx +36 -0
- data/ext/couchbase/core/agent_config.hxx +44 -0
- data/ext/couchbase/core/agent_group.cxx +219 -0
- data/ext/couchbase/core/agent_group.hxx +79 -0
- data/ext/couchbase/core/agent_group_config.cxx +35 -0
- data/ext/couchbase/core/agent_group_config.hxx +45 -0
- data/ext/couchbase/core/agent_unit_test_api.hxx +37 -0
- data/ext/couchbase/core/analytics_query_options.cxx +72 -0
- data/ext/couchbase/core/analytics_query_options.hxx +74 -0
- data/ext/couchbase/core/analytics_scan_consistency.hxx +26 -0
- data/ext/couchbase/core/bucket.cxx +891 -0
- data/ext/couchbase/core/bucket.hxx +172 -0
- data/ext/couchbase/core/capella_ca.hxx +43 -0
- data/ext/couchbase/core/cluster.cxx +181 -0
- data/ext/couchbase/core/cluster.hxx +496 -0
- data/ext/couchbase/core/cluster_agent.cxx +36 -0
- data/ext/couchbase/core/cluster_agent.hxx +34 -0
- data/ext/couchbase/core/cluster_agent_config.cxx +35 -0
- data/ext/couchbase/core/cluster_agent_config.hxx +43 -0
- data/ext/couchbase/core/cluster_options.cxx +50 -0
- data/ext/couchbase/core/cluster_options.hxx +93 -0
- data/ext/couchbase/core/cluster_state.hxx +25 -0
- data/ext/couchbase/core/collection_id_cache_entry.hxx +37 -0
- data/ext/couchbase/core/collections_component.cxx +439 -0
- data/ext/couchbase/core/collections_component.hxx +81 -0
- data/ext/couchbase/core/collections_component_unit_test_api.hxx +36 -0
- data/ext/couchbase/core/collections_options.hxx +87 -0
- data/ext/couchbase/core/config_listener.hxx +31 -0
- data/ext/couchbase/core/config_profile.cxx +25 -0
- data/ext/couchbase/core/config_profile.hxx +92 -0
- data/ext/couchbase/core/core_sdk_shim.cxx +28 -0
- data/ext/couchbase/core/core_sdk_shim.hxx +30 -0
- data/ext/couchbase/core/crud_component.cxx +367 -0
- data/ext/couchbase/core/crud_component.hxx +60 -0
- data/ext/couchbase/core/crud_options.hxx +574 -0
- data/ext/couchbase/core/crypto/CMakeLists.txt +12 -0
- data/ext/couchbase/core/crypto/cbcrypto.cc +897 -0
- data/ext/couchbase/core/crypto/cbcrypto.h +88 -0
- data/ext/couchbase/core/design_document_namespace.hxx +26 -0
- data/ext/couchbase/core/design_document_namespace_fmt.hxx +47 -0
- data/ext/couchbase/core/diagnostics.hxx +97 -0
- data/ext/couchbase/core/diagnostics_fmt.hxx +113 -0
- data/ext/couchbase/core/diagnostics_json.hxx +100 -0
- data/ext/couchbase/core/diagntostics_options.hxx +55 -0
- data/ext/couchbase/core/dispatcher.cxx +37 -0
- data/ext/couchbase/core/dispatcher.hxx +43 -0
- data/ext/couchbase/core/document_id.cxx +102 -0
- data/ext/couchbase/core/document_id.hxx +119 -0
- data/ext/couchbase/core/document_id_fmt.hxx +37 -0
- data/ext/couchbase/core/durability_options.hxx +110 -0
- data/ext/couchbase/core/error_context/analytics.hxx +52 -0
- data/ext/couchbase/core/error_context/http.hxx +48 -0
- data/ext/couchbase/core/error_context/key_value.cxx +58 -0
- data/ext/couchbase/core/error_context/key_value.hxx +83 -0
- data/ext/couchbase/core/error_context/query.hxx +52 -0
- data/ext/couchbase/core/error_context/search.hxx +51 -0
- data/ext/couchbase/core/error_context/view.hxx +52 -0
- data/ext/couchbase/core/free_form_http_request.cxx +81 -0
- data/ext/couchbase/core/free_form_http_request.hxx +90 -0
- data/ext/couchbase/core/impl/analytics_error_category.cxx +62 -0
- data/ext/couchbase/core/impl/append.cxx +87 -0
- data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +109 -0
- data/ext/couchbase/core/impl/bootstrap_state_listener.hxx +39 -0
- data/ext/couchbase/core/impl/build_deferred_query_indexes.cxx +92 -0
- data/ext/couchbase/core/impl/cluster.cxx +185 -0
- data/ext/couchbase/core/impl/collection_query_index_manager.cxx +93 -0
- data/ext/couchbase/core/impl/common_error_category.cxx +88 -0
- data/ext/couchbase/core/impl/configuration_profiles_registry.cxx +73 -0
- data/ext/couchbase/core/impl/create_query_index.cxx +119 -0
- data/ext/couchbase/core/impl/decrement.cxx +96 -0
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +147 -0
- data/ext/couchbase/core/impl/dns_srv_tracker.hxx +68 -0
- data/ext/couchbase/core/impl/drop_query_index.cxx +108 -0
- data/ext/couchbase/core/impl/exists.cxx +47 -0
- data/ext/couchbase/core/impl/expiry.cxx +99 -0
- data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +41 -0
- data/ext/couchbase/core/impl/field_level_encryption_error_category.cxx +63 -0
- data/ext/couchbase/core/impl/get.cxx +68 -0
- data/ext/couchbase/core/impl/get_all_query_indexes.cxx +76 -0
- data/ext/couchbase/core/impl/get_all_replicas.cxx +145 -0
- data/ext/couchbase/core/impl/get_all_replicas.hxx +79 -0
- data/ext/couchbase/core/impl/get_and_lock.cxx +49 -0
- data/ext/couchbase/core/impl/get_and_touch.cxx +49 -0
- data/ext/couchbase/core/impl/get_any_replica.cxx +134 -0
- data/ext/couchbase/core/impl/get_any_replica.hxx +76 -0
- data/ext/couchbase/core/impl/get_replica.cxx +44 -0
- data/ext/couchbase/core/impl/get_replica.hxx +52 -0
- data/ext/couchbase/core/impl/increment.cxx +96 -0
- data/ext/couchbase/core/impl/insert.cxx +90 -0
- data/ext/couchbase/core/impl/key_value_error_category.cxx +105 -0
- data/ext/couchbase/core/impl/lookup_in.cxx +68 -0
- data/ext/couchbase/core/impl/management_error_category.cxx +75 -0
- data/ext/couchbase/core/impl/mutate_in.cxx +125 -0
- data/ext/couchbase/core/impl/network_error_category.cxx +73 -0
- data/ext/couchbase/core/impl/observe_poll.cxx +355 -0
- data/ext/couchbase/core/impl/observe_poll.hxx +49 -0
- data/ext/couchbase/core/impl/observe_seqno.cxx +47 -0
- data/ext/couchbase/core/impl/observe_seqno.hxx +63 -0
- data/ext/couchbase/core/impl/prepend.cxx +87 -0
- data/ext/couchbase/core/impl/query.cxx +245 -0
- data/ext/couchbase/core/impl/query_error_category.cxx +55 -0
- data/ext/couchbase/core/impl/remove.cxx +86 -0
- data/ext/couchbase/core/impl/replace.cxx +102 -0
- data/ext/couchbase/core/impl/retry_action.cxx +39 -0
- data/ext/couchbase/core/impl/retry_reason.cxx +85 -0
- data/ext/couchbase/core/impl/search_error_category.cxx +51 -0
- data/ext/couchbase/core/impl/streaming_json_lexter_error_category.cxx +102 -0
- data/ext/couchbase/core/impl/subdoc/array_add_unique.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/array_append.cxx +37 -0
- data/ext/couchbase/core/impl/subdoc/array_insert.cxx +37 -0
- data/ext/couchbase/core/impl/subdoc/array_prepend.cxx +37 -0
- data/ext/couchbase/core/impl/subdoc/command.hxx +41 -0
- data/ext/couchbase/core/impl/subdoc/command_bundle.hxx +42 -0
- data/ext/couchbase/core/impl/subdoc/count.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/counter.cxx +37 -0
- data/ext/couchbase/core/impl/subdoc/exists.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/get.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/insert.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/join_values.cxx +56 -0
- data/ext/couchbase/core/impl/subdoc/join_values.hxx +27 -0
- data/ext/couchbase/core/impl/subdoc/lookup_in_macro.cxx +117 -0
- data/ext/couchbase/core/impl/subdoc/lookup_in_specs.cxx +42 -0
- data/ext/couchbase/core/impl/subdoc/mutate_in_macro.cxx +77 -0
- data/ext/couchbase/core/impl/subdoc/mutate_in_specs.cxx +42 -0
- data/ext/couchbase/core/impl/subdoc/opcode.hxx +47 -0
- data/ext/couchbase/core/impl/subdoc/path_flags.hxx +77 -0
- data/ext/couchbase/core/impl/subdoc/remove.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/replace.cxx +36 -0
- data/ext/couchbase/core/impl/subdoc/upsert.cxx +36 -0
- data/ext/couchbase/core/impl/touch.cxx +49 -0
- data/ext/couchbase/core/impl/transaction_error_category.cxx +54 -0
- data/ext/couchbase/core/impl/transaction_op_error_category.cxx +90 -0
- data/ext/couchbase/core/impl/unlock.cxx +47 -0
- data/ext/couchbase/core/impl/upsert.cxx +100 -0
- data/ext/couchbase/core/impl/view_error_category.cxx +50 -0
- data/ext/couchbase/core/impl/watch_query_indexes.cxx +168 -0
- data/ext/couchbase/core/impl/with_legacy_durability.hxx +65 -0
- data/ext/couchbase/core/io/dns_client.hxx +224 -0
- data/ext/couchbase/core/io/dns_codec.hxx +207 -0
- data/ext/couchbase/core/io/dns_config.cxx +157 -0
- data/ext/couchbase/core/io/dns_config.hxx +68 -0
- data/ext/couchbase/core/io/dns_message.hxx +555 -0
- data/ext/couchbase/core/io/http_command.hxx +182 -0
- data/ext/couchbase/core/io/http_context.hxx +40 -0
- data/ext/couchbase/core/io/http_message.hxx +116 -0
- data/ext/couchbase/core/io/http_parser.cxx +141 -0
- data/ext/couchbase/core/io/http_parser.hxx +55 -0
- data/ext/couchbase/core/io/http_session.hxx +552 -0
- data/ext/couchbase/core/io/http_session_manager.hxx +388 -0
- data/ext/couchbase/core/io/http_traits.hxx +38 -0
- data/ext/couchbase/core/io/ip_protocol.hxx +28 -0
- data/ext/couchbase/core/io/mcbp_command.hxx +317 -0
- data/ext/couchbase/core/io/mcbp_context.hxx +40 -0
- data/ext/couchbase/core/io/mcbp_message.cxx +39 -0
- data/ext/couchbase/core/io/mcbp_message.hxx +60 -0
- data/ext/couchbase/core/io/mcbp_parser.cxx +88 -0
- data/ext/couchbase/core/io/mcbp_parser.hxx +45 -0
- data/ext/couchbase/core/io/mcbp_session.cxx +1690 -0
- data/ext/couchbase/core/io/mcbp_session.hxx +130 -0
- data/ext/couchbase/core/io/mcbp_traits.hxx +38 -0
- data/ext/couchbase/core/io/query_cache.hxx +71 -0
- data/ext/couchbase/core/io/retry_context.hxx +89 -0
- data/ext/couchbase/core/io/retry_orchestrator.hxx +97 -0
- data/ext/couchbase/core/io/streams.hxx +258 -0
- data/ext/couchbase/core/json_string.hxx +82 -0
- data/ext/couchbase/core/key_value_config.cxx +35 -0
- data/ext/couchbase/core/key_value_config.hxx +40 -0
- data/ext/couchbase/core/logger/CMakeLists.txt +9 -0
- data/ext/couchbase/core/logger/configuration.hxx +60 -0
- data/ext/couchbase/core/logger/custom_rotating_file_sink.cxx +157 -0
- data/ext/couchbase/{couchbase → core}/logger/custom_rotating_file_sink.hxx +0 -0
- data/ext/couchbase/core/logger/level.hxx +21 -0
- data/ext/couchbase/core/logger/logger.cxx +340 -0
- data/ext/couchbase/core/logger/logger.hxx +240 -0
- data/ext/couchbase/core/management/analytics_dataset.hxx +30 -0
- data/ext/couchbase/core/management/analytics_index.hxx +30 -0
- data/ext/couchbase/core/management/analytics_link.hxx +22 -0
- data/ext/couchbase/core/management/analytics_link_azure_blob_external.cxx +68 -0
- data/ext/couchbase/core/management/analytics_link_azure_blob_external.hxx +76 -0
- data/ext/couchbase/core/management/analytics_link_azure_blob_external_json.hxx +52 -0
- data/ext/couchbase/core/management/analytics_link_couchbase_remote.cxx +105 -0
- data/ext/couchbase/core/management/analytics_link_couchbase_remote.hxx +107 -0
- data/ext/couchbase/core/management/analytics_link_couchbase_remote_json.hxx +63 -0
- data/ext/couchbase/core/management/analytics_link_s3_external.cxx +58 -0
- data/ext/couchbase/core/management/analytics_link_s3_external.hxx +69 -0
- data/ext/couchbase/core/management/analytics_link_s3_external_json.hxx +47 -0
- data/ext/couchbase/core/management/bucket_settings.hxx +134 -0
- data/ext/couchbase/core/management/bucket_settings_json.hxx +123 -0
- data/ext/couchbase/core/management/design_document.hxx +41 -0
- data/ext/couchbase/core/management/eventing_function.hxx +188 -0
- data/ext/couchbase/core/management/eventing_function_json.hxx +212 -0
- data/ext/couchbase/core/management/eventing_status.hxx +84 -0
- data/ext/couchbase/core/management/eventing_status_json.hxx +77 -0
- data/ext/couchbase/core/management/rbac.hxx +77 -0
- data/ext/couchbase/core/management/rbac_fmt.hxx +49 -0
- data/ext/couchbase/core/management/rbac_json.hxx +179 -0
- data/ext/couchbase/core/management/search_index.hxx +38 -0
- data/ext/couchbase/core/management/search_index_json.hxx +58 -0
- data/ext/couchbase/core/mcbp/barrier_frame.hxx +27 -0
- data/ext/couchbase/core/mcbp/big_endian.cxx +73 -0
- data/ext/couchbase/core/mcbp/big_endian.hxx +46 -0
- data/ext/couchbase/core/mcbp/buffer_writer.cxx +78 -0
- data/ext/couchbase/core/mcbp/buffer_writer.hxx +38 -0
- data/ext/couchbase/core/mcbp/codec.cxx +501 -0
- data/ext/couchbase/core/mcbp/codec.hxx +52 -0
- data/ext/couchbase/core/mcbp/command_code.cxx +77 -0
- data/ext/couchbase/core/mcbp/command_code.hxx +33 -0
- data/ext/couchbase/core/mcbp/completion_token.hxx +69 -0
- data/ext/couchbase/core/mcbp/datatype.hxx +40 -0
- data/ext/couchbase/core/mcbp/durability_level.hxx +35 -0
- data/ext/couchbase/core/mcbp/durability_level_frame.hxx +28 -0
- data/ext/couchbase/core/mcbp/durability_timeout_frame.hxx +29 -0
- data/ext/couchbase/core/mcbp/frame_type.hxx +41 -0
- data/ext/couchbase/core/mcbp/open_tracing_frame.hxx +29 -0
- data/ext/couchbase/core/mcbp/operation_consumer.cxx +47 -0
- data/ext/couchbase/core/mcbp/operation_consumer.hxx +42 -0
- data/ext/couchbase/core/mcbp/operation_queue.cxx +158 -0
- data/ext/couchbase/core/mcbp/operation_queue.hxx +57 -0
- data/ext/couchbase/core/mcbp/packet.cxx +92 -0
- data/ext/couchbase/core/mcbp/packet.hxx +71 -0
- data/ext/couchbase/core/mcbp/preserve_expiry_frame.hxx +26 -0
- data/ext/couchbase/core/mcbp/queue_callback.hxx +34 -0
- data/ext/couchbase/core/mcbp/queue_request.cxx +174 -0
- data/ext/couchbase/core/mcbp/queue_request.hxx +120 -0
- data/ext/couchbase/core/mcbp/queue_request_connection_info.hxx +29 -0
- data/ext/couchbase/core/mcbp/queue_response.hxx +37 -0
- data/ext/couchbase/core/mcbp/read_units_frame.hxx +28 -0
- data/ext/couchbase/core/mcbp/server_duration.cxx +40 -0
- data/ext/couchbase/core/mcbp/server_duration.hxx +32 -0
- data/ext/couchbase/core/mcbp/server_duration_frame.hxx +28 -0
- data/ext/couchbase/core/mcbp/stream_id_frame.hxx +28 -0
- data/ext/couchbase/core/mcbp/unsupported_frame.hxx +32 -0
- data/ext/couchbase/core/mcbp/user_impersonation_frame.hxx +30 -0
- data/ext/couchbase/core/mcbp/write_units_frame.hxx +29 -0
- data/ext/couchbase/core/meta/CMakeLists.txt +17 -0
- data/ext/couchbase/core/meta/features.hxx +31 -0
- data/ext/couchbase/core/meta/version.cxx +264 -0
- data/ext/couchbase/core/meta/version.hxx +56 -0
- data/ext/couchbase/core/metrics/CMakeLists.txt +13 -0
- data/ext/couchbase/core/metrics/logging_meter.cxx +235 -0
- data/ext/couchbase/core/metrics/logging_meter.hxx +60 -0
- data/ext/couchbase/core/metrics/logging_meter_options.hxx +28 -0
- data/ext/couchbase/core/metrics/noop_meter.hxx +47 -0
- data/ext/couchbase/core/n1ql_query_options.cxx +94 -0
- data/ext/couchbase/core/n1ql_query_options.hxx +78 -0
- data/ext/couchbase/core/operation_map.hxx +36 -0
- data/ext/couchbase/core/operations/document_analytics.cxx +221 -0
- data/ext/couchbase/core/operations/document_analytics.hxx +113 -0
- data/ext/couchbase/core/operations/document_append.cxx +45 -0
- data/ext/couchbase/core/operations/document_append.hxx +78 -0
- data/ext/couchbase/core/operations/document_decrement.cxx +53 -0
- data/ext/couchbase/core/operations/document_decrement.hxx +81 -0
- data/ext/couchbase/core/operations/document_exists.cxx +50 -0
- data/ext/couchbase/core/operations/document_exists.hxx +72 -0
- data/ext/couchbase/core/operations/document_get.cxx +44 -0
- data/ext/couchbase/core/operations/document_get.hxx +62 -0
- data/ext/couchbase/core/operations/document_get_all_replicas.hxx +143 -0
- data/ext/couchbase/core/operations/document_get_and_lock.cxx +45 -0
- data/ext/couchbase/core/operations/document_get_and_lock.hxx +64 -0
- data/ext/couchbase/core/operations/document_get_and_touch.cxx +45 -0
- data/ext/couchbase/core/operations/document_get_and_touch.hxx +65 -0
- data/ext/couchbase/core/operations/document_get_any_replica.hxx +133 -0
- data/ext/couchbase/core/operations/document_get_projected.cxx +238 -0
- data/ext/couchbase/core/operations/document_get_projected.hxx +68 -0
- data/ext/couchbase/core/operations/document_increment.cxx +53 -0
- data/ext/couchbase/core/operations/document_increment.hxx +81 -0
- data/ext/couchbase/core/operations/document_insert.cxx +51 -0
- data/ext/couchbase/core/operations/document_insert.hxx +80 -0
- data/ext/couchbase/core/operations/document_lookup_in.cxx +97 -0
- data/ext/couchbase/core/operations/document_lookup_in.hxx +77 -0
- data/ext/couchbase/core/operations/document_mutate_in.cxx +118 -0
- data/ext/couchbase/core/operations/document_mutate_in.hxx +95 -0
- data/ext/couchbase/core/operations/document_prepend.cxx +45 -0
- data/ext/couchbase/core/operations/document_prepend.hxx +78 -0
- data/ext/couchbase/core/operations/document_query.cxx +386 -0
- data/ext/couchbase/core/operations/document_query.hxx +128 -0
- data/ext/couchbase/core/operations/document_remove.cxx +45 -0
- data/ext/couchbase/core/operations/document_remove.hxx +78 -0
- data/ext/couchbase/core/operations/document_replace.cxx +55 -0
- data/ext/couchbase/core/operations/document_replace.hxx +82 -0
- data/ext/couchbase/core/operations/document_search.cxx +312 -0
- data/ext/couchbase/core/operations/document_search.hxx +163 -0
- data/ext/couchbase/core/operations/document_touch.cxx +43 -0
- data/ext/couchbase/core/operations/document_touch.hxx +61 -0
- data/ext/couchbase/core/operations/document_unlock.cxx +43 -0
- data/ext/couchbase/core/operations/document_unlock.hxx +61 -0
- data/ext/couchbase/core/operations/document_upsert.cxx +54 -0
- data/ext/couchbase/core/operations/document_upsert.hxx +81 -0
- data/ext/couchbase/core/operations/document_view.cxx +197 -0
- data/ext/couchbase/core/operations/document_view.hxx +109 -0
- data/ext/couchbase/core/operations/http_noop.cxx +64 -0
- data/ext/couchbase/core/operations/http_noop.hxx +48 -0
- data/ext/couchbase/core/operations/management/CMakeLists.txt +80 -0
- data/ext/couchbase/core/operations/management/analytics.hxx +34 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +93 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +57 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +82 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +54 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.cxx +78 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +52 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +81 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +53 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +81 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +53 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +69 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +52 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.cxx +105 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.hxx +56 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +89 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +55 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.cxx +79 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +52 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +81 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +57 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.cxx +86 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.hxx +77 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +79 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +56 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +102 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +56 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +128 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +63 -0
- data/ext/couchbase/core/operations/management/analytics_link_replace.cxx +86 -0
- data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +78 -0
- data/ext/couchbase/core/operations/management/analytics_link_utils.hxx +37 -0
- data/ext/couchbase/core/operations/management/analytics_problem.hxx +31 -0
- data/ext/couchbase/core/operations/management/bucket.hxx +25 -0
- data/ext/couchbase/core/operations/management/bucket_create.cxx +171 -0
- data/ext/couchbase/core/operations/management/bucket_create.hxx +52 -0
- data/ext/couchbase/core/operations/management/bucket_describe.cxx +98 -0
- data/ext/couchbase/core/operations/management/bucket_describe.hxx +64 -0
- data/ext/couchbase/core/operations/management/bucket_drop.cxx +51 -0
- data/ext/couchbase/core/operations/management/bucket_drop.hxx +49 -0
- data/ext/couchbase/core/operations/management/bucket_flush.cxx +58 -0
- data/ext/couchbase/core/operations/management/bucket_flush.hxx +49 -0
- data/ext/couchbase/core/operations/management/bucket_get.cxx +58 -0
- data/ext/couchbase/core/operations/management/bucket_get.hxx +51 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.cxx +58 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.hxx +49 -0
- data/ext/couchbase/core/operations/management/bucket_update.cxx +130 -0
- data/ext/couchbase/core/operations/management/bucket_update.hxx +52 -0
- data/ext/couchbase/core/operations/management/change_password.cxx +55 -0
- data/ext/couchbase/core/operations/management/change_password.hxx +50 -0
- data/ext/couchbase/core/operations/management/cluster_describe.cxx +89 -0
- data/ext/couchbase/core/operations/management/cluster_describe.hxx +72 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.cxx +43 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +48 -0
- data/ext/couchbase/core/operations/management/collection_create.cxx +82 -0
- data/ext/couchbase/core/operations/management/collection_create.hxx +53 -0
- data/ext/couchbase/core/operations/management/collection_drop.cxx +72 -0
- data/ext/couchbase/core/operations/management/collection_drop.hxx +52 -0
- data/ext/couchbase/core/operations/management/collections.hxx +25 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.cxx +40 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +53 -0
- data/ext/couchbase/core/operations/management/error_utils.cxx +267 -0
- data/ext/couchbase/core/operations/management/error_utils.hxx +49 -0
- data/ext/couchbase/core/operations/management/eventing.hxx +28 -0
- data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +56 -0
- data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.cxx +63 -0
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +51 -0
- data/ext/couchbase/core/operations/management/eventing_get_function.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_get_function.hxx +53 -0
- data/ext/couchbase/core/operations/management/eventing_get_status.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_get_status.hxx +53 -0
- data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/eventing_problem.hxx +32 -0
- data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +55 -0
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +340 -0
- data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +52 -0
- data/ext/couchbase/core/operations/management/freeform.cxx +54 -0
- data/ext/couchbase/core/operations/management/freeform.hxx +55 -0
- data/ext/couchbase/core/operations/management/group_drop.cxx +50 -0
- data/ext/couchbase/core/operations/management/group_drop.hxx +49 -0
- data/ext/couchbase/core/operations/management/group_get.cxx +59 -0
- data/ext/couchbase/core/operations/management/group_get.hxx +50 -0
- data/ext/couchbase/core/operations/management/group_get_all.cxx +57 -0
- data/ext/couchbase/core/operations/management/group_get_all.hxx +49 -0
- data/ext/couchbase/core/operations/management/group_upsert.cxx +95 -0
- data/ext/couchbase/core/operations/management/group_upsert.hxx +51 -0
- data/ext/couchbase/core/operations/management/query.hxx +25 -0
- data/ext/couchbase/core/operations/management/query_index_build.cxx +92 -0
- data/ext/couchbase/core/operations/management/query_index_build.hxx +62 -0
- data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +116 -0
- data/ext/couchbase/core/operations/management/query_index_create.cxx +146 -0
- data/ext/couchbase/core/operations/management/query_index_create.hxx +67 -0
- data/ext/couchbase/core/operations/management/query_index_drop.cxx +127 -0
- data/ext/couchbase/core/operations/management/query_index_drop.hxx +63 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.cxx +129 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.hxx +56 -0
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.cxx +96 -0
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +57 -0
- data/ext/couchbase/core/operations/management/role_get_all.cxx +57 -0
- data/ext/couchbase/core/operations/management/role_get_all.hxx +49 -0
- data/ext/couchbase/core/operations/management/scope_create.cxx +74 -0
- data/ext/couchbase/core/operations/management/scope_create.hxx +51 -0
- data/ext/couchbase/core/operations/management/scope_drop.cxx +69 -0
- data/ext/couchbase/core/operations/management/scope_drop.hxx +51 -0
- data/ext/couchbase/core/operations/management/scope_get_all.cxx +61 -0
- data/ext/couchbase/core/operations/management/scope_get_all.hxx +51 -0
- data/ext/couchbase/core/operations/management/search.hxx +30 -0
- data/ext/couchbase/core/operations/management/search_get_stats.cxx +41 -0
- data/ext/couchbase/core/operations/management/search_get_stats.hxx +48 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +84 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +54 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +72 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +52 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +72 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +57 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.cxx +72 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.hxx +52 -0
- data/ext/couchbase/core/operations/management/search_index_drop.cxx +71 -0
- data/ext/couchbase/core/operations/management/search_index_drop.hxx +51 -0
- data/ext/couchbase/core/operations/management/search_index_get.cxx +74 -0
- data/ext/couchbase/core/operations/management/search_index_get.hxx +54 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.cxx +66 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.hxx +51 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +78 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +53 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +70 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +52 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.cxx +114 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.hxx +54 -0
- data/ext/couchbase/core/operations/management/user.hxx +29 -0
- data/ext/couchbase/core/operations/management/user_drop.cxx +51 -0
- data/ext/couchbase/core/operations/management/user_drop.hxx +51 -0
- data/ext/couchbase/core/operations/management/user_get.cxx +60 -0
- data/ext/couchbase/core/operations/management/user_get.hxx +52 -0
- data/ext/couchbase/core/operations/management/user_get_all.cxx +58 -0
- data/ext/couchbase/core/operations/management/user_get_all.hxx +51 -0
- data/ext/couchbase/core/operations/management/user_upsert.cxx +100 -0
- data/ext/couchbase/core/operations/management/user_upsert.hxx +52 -0
- data/ext/couchbase/core/operations/management/view.hxx +23 -0
- data/ext/couchbase/core/operations/management/view_index_drop.cxx +45 -0
- data/ext/couchbase/core/operations/management/view_index_drop.hxx +52 -0
- data/ext/couchbase/core/operations/management/view_index_get.cxx +73 -0
- data/ext/couchbase/core/operations/management/view_index_get.hxx +53 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.cxx +107 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.hxx +52 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.cxx +70 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.hxx +51 -0
- data/ext/couchbase/core/operations/mcbp_noop.cxx +38 -0
- data/ext/couchbase/core/operations/mcbp_noop.hxx +49 -0
- data/ext/couchbase/core/operations/operation_traits.hxx +31 -0
- data/ext/couchbase/core/operations.hxx +44 -0
- data/ext/couchbase/core/origin.hxx +195 -0
- data/ext/couchbase/core/pending_operation.hxx +26 -0
- data/ext/couchbase/core/ping_collector.hxx +32 -0
- data/ext/couchbase/core/ping_options.hxx +86 -0
- data/ext/couchbase/core/ping_reporter.hxx +30 -0
- data/ext/couchbase/core/platform/CMakeLists.txt +16 -0
- data/ext/couchbase/core/platform/backtrace.c +189 -0
- data/ext/couchbase/{couchbase → core}/platform/backtrace.h +0 -0
- data/ext/couchbase/core/platform/base64.cc +253 -0
- data/ext/couchbase/core/platform/base64.h +52 -0
- data/ext/couchbase/core/platform/dirutils.cc +123 -0
- data/ext/couchbase/core/platform/dirutils.h +43 -0
- data/ext/couchbase/core/platform/random.cc +120 -0
- data/ext/couchbase/core/platform/random.h +39 -0
- data/ext/couchbase/core/platform/string_hex.cc +101 -0
- data/ext/couchbase/core/platform/string_hex.h +50 -0
- data/ext/couchbase/core/platform/terminate_handler.cc +125 -0
- data/ext/couchbase/core/platform/terminate_handler.h +36 -0
- data/ext/couchbase/core/platform/uuid.cc +102 -0
- data/ext/couchbase/core/platform/uuid.h +56 -0
- data/ext/couchbase/core/protocol/client_opcode.hxx +369 -0
- data/ext/couchbase/core/protocol/client_opcode_fmt.hxx +325 -0
- data/ext/couchbase/core/protocol/client_request.cxx +38 -0
- data/ext/couchbase/core/protocol/client_request.hxx +167 -0
- data/ext/couchbase/core/protocol/client_response.cxx +75 -0
- data/ext/couchbase/core/protocol/client_response.hxx +210 -0
- data/ext/couchbase/core/protocol/cmd_append.cxx +74 -0
- data/ext/couchbase/core/protocol/cmd_append.hxx +107 -0
- data/ext/couchbase/core/protocol/cmd_cluster_map_change_notification.cxx +53 -0
- data/ext/couchbase/core/protocol/cmd_cluster_map_change_notification.hxx +57 -0
- data/ext/couchbase/core/protocol/cmd_decrement.cxx +96 -0
- data/ext/couchbase/core/protocol/cmd_decrement.hxx +130 -0
- data/ext/couchbase/core/protocol/cmd_get.cxx +59 -0
- data/ext/couchbase/core/protocol/cmd_get.hxx +96 -0
- data/ext/couchbase/core/protocol/cmd_get_and_lock.cxx +66 -0
- data/ext/couchbase/core/protocol/cmd_get_and_lock.hxx +112 -0
- data/ext/couchbase/core/protocol/cmd_get_and_touch.cxx +66 -0
- data/ext/couchbase/core/protocol/cmd_get_and_touch.hxx +112 -0
- data/ext/couchbase/core/protocol/cmd_get_cluster_config.cxx +85 -0
- data/ext/couchbase/core/protocol/cmd_get_cluster_config.hxx +89 -0
- data/ext/couchbase/core/protocol/cmd_get_collection_id.cxx +60 -0
- data/ext/couchbase/core/protocol/cmd_get_collection_id.hxx +95 -0
- data/ext/couchbase/core/protocol/cmd_get_collections_manifest.cxx +51 -0
- data/ext/couchbase/core/protocol/cmd_get_collections_manifest.hxx +84 -0
- data/ext/couchbase/core/protocol/cmd_get_error_map.cxx +61 -0
- data/ext/couchbase/core/protocol/cmd_get_error_map.hxx +103 -0
- data/ext/couchbase/core/protocol/cmd_get_meta.cxx +70 -0
- data/ext/couchbase/core/protocol/cmd_get_meta.hxx +117 -0
- data/ext/couchbase/core/protocol/cmd_get_replica.cxx +71 -0
- data/ext/couchbase/core/protocol/cmd_get_replica.hxx +88 -0
- data/ext/couchbase/core/protocol/cmd_hello.cxx +76 -0
- data/ext/couchbase/core/protocol/cmd_hello.hxx +140 -0
- data/ext/couchbase/core/protocol/cmd_increment.cxx +98 -0
- data/ext/couchbase/core/protocol/cmd_increment.hxx +130 -0
- data/ext/couchbase/core/protocol/cmd_info.hxx +30 -0
- data/ext/couchbase/core/protocol/cmd_insert.cxx +83 -0
- data/ext/couchbase/core/protocol/cmd_insert.hxx +124 -0
- data/ext/couchbase/core/protocol/cmd_lookup_in.cxx +108 -0
- data/ext/couchbase/core/protocol/cmd_lookup_in.hxx +139 -0
- data/ext/couchbase/core/protocol/cmd_mutate_in.cxx +163 -0
- data/ext/couchbase/core/protocol/cmd_mutate_in.hxx +216 -0
- data/ext/couchbase/core/protocol/cmd_noop.cxx +36 -0
- data/ext/couchbase/core/protocol/cmd_noop.hxx +75 -0
- data/ext/couchbase/core/protocol/cmd_observe_seqno.cxx +92 -0
- data/ext/couchbase/core/protocol/cmd_observe_seqno.hxx +132 -0
- data/ext/couchbase/core/protocol/cmd_prepend.cxx +73 -0
- data/ext/couchbase/core/protocol/cmd_prepend.hxx +103 -0
- data/ext/couchbase/core/protocol/cmd_remove.cxx +74 -0
- data/ext/couchbase/core/protocol/cmd_remove.hxx +94 -0
- data/ext/couchbase/core/protocol/cmd_replace.cxx +92 -0
- data/ext/couchbase/core/protocol/cmd_replace.hxx +131 -0
- data/ext/couchbase/core/protocol/cmd_sasl_auth.cxx +61 -0
- data/ext/couchbase/core/protocol/cmd_sasl_auth.hxx +91 -0
- data/ext/couchbase/core/protocol/cmd_sasl_list_mechs.cxx +53 -0
- data/ext/couchbase/core/protocol/cmd_sasl_list_mechs.hxx +82 -0
- data/ext/couchbase/core/protocol/cmd_sasl_step.cxx +61 -0
- data/ext/couchbase/core/protocol/cmd_sasl_step.hxx +91 -0
- data/ext/couchbase/core/protocol/cmd_select_bucket.cxx +45 -0
- data/ext/couchbase/core/protocol/cmd_select_bucket.hxx +79 -0
- data/ext/couchbase/core/protocol/cmd_touch.cxx +53 -0
- data/ext/couchbase/core/protocol/cmd_touch.hxx +84 -0
- data/ext/couchbase/core/protocol/cmd_unlock.cxx +44 -0
- data/ext/couchbase/core/protocol/cmd_unlock.hxx +81 -0
- data/ext/couchbase/core/protocol/cmd_upsert.cxx +92 -0
- data/ext/couchbase/core/protocol/cmd_upsert.hxx +126 -0
- data/ext/couchbase/core/protocol/datatype.hxx +48 -0
- data/ext/couchbase/core/protocol/enhanced_error_info.hxx +23 -0
- data/ext/couchbase/core/protocol/frame_info_id.hxx +142 -0
- data/ext/couchbase/core/protocol/frame_info_id_fmt.hxx +79 -0
- data/ext/couchbase/core/protocol/frame_info_utils.cxx +59 -0
- data/ext/couchbase/core/protocol/frame_info_utils.hxx +52 -0
- data/ext/couchbase/core/protocol/hello_feature.hxx +193 -0
- data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +112 -0
- data/ext/couchbase/core/protocol/magic.hxx +53 -0
- data/ext/couchbase/core/protocol/magic_fmt.hxx +58 -0
- data/ext/couchbase/core/protocol/server_opcode.hxx +39 -0
- data/ext/couchbase/core/protocol/server_opcode_fmt.hxx +46 -0
- data/ext/couchbase/core/protocol/server_request.hxx +121 -0
- data/ext/couchbase/core/protocol/status.cxx +202 -0
- data/ext/couchbase/core/protocol/status.hxx +118 -0
- data/ext/couchbase/core/query_context.hxx +79 -0
- data/ext/couchbase/core/range_scan_options.cxx +57 -0
- data/ext/couchbase/core/range_scan_options.hxx +139 -0
- data/ext/couchbase/core/range_scan_orchestrator.cxx +495 -0
- data/ext/couchbase/core/range_scan_orchestrator.hxx +54 -0
- data/ext/couchbase/core/range_scan_orchestrator_options.hxx +54 -0
- data/ext/couchbase/core/resource_units.hxx +26 -0
- data/ext/couchbase/core/response_handler.hxx +49 -0
- data/ext/couchbase/core/retry_orchestrator.cxx +52 -0
- data/ext/couchbase/core/retry_orchestrator.hxx +35 -0
- data/ext/couchbase/core/sasl/CMakeLists.txt +16 -0
- data/ext/couchbase/core/sasl/client.cc +50 -0
- data/ext/couchbase/core/sasl/client.h +127 -0
- data/ext/couchbase/core/sasl/context.cc +34 -0
- data/ext/couchbase/core/sasl/context.h +52 -0
- data/ext/couchbase/core/sasl/error.h +28 -0
- data/ext/couchbase/core/sasl/error_fmt.h +70 -0
- data/ext/couchbase/core/sasl/mechanism.cc +45 -0
- data/ext/couchbase/core/sasl/mechanism.h +52 -0
- data/ext/couchbase/core/sasl/plain/plain.cc +39 -0
- data/ext/couchbase/core/sasl/plain/plain.h +54 -0
- data/ext/couchbase/core/sasl/scram-sha/scram-sha.cc +372 -0
- data/ext/couchbase/core/sasl/scram-sha/scram-sha.h +184 -0
- data/ext/couchbase/core/sasl/scram-sha/stringutils.cc +82 -0
- data/ext/couchbase/core/sasl/scram-sha/stringutils.h +48 -0
- data/ext/couchbase/core/scan_options.hxx +63 -0
- data/ext/couchbase/core/scan_result.cxx +71 -0
- data/ext/couchbase/core/scan_result.hxx +59 -0
- data/ext/couchbase/core/search_highlight_style.hxx +23 -0
- data/ext/couchbase/core/search_query_options.cxx +72 -0
- data/ext/couchbase/core/search_query_options.hxx +74 -0
- data/ext/couchbase/core/search_scan_consistency.hxx +23 -0
- data/ext/couchbase/core/seed_config.cxx +39 -0
- data/ext/couchbase/core/seed_config.hxx +39 -0
- data/ext/couchbase/core/service_type.hxx +31 -0
- data/ext/couchbase/core/service_type_fmt.hxx +61 -0
- data/ext/couchbase/core/stats_options.hxx +61 -0
- data/ext/couchbase/core/subdoc_options.hxx +124 -0
- data/ext/couchbase/core/timeout_defaults.hxx +45 -0
- data/ext/couchbase/core/topology/capabilities.hxx +43 -0
- data/ext/couchbase/core/topology/capabilities_fmt.hxx +106 -0
- data/ext/couchbase/core/topology/collections_manifest.hxx +43 -0
- data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +52 -0
- data/ext/couchbase/core/topology/collections_manifest_json.hxx +53 -0
- data/ext/couchbase/core/topology/configuration.cxx +256 -0
- data/ext/couchbase/core/topology/configuration.hxx +144 -0
- data/ext/couchbase/core/topology/configuration_fmt.hxx +166 -0
- data/ext/couchbase/core/topology/configuration_json.hxx +259 -0
- data/ext/couchbase/core/topology/error_map.hxx +35 -0
- data/ext/couchbase/core/topology/error_map_fmt.hxx +94 -0
- data/ext/couchbase/core/topology/error_map_json.hxx +89 -0
- data/ext/couchbase/core/tracing/CMakeLists.txt +11 -0
- data/ext/couchbase/core/tracing/constants.hxx +286 -0
- data/ext/couchbase/core/tracing/noop_tracer.hxx +56 -0
- data/ext/couchbase/core/tracing/threshold_logging_options.hxx +68 -0
- data/ext/couchbase/core/tracing/threshold_logging_tracer.cxx +438 -0
- data/ext/couchbase/core/tracing/threshold_logging_tracer.hxx +52 -0
- data/ext/couchbase/core/transactions/active_transaction_record.hxx +180 -0
- data/ext/couchbase/core/transactions/async_attempt_context.hxx +175 -0
- data/ext/couchbase/core/transactions/atr_cleanup_entry.cxx +460 -0
- data/ext/couchbase/core/transactions/atr_ids.cxx +225 -0
- data/ext/couchbase/core/transactions/atr_ids.hxx +32 -0
- data/ext/couchbase/core/transactions/attempt_context.hxx +195 -0
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +2382 -0
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +608 -0
- data/ext/couchbase/core/transactions/attempt_context_testing_hooks.hxx +145 -0
- data/ext/couchbase/core/transactions/attempt_state.hxx +112 -0
- data/ext/couchbase/core/transactions/binary.cxx +26 -0
- data/ext/couchbase/core/transactions/cleanup_testing_hooks.hxx +69 -0
- data/ext/couchbase/core/transactions/document_metadata.hxx +106 -0
- data/ext/couchbase/core/transactions/durability_level.hxx +91 -0
- data/ext/couchbase/core/transactions/error_class.hxx +35 -0
- data/ext/couchbase/core/transactions/error_list.hxx +54 -0
- data/ext/couchbase/core/transactions/exceptions.cxx +160 -0
- data/ext/couchbase/core/transactions/exceptions.hxx +209 -0
- data/ext/couchbase/core/transactions/forward_compat.hxx +250 -0
- data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +164 -0
- data/ext/couchbase/core/transactions/internal/atr_entry.hxx +178 -0
- data/ext/couchbase/core/transactions/internal/binary.hxx +26 -0
- data/ext/couchbase/core/transactions/internal/client_record.hxx +85 -0
- data/ext/couchbase/core/transactions/internal/doc_record.hxx +99 -0
- data/ext/couchbase/core/transactions/internal/exceptions_internal.hxx +393 -0
- data/ext/couchbase/core/transactions/internal/logging.hxx +62 -0
- data/ext/couchbase/core/transactions/internal/transaction_attempt.hxx +30 -0
- data/ext/couchbase/core/transactions/internal/transaction_context.hxx +197 -0
- data/ext/couchbase/core/transactions/internal/transaction_fields.hxx +71 -0
- data/ext/couchbase/core/transactions/internal/transactions_cleanup.hxx +159 -0
- data/ext/couchbase/core/transactions/internal/utils.hxx +311 -0
- data/ext/couchbase/core/transactions/result.cxx +79 -0
- data/ext/couchbase/core/transactions/result.hxx +296 -0
- data/ext/couchbase/core/transactions/staged_mutation.cxx +416 -0
- data/ext/couchbase/core/transactions/staged_mutation.hxx +126 -0
- data/ext/couchbase/core/transactions/transaction_attempt.cxx +29 -0
- data/ext/couchbase/core/transactions/transaction_context.cxx +307 -0
- data/ext/couchbase/core/transactions/transaction_get_result.cxx +218 -0
- data/ext/couchbase/core/transactions/transaction_get_result.hxx +289 -0
- data/ext/couchbase/core/transactions/transaction_links.cxx +27 -0
- data/ext/couchbase/core/transactions/transaction_links.hxx +252 -0
- data/ext/couchbase/core/transactions/transaction_options.cxx +38 -0
- data/ext/couchbase/core/transactions/transactions.cxx +184 -0
- data/ext/couchbase/core/transactions/transactions_cleanup.cxx +592 -0
- data/ext/couchbase/core/transactions/transactions_config.cxx +81 -0
- data/ext/couchbase/core/transactions/uid_generator.cxx +27 -0
- data/ext/couchbase/core/transactions/uid_generator.hxx +29 -0
- data/ext/couchbase/core/transactions/utils.cxx +123 -0
- data/ext/couchbase/core/transactions/waitable_op_list.hxx +189 -0
- data/ext/couchbase/core/transactions.hxx +255 -0
- data/ext/couchbase/core/utils/binary.cxx +27 -0
- data/ext/couchbase/core/utils/binary.hxx +57 -0
- data/ext/couchbase/core/utils/byteswap.hxx +49 -0
- data/ext/couchbase/core/utils/connection_string.cxx +430 -0
- data/ext/couchbase/core/utils/connection_string.hxx +76 -0
- data/ext/couchbase/core/utils/crc32.hxx +56 -0
- data/ext/couchbase/core/utils/duration_parser.cxx +193 -0
- data/ext/couchbase/core/utils/duration_parser.hxx +45 -0
- data/ext/couchbase/core/utils/join_strings.hxx +65 -0
- data/ext/couchbase/core/utils/json.cxx +291 -0
- data/ext/couchbase/core/utils/json.hxx +43 -0
- data/ext/couchbase/core/utils/json_stream_control.hxx +32 -0
- data/ext/couchbase/core/utils/json_streaming_lexer.cxx +398 -0
- data/ext/couchbase/core/utils/json_streaming_lexer.hxx +60 -0
- data/ext/couchbase/core/utils/keyspace.hxx +55 -0
- data/ext/couchbase/core/utils/movable_function.hxx +121 -0
- data/ext/couchbase/core/utils/mutation_token.cxx +33 -0
- data/ext/couchbase/core/utils/mutation_token.hxx +29 -0
- data/ext/couchbase/core/utils/name_codec.hxx +41 -0
- data/ext/couchbase/core/utils/split_string.cxx +35 -0
- data/ext/couchbase/core/utils/split_string.hxx +27 -0
- data/ext/couchbase/core/utils/unsigned_leb128.hxx +183 -0
- data/ext/couchbase/core/utils/url_codec.cxx +405 -0
- data/ext/couchbase/core/utils/url_codec.hxx +72 -0
- data/ext/couchbase/core/view_on_error.hxx +27 -0
- data/ext/couchbase/core/view_query_options.cxx +72 -0
- data/ext/couchbase/core/view_query_options.hxx +78 -0
- data/ext/couchbase/core/view_scan_consistency.hxx +27 -0
- data/ext/couchbase/core/view_sort_order.hxx +23 -0
- data/ext/couchbase/core/wait_until_ready_options.hxx +52 -0
- data/ext/couchbase/couchbase/append_options.hxx +123 -0
- data/ext/couchbase/couchbase/behavior_options.hxx +79 -0
- data/ext/couchbase/couchbase/best_effort_retry_strategy.hxx +64 -0
- data/ext/couchbase/couchbase/binary_collection.hxx +327 -0
- data/ext/couchbase/couchbase/bucket.hxx +55 -494
- data/ext/couchbase/couchbase/build_query_index_options.hxx +99 -0
- data/ext/couchbase/couchbase/cas.hxx +74 -8
- data/ext/couchbase/couchbase/certificate_authenticator.hxx +39 -0
- data/ext/couchbase/couchbase/cluster.hxx +156 -370
- data/ext/couchbase/couchbase/cluster_options.hxx +315 -51
- data/ext/couchbase/couchbase/codec/binary_noop_serializer.hxx +47 -0
- data/ext/couchbase/couchbase/codec/codec_flags.hxx +145 -0
- data/ext/couchbase/couchbase/codec/default_json_transcoder.hxx +36 -0
- data/ext/couchbase/couchbase/codec/encoded_value.hxx +31 -0
- data/ext/couchbase/couchbase/codec/json_transcoder.hxx +49 -0
- data/ext/couchbase/couchbase/codec/raw_binary_transcoder.hxx +54 -0
- data/ext/couchbase/couchbase/codec/serializer_traits.hxx +31 -0
- data/ext/couchbase/couchbase/codec/tao_json_serializer.hxx +81 -0
- data/ext/couchbase/couchbase/codec/transcoder_traits.hxx +31 -0
- data/ext/couchbase/couchbase/collection.hxx +1031 -0
- data/ext/couchbase/couchbase/collection_query_index_manager.hxx +218 -0
- data/ext/couchbase/couchbase/common_durability_options.hxx +108 -0
- data/ext/couchbase/couchbase/common_options.hxx +112 -0
- data/ext/couchbase/couchbase/compression_options.hxx +65 -0
- data/ext/couchbase/couchbase/configuration_profile.hxx +44 -0
- data/ext/couchbase/couchbase/configuration_profiles_registry.hxx +61 -0
- data/ext/couchbase/couchbase/counter_result.hxx +73 -0
- data/ext/couchbase/couchbase/create_primary_query_index_options.hxx +166 -0
- data/ext/couchbase/couchbase/create_query_index_options.hxx +172 -0
- data/ext/couchbase/couchbase/decrement_options.hxx +166 -0
- data/ext/couchbase/couchbase/dns_options.hxx +65 -0
- data/ext/couchbase/couchbase/drop_primary_query_index_options.hxx +129 -0
- data/ext/couchbase/couchbase/drop_query_index_options.hxx +116 -0
- data/ext/couchbase/couchbase/durability_level.hxx +64 -0
- data/ext/couchbase/couchbase/error_codes.hxx +1223 -0
- data/ext/couchbase/couchbase/error_context.hxx +173 -0
- data/ext/couchbase/couchbase/exists_options.hxx +97 -0
- data/ext/couchbase/couchbase/exists_result.hxx +72 -0
- data/ext/couchbase/couchbase/expiry.hxx +55 -0
- data/ext/couchbase/couchbase/fail_fast_retry_strategy.hxx +37 -0
- data/ext/couchbase/couchbase/fmt/cas.hxx +37 -0
- data/ext/couchbase/couchbase/fmt/durability_level.hxx +52 -0
- data/ext/couchbase/couchbase/fmt/key_value_extended_error_info.hxx +46 -0
- data/ext/couchbase/couchbase/fmt/key_value_status_code.hxx +258 -0
- data/ext/couchbase/couchbase/fmt/mutation_token.hxx +38 -0
- data/ext/couchbase/couchbase/fmt/query_scan_consistency.hxx +46 -0
- data/ext/couchbase/couchbase/fmt/query_status.hxx +70 -0
- data/ext/couchbase/couchbase/fmt/retry_reason.hxx +103 -0
- data/ext/couchbase/couchbase/fmt/tls_verify_mode.hxx +46 -0
- data/ext/couchbase/couchbase/get_all_query_indexes_options.hxx +100 -0
- data/ext/couchbase/couchbase/get_all_replicas_options.hxx +102 -0
- data/ext/couchbase/couchbase/get_and_lock_options.hxx +94 -0
- data/ext/couchbase/couchbase/get_and_touch_options.hxx +94 -0
- data/ext/couchbase/couchbase/get_any_replica_options.hxx +93 -0
- data/ext/couchbase/couchbase/get_options.hxx +137 -0
- data/ext/couchbase/couchbase/get_replica_result.hxx +117 -0
- data/ext/couchbase/couchbase/get_result.hxx +126 -0
- data/ext/couchbase/couchbase/increment_options.hxx +166 -0
- data/ext/couchbase/couchbase/insert_options.hxx +136 -0
- data/ext/couchbase/couchbase/ip_protocol.hxx +27 -0
- data/ext/couchbase/couchbase/key_value_error_context.hxx +224 -0
- data/ext/couchbase/couchbase/key_value_error_map_attribute.hxx +124 -0
- data/ext/couchbase/couchbase/key_value_error_map_info.hxx +138 -0
- data/ext/couchbase/couchbase/key_value_extended_error_info.hxx +86 -0
- data/ext/couchbase/couchbase/key_value_status_code.hxx +107 -0
- data/ext/couchbase/couchbase/lookup_in_options.hxx +119 -0
- data/ext/couchbase/couchbase/lookup_in_result.hxx +255 -0
- data/ext/couchbase/couchbase/lookup_in_specs.hxx +147 -0
- data/ext/couchbase/couchbase/manager_error_context.hxx +136 -0
- data/ext/couchbase/couchbase/metrics/meter.hxx +16 -0
- data/ext/couchbase/couchbase/metrics/otel_meter.hxx +131 -0
- data/ext/couchbase/couchbase/metrics_options.hxx +71 -0
- data/ext/couchbase/couchbase/mutate_in_options.hxx +233 -0
- data/ext/couchbase/couchbase/mutate_in_result.hxx +173 -0
- data/ext/couchbase/couchbase/mutate_in_specs.hxx +528 -0
- data/ext/couchbase/couchbase/mutation_result.hxx +73 -0
- data/ext/couchbase/couchbase/mutation_state.hxx +73 -0
- data/ext/couchbase/couchbase/mutation_token.hxx +93 -6
- data/ext/couchbase/couchbase/network_options.hxx +114 -0
- data/ext/couchbase/couchbase/password_authenticator.hxx +47 -0
- data/ext/couchbase/couchbase/persist_to.hxx +73 -0
- data/ext/couchbase/couchbase/prepend_options.hxx +124 -0
- data/ext/couchbase/couchbase/query_error_context.hxx +143 -0
- data/ext/couchbase/couchbase/query_index_manager.hxx +254 -0
- data/ext/couchbase/couchbase/query_meta_data.hxx +171 -0
- data/ext/couchbase/couchbase/query_metrics.hxx +179 -0
- data/ext/couchbase/couchbase/query_options.hxx +575 -0
- data/ext/couchbase/couchbase/query_profile.hxx +52 -0
- data/ext/couchbase/couchbase/query_result.hxx +102 -0
- data/ext/couchbase/couchbase/query_scan_consistency.hxx +25 -2
- data/ext/couchbase/couchbase/query_status.hxx +42 -0
- data/ext/couchbase/couchbase/query_warning.hxx +115 -0
- data/ext/couchbase/couchbase/remove_options.hxx +123 -0
- data/ext/couchbase/couchbase/replace_options.hxx +184 -0
- data/ext/couchbase/couchbase/replicate_to.hxx +55 -0
- data/ext/couchbase/couchbase/result.hxx +66 -0
- data/ext/couchbase/couchbase/retry_action.hxx +41 -0
- data/ext/couchbase/couchbase/retry_reason.hxx +107 -0
- data/ext/couchbase/couchbase/retry_request.hxx +39 -0
- data/ext/couchbase/couchbase/retry_strategy.hxx +35 -0
- data/ext/couchbase/couchbase/scope.hxx +149 -0
- data/ext/couchbase/couchbase/security_options.hxx +68 -0
- data/ext/couchbase/couchbase/store_semantics.hxx +63 -0
- data/ext/couchbase/couchbase/subdoc/array_add_unique.hxx +105 -0
- data/ext/couchbase/couchbase/subdoc/array_append.hxx +89 -0
- data/ext/couchbase/couchbase/subdoc/array_insert.hxx +90 -0
- data/ext/couchbase/couchbase/subdoc/array_prepend.hxx +90 -0
- data/ext/couchbase/couchbase/subdoc/count.hxx +70 -0
- data/ext/couchbase/couchbase/subdoc/counter.hxx +88 -0
- data/ext/couchbase/couchbase/subdoc/exists.hxx +70 -0
- data/ext/couchbase/couchbase/subdoc/fwd/command.hxx +25 -0
- data/ext/couchbase/couchbase/subdoc/fwd/command_bundle.hxx +25 -0
- data/ext/couchbase/couchbase/subdoc/get.hxx +78 -0
- data/ext/couchbase/couchbase/subdoc/insert.hxx +105 -0
- data/ext/couchbase/couchbase/subdoc/lookup_in_macro.hxx +66 -0
- data/ext/couchbase/couchbase/subdoc/mutate_in_macro.hxx +54 -0
- data/ext/couchbase/couchbase/subdoc/remove.hxx +70 -0
- data/ext/couchbase/couchbase/subdoc/replace.hxx +89 -0
- data/ext/couchbase/couchbase/subdoc/upsert.hxx +105 -0
- data/ext/couchbase/couchbase/subdocument_error_context.hxx +144 -0
- data/ext/couchbase/couchbase/timeout_options.hxx +141 -0
- data/ext/couchbase/couchbase/tls_verify_mode.hxx +26 -0
- data/ext/couchbase/couchbase/touch_options.hxx +94 -0
- data/ext/couchbase/couchbase/tracing/otel_tracer.hxx +85 -0
- data/ext/couchbase/couchbase/tracing/request_tracer.hxx +17 -2
- data/ext/couchbase/couchbase/tracing_options.hxx +174 -0
- data/ext/couchbase/couchbase/transaction_error_context.hxx +49 -0
- data/ext/couchbase/couchbase/transaction_op_error_context.hxx +76 -0
- data/ext/couchbase/couchbase/transactions/async_attempt_context.hxx +78 -0
- data/ext/couchbase/couchbase/transactions/attempt_context.hxx +79 -0
- data/ext/couchbase/couchbase/transactions/transaction_get_result.hxx +133 -0
- data/ext/couchbase/couchbase/transactions/transaction_keyspace.hxx +101 -0
- data/ext/couchbase/couchbase/transactions/transaction_options.hxx +115 -0
- data/ext/couchbase/couchbase/transactions/transaction_query_options.hxx +159 -0
- data/ext/couchbase/couchbase/transactions/transaction_query_result.hxx +36 -0
- data/ext/couchbase/couchbase/transactions/transaction_result.hxx +34 -0
- data/ext/couchbase/couchbase/transactions/transactions_cleanup_config.hxx +140 -0
- data/ext/couchbase/couchbase/transactions/transactions_config.hxx +255 -0
- data/ext/couchbase/couchbase/transactions/transactions_query_config.hxx +61 -0
- data/ext/couchbase/couchbase/transactions.hxx +43 -0
- data/ext/couchbase/couchbase/unlock_options.hxx +97 -0
- data/ext/couchbase/couchbase/upsert_options.hxx +158 -0
- data/ext/couchbase/couchbase/wan_development_configuration_profile.hxx +44 -0
- data/ext/couchbase/couchbase/watch_query_indexes_options.hxx +115 -0
- data/ext/couchbase/test/CMakeLists.txt +19 -0
- data/ext/couchbase/test/another_simple_object.hxx +50 -0
- data/ext/couchbase/test/benchmark_integration_get.cxx +5 -6
- data/ext/couchbase/test/profile.hxx +62 -0
- data/ext/couchbase/test/simple_object.hxx +53 -0
- data/ext/couchbase/test/test_helper.hxx +8 -0
- data/ext/couchbase/test/test_helper_integration.hxx +1 -1
- data/ext/couchbase/test/test_integration_analytics.cxx +261 -0
- data/ext/couchbase/test/test_integration_arithmetic.cxx +119 -20
- data/ext/couchbase/test/test_integration_binary_operations.cxx +26 -39
- data/ext/couchbase/test/test_integration_collections.cxx +43 -45
- data/ext/couchbase/test/test_integration_connect.cxx +35 -25
- data/ext/couchbase/test/test_integration_crud.cxx +403 -187
- data/ext/couchbase/test/test_integration_diagnostics.cxx +119 -48
- data/ext/couchbase/test/test_integration_durability.cxx +171 -26
- data/ext/couchbase/test/test_integration_management.cxx +1474 -849
- data/ext/couchbase/test/test_integration_meter.cxx +182 -0
- data/ext/couchbase/test/test_integration_query.cxx +266 -86
- data/ext/couchbase/test/test_integration_range_scan.cxx +1067 -0
- data/ext/couchbase/test/test_integration_read_replica.cxx +232 -0
- data/ext/couchbase/test/test_integration_subdoc.cxx +337 -306
- data/ext/couchbase/test/test_integration_tracer.cxx +306 -0
- data/ext/couchbase/test/test_integration_transcoders.cxx +588 -0
- data/ext/couchbase/test/test_transaction_transaction_context.cxx +550 -0
- data/ext/couchbase/test/test_transaction_transaction_public_async_api.cxx +393 -0
- data/ext/couchbase/test/test_transaction_transaction_public_blocking_api.cxx +653 -0
- data/ext/couchbase/test/test_transaction_transaction_simple.cxx +899 -0
- data/ext/couchbase/test/test_transaction_transaction_simple_async.cxx +972 -0
- data/ext/couchbase/test/test_unit_config_profiles.cxx +132 -0
- data/ext/couchbase/test/test_unit_connection_string.cxx +170 -165
- data/ext/couchbase/test/test_unit_json_streaming_lexer.cxx +129 -9
- data/ext/couchbase/test/test_unit_json_transcoder.cxx +212 -0
- data/ext/couchbase/test/test_unit_jsonsl.cxx +1 -1
- data/ext/couchbase/test/test_unit_options.cxx +57 -0
- data/ext/couchbase/test/test_unit_transaction_logging.cxx +130 -0
- data/ext/couchbase/test/test_unit_transaction_utils.cxx +261 -0
- data/ext/couchbase/test/test_unit_utils.cxx +166 -29
- data/ext/couchbase/test/test_unit_waitable_op_list.cxx +132 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/any_io_executor.hpp +4 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/append.hpp +78 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/as_tuple.hpp +139 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_allocator.hpp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_cancellation_slot.hpp +4 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/associated_executor.hpp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/associator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/async_result.hpp +357 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/awaitable.hpp +10 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +208 -115
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +28 -16
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_file.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_io_object.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_random_access_file.hpp +51 -27
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_raw_socket.hpp +210 -117
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_readable_pipe.hpp +127 -15
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +84 -47
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_serial_port.hpp +120 -27
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_signal_set.hpp +36 -14
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket.hpp +50 -26
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +295 -150
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_file.hpp +51 -27
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_socket.hpp +153 -84
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +28 -16
- data/ext/couchbase/third_party/asio/asio/include/asio/basic_writable_pipe.hpp +127 -15
- data/ext/couchbase/third_party/asio/asio/include/asio/bind_allocator.hpp +722 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/bind_cancellation_slot.hpp +11 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/bind_executor.hpp +36 -20
- data/ext/couchbase/third_party/asio/asio/include/asio/buffer.hpp +222 -42
- data/ext/couchbase/third_party/asio/asio/include/asio/buffer_registration.hpp +2 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream.hpp +38 -6
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream.hpp +34 -5
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream.hpp +38 -6
- data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/buffers_iterator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_signal.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_state.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_type.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/co_spawn.hpp +33 -9
- data/ext/couchbase/third_party/asio/asio/include/asio/completion_condition.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/compose.hpp +682 -12
- data/ext/couchbase/third_party/asio/asio/include/asio/connect.hpp +132 -61
- data/ext/couchbase/third_party/asio/asio/include/asio/connect_pipe.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/coroutine.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/deadline_timer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/defer.hpp +128 -42
- data/ext/couchbase/third_party/asio/asio/include/asio/deferred.hpp +675 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detached.hpp +6 -5
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/array.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/array_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/assert.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/atomic_count.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/bind_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/call_stack.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/completion_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/config.hpp +201 -11
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstddef.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstdint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/dependent_type.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/exception.hpp +40 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_function.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/functional.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/future.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/global.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_work.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/hash_map.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +9 -9
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +4 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +10 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.ipp +8 -7
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +21 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +6 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +3 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +36 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +28 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +126 -121
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/thread_context.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +13 -9
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +21 -7
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +94 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +9 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +11 -11
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_control.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +11 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +26 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_file_service.hpp +12 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_service.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +4 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service.hpp +31 -13
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_wait_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/memory.hpp +17 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/noncopyable.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_global.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/object_pool.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/op_queue.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/pop_options.hpp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_global.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_serial_port_service.hpp +2 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/push_options.hpp +11 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +26 -7
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +38 -12
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +2 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_task.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_reactor.hpp +23 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/service_registry.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_init.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_op.hpp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +43 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_holder.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_ops.hpp +37 -45
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_option.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_types.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/source_location.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/static_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_global.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/string_view.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_group.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_error.hpp +18 -9
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_exception.hpp +7 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/type_traits.hpp +9 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/utility.hpp +84 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_event.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_global.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_file_service.hpp +8 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +29 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +6 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +6 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +2 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +5 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +32 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +6 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +3 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wince_thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/winsock_init.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +4 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/dispatch.hpp +126 -42
- data/ext/couchbase/third_party/asio/asio/include/asio/error.hpp +36 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/error_code.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/allocator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/any_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bad_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/connect.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/context_as.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/execute.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/mapping.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/occupancy.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/operation_state.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/prefer_only.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/relationship.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/schedule.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/scheduler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/sender.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_done.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_value.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/start.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution/submit.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/execution_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/executor_work_guard.hpp +100 -32
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/append.hpp +6 -41
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_single.hpp +6 -5
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_tuple.hpp +6 -101
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/awaitable_operators.hpp +14 -14
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_channel.hpp +78 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +69 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/cancellation_condition.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_traits.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/co_spawn.hpp +12 -16
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/concurrent_channel.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro.hpp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro_traits.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/deferred.hpp +6 -575
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_handler.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_message.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_operation.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_payload.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +2 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/completion_handler_erasure.hpp +82 -46
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/has_signature.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +6 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/partial_promise.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_single.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/channel_error.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/coro.hpp +47 -56
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/parallel_group.hpp +14 -28
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/promise.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/use_coro.hpp +3 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/parallel_group.hpp +27 -37
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/prepend.hpp +6 -41
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/promise.hpp +23 -405
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/use_coro.hpp +5 -5
- data/ext/couchbase/third_party/asio/asio/include/asio/file_base.hpp +9 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/high_resolution_timer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/any_io_executor.ipp +6 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/append.hpp +216 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/as_tuple.hpp +244 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/awaitable.hpp +400 -5
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +13 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +13 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/cancellation_signal.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/co_spawn.hpp +71 -7
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect.hpp +63 -31
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.ipp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/defer.hpp +23 -13
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/deferred.hpp +95 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/detached.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/dispatch.hpp +23 -13
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/error.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/error_code.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.hpp +9 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/post.hpp +23 -13
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/prepend.hpp +216 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read.hpp +97 -51
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_at.hpp +51 -31
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_until.hpp +119 -59
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/redirect_error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/spawn.hpp +1321 -277
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/src.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +18 -8
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_future.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/write.hpp +95 -50
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/write_at.hpp +53 -31
- data/ext/couchbase/third_party/asio/asio/include/asio/io_context.hpp +25 -38
- data/ext/couchbase/third_party/asio/asio/include/asio/io_context_strand.hpp +15 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/io_service.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/io_service_strand.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4.hpp +75 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6.hpp +35 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +130 -64
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/icmp.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/multicast.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v4.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v6.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/tcp.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/udp.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/unicast.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ip/v6_only.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/is_applicable_property.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/is_contiguous_iterator.hpp +45 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/is_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/is_read_buffered.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/is_write_buffered.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/connect_pair.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/local/stream_protocol.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/multiple_exceptions.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/packaged_task.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/placeholders.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +74 -13
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +95 -27
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/post.hpp +128 -42
- data/ext/couchbase/third_party/asio/asio/include/asio/prefer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/prepend.hpp +78 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/query.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/random_access_file.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/read.hpp +245 -153
- data/ext/couchbase/third_party/asio/asio/include/asio/read_at.hpp +110 -53
- data/ext/couchbase/third_party/asio/asio/include/asio/read_until.hpp +301 -166
- data/ext/couchbase/third_party/asio/asio/include/asio/readable_pipe.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/recycling_allocator.hpp +138 -0
- data/ext/couchbase/third_party/asio/asio/include/asio/redirect_error.hpp +3 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/registered_buffer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/require.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/require_concept.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/serial_port.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/serial_port_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/signal_set.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/socket_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/spawn.hpp +647 -87
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context.hpp +4 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +4 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +19 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +7 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/io.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +16 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.ipp +140 -64
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/error.ipp +25 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/src.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream.hpp +154 -53
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream_base.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ssl.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/static_thread_pool.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/steady_timer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/strand.hpp +12 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/stream_file.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/streambuf.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/system_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/system_error.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/system_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/system_timer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/this_coro.hpp +4 -4
- data/ext/couchbase/third_party/asio/asio/include/asio/thread.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/thread_pool.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/time_traits.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_query.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_free.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_member.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/buffer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/internet.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/io_context.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/net.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/netfwd.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/socket.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/ts/timer.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/unyield.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/use_awaitable.hpp +4 -3
- data/ext/couchbase/third_party/asio/asio/include/asio/use_future.hpp +10 -7
- data/ext/couchbase/third_party/asio/asio/include/asio/uses_executor.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/version.hpp +2 -2
- data/ext/couchbase/third_party/asio/asio/include/asio/wait_traits.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +70 -12
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +100 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +98 -29
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +95 -28
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/object_handle.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/windows/stream_handle.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/writable_pipe.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio/write.hpp +242 -150
- data/ext/couchbase/third_party/asio/asio/include/asio/write_at.hpp +112 -53
- data/ext/couchbase/third_party/asio/asio/include/asio/yield.hpp +1 -1
- data/ext/couchbase/third_party/asio/asio/include/asio.hpp +8 -1
- data/ext/couchbase/third_party/expected/COPYING +121 -0
- data/ext/couchbase/third_party/expected/include/tl/expected.hpp +2571 -0
- data/ext/couchbase/third_party/json/CMakeLists.txt +3 -0
- data/ext/couchbase/third_party/json/external/PEGTL/LICENSE +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/apply_mode.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/argv_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/ascii.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/buffer_input.hpp +2 -2
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_state.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_states.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_control.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_state.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_states.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/config.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/abnf.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/add_state.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/alphabet.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/control_action.hpp +13 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/coverage.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/forward.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/function.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/http.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/if_then.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/instantiate.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/integer.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/iri.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp +17 -8
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/peg.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/predicates.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/proto3.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/raw_string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/state_control.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/to_string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/trace.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint16.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint32.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint64.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/unescape.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uri.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf16.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf32.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/cstream_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/demangle.hpp +19 -11
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/disable_action.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_success.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/enable_action.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol_pair.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/file_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/any.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0_single.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply_single.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/at.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bof.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump_help.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bytes.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/control.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_false.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/disable.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/discard.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable_control.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eof.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eolf.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/failure.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_reader.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/filesystem.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply0.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_match.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_unwind.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/identifier.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_apply.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must_else.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_then_else.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/input_pair.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istream_reader.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istring.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/iterator.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_eol.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_must.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/marker.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/minus.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/must.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/not_at.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/one.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/opt.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad_opt.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/path_to_string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_char.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/plus.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/raise.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/range.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/ranges.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rematch.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_opt.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/require.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/result_on_found.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rules.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/seq.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/sor.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star_must.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/state.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/string.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/success.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/until.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/istream_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/match.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/memory_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/mmap_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/must_if.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/normal.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/nothing.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse_error.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/position.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/read_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply0.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rewind_mode.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rules.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/string_input.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/tracking_mode.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/type_list.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/utf8.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/version.hpp +2 -2
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/visit.hpp +1 -1
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl.hpp +1 -1
- data/ext/couchbase/third_party/json/include/tao/json/binary_view.hpp +14 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/from_nlohmann.hpp +67 -0
- data/ext/couchbase/third_party/json/include/tao/json/contrib/to_nlohmann.hpp +122 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/capture.hpp +482 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/from_value.hpp +3 -3
- data/ext/couchbase/third_party/json/include/tao/json/events/produce.hpp +3 -95
- data/ext/couchbase/third_party/json/include/tao/json/events/set_value.hpp +142 -0
- data/ext/couchbase/third_party/json/include/tao/json/events/to_value.hpp +5 -112
- data/ext/couchbase/third_party/json/include/tao/json/events/virtualize.hpp +27 -0
- data/ext/couchbase/third_party/json/include/tao/json/events.hpp +3 -0
- data/ext/couchbase/third_party/json/include/tao/json/traits.hpp +1 -1
- data/ext/couchbase.cxx +2391 -1597
- data/ext/extconf.rb +2 -0
- data/ext/revisions.rb +2 -2
- data/lib/couchbase/bucket.rb +2 -2
- data/lib/couchbase/cluster.rb +12 -6
- data/lib/couchbase/cluster_registry.rb +44 -0
- data/lib/couchbase/collection.rb +61 -35
- data/lib/couchbase/collection_options.rb +51 -95
- data/lib/couchbase/config_profiles.rb +55 -0
- data/lib/couchbase/logger.rb +44 -1
- data/lib/couchbase/management/analytics_index_manager.rb +12 -12
- data/lib/couchbase/management/query_index_manager.rb +5 -7
- data/lib/couchbase/management/user_manager.rb +19 -0
- data/lib/couchbase/options.rb +404 -56
- data/lib/couchbase/query_options.rb +4 -4
- data/lib/couchbase/scope.rb +3 -3
- data/lib/couchbase/search_options.rb +7 -8
- data/lib/couchbase/utils/generic_logger_adapter.rb +38 -0
- data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
- data/lib/couchbase/utils/time.rb +6 -6
- data/lib/couchbase/version.rb +4 -18
- metadata +880 -464
- data/ext/couchbase/couchbase/analytics_scan_consistency.hxx +0 -26
- data/ext/couchbase/couchbase/capella_ca.hxx +0 -43
- data/ext/couchbase/couchbase/cas_fmt.hxx +0 -37
- data/ext/couchbase/couchbase/cluster.cxx +0 -111
- data/ext/couchbase/couchbase/cluster_options.cxx +0 -45
- data/ext/couchbase/couchbase/crypto/CMakeLists.txt +0 -12
- data/ext/couchbase/couchbase/crypto/cbcrypto.cc +0 -887
- data/ext/couchbase/couchbase/crypto/cbcrypto.h +0 -88
- data/ext/couchbase/couchbase/design_document_namespace.hxx +0 -26
- data/ext/couchbase/couchbase/design_document_namespace_fmt.hxx +0 -47
- data/ext/couchbase/couchbase/diagnostics.hxx +0 -97
- data/ext/couchbase/couchbase/diagnostics_fmt.hxx +0 -113
- data/ext/couchbase/couchbase/diagnostics_json.hxx +0 -100
- data/ext/couchbase/couchbase/document_id.cxx +0 -89
- data/ext/couchbase/couchbase/document_id.hxx +0 -102
- data/ext/couchbase/couchbase/document_id_fmt.hxx +0 -37
- data/ext/couchbase/couchbase/error_context/analytics.hxx +0 -51
- data/ext/couchbase/couchbase/error_context/http.hxx +0 -47
- data/ext/couchbase/couchbase/error_context/key_value.hxx +0 -50
- data/ext/couchbase/couchbase/error_context/query.hxx +0 -51
- data/ext/couchbase/couchbase/error_context/search.hxx +0 -50
- data/ext/couchbase/couchbase/error_context/view.hxx +0 -51
- data/ext/couchbase/couchbase/errors.hxx +0 -1038
- data/ext/couchbase/couchbase/io/CMakeLists.txt +0 -12
- data/ext/couchbase/couchbase/io/dns_client.hxx +0 -217
- data/ext/couchbase/couchbase/io/dns_codec.hxx +0 -206
- data/ext/couchbase/couchbase/io/dns_config.hxx +0 -115
- data/ext/couchbase/couchbase/io/dns_message.hxx +0 -555
- data/ext/couchbase/couchbase/io/http_command.hxx +0 -174
- data/ext/couchbase/couchbase/io/http_context.hxx +0 -40
- data/ext/couchbase/couchbase/io/http_message.hxx +0 -116
- data/ext/couchbase/couchbase/io/http_parser.cxx +0 -141
- data/ext/couchbase/couchbase/io/http_parser.hxx +0 -55
- data/ext/couchbase/couchbase/io/http_session.hxx +0 -544
- data/ext/couchbase/couchbase/io/http_session_manager.hxx +0 -377
- data/ext/couchbase/couchbase/io/http_traits.hxx +0 -30
- data/ext/couchbase/couchbase/io/ip_protocol.hxx +0 -28
- data/ext/couchbase/couchbase/io/mcbp_command.hxx +0 -300
- data/ext/couchbase/couchbase/io/mcbp_context.hxx +0 -39
- data/ext/couchbase/couchbase/io/mcbp_message.cxx +0 -39
- data/ext/couchbase/couchbase/io/mcbp_message.hxx +0 -55
- data/ext/couchbase/couchbase/io/mcbp_parser.cxx +0 -86
- data/ext/couchbase/couchbase/io/mcbp_parser.hxx +0 -45
- data/ext/couchbase/couchbase/io/mcbp_session.hxx +0 -1317
- data/ext/couchbase/couchbase/io/mcbp_traits.hxx +0 -30
- data/ext/couchbase/couchbase/io/query_cache.hxx +0 -61
- data/ext/couchbase/couchbase/io/retry_action.hxx +0 -30
- data/ext/couchbase/couchbase/io/retry_context.hxx +0 -38
- data/ext/couchbase/couchbase/io/retry_orchestrator.hxx +0 -112
- data/ext/couchbase/couchbase/io/retry_reason.hxx +0 -158
- data/ext/couchbase/couchbase/io/retry_reason_fmt.hxx +0 -103
- data/ext/couchbase/couchbase/io/retry_strategy.hxx +0 -152
- data/ext/couchbase/couchbase/io/streams.hxx +0 -253
- data/ext/couchbase/couchbase/json_string.hxx +0 -48
- data/ext/couchbase/couchbase/logger/CMakeLists.txt +0 -9
- data/ext/couchbase/couchbase/logger/configuration.hxx +0 -52
- data/ext/couchbase/couchbase/logger/custom_rotating_file_sink.cxx +0 -157
- data/ext/couchbase/couchbase/logger/logger.cxx +0 -337
- data/ext/couchbase/couchbase/logger/logger.hxx +0 -235
- data/ext/couchbase/couchbase/management/CMakeLists.txt +0 -13
- data/ext/couchbase/couchbase/management/analytics_dataset.hxx +0 -30
- data/ext/couchbase/couchbase/management/analytics_index.hxx +0 -30
- data/ext/couchbase/couchbase/management/analytics_link.hxx +0 -22
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.cxx +0 -67
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.hxx +0 -76
- data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external_json.hxx +0 -52
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.cxx +0 -104
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.hxx +0 -107
- data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote_json.hxx +0 -63
- data/ext/couchbase/couchbase/management/analytics_link_s3_external.cxx +0 -57
- data/ext/couchbase/couchbase/management/analytics_link_s3_external.hxx +0 -69
- data/ext/couchbase/couchbase/management/analytics_link_s3_external_json.hxx +0 -47
- data/ext/couchbase/couchbase/management/bucket_settings.hxx +0 -134
- data/ext/couchbase/couchbase/management/bucket_settings_json.hxx +0 -123
- data/ext/couchbase/couchbase/management/design_document.hxx +0 -41
- data/ext/couchbase/couchbase/management/eventing_function.hxx +0 -188
- data/ext/couchbase/couchbase/management/eventing_function_json.hxx +0 -212
- data/ext/couchbase/couchbase/management/eventing_status.hxx +0 -84
- data/ext/couchbase/couchbase/management/eventing_status_json.hxx +0 -77
- data/ext/couchbase/couchbase/management/rbac.hxx +0 -77
- data/ext/couchbase/couchbase/management/rbac_fmt.hxx +0 -49
- data/ext/couchbase/couchbase/management/rbac_json.hxx +0 -179
- data/ext/couchbase/couchbase/management/search_index.hxx +0 -38
- data/ext/couchbase/couchbase/management/search_index_json.hxx +0 -58
- data/ext/couchbase/couchbase/meta/CMakeLists.txt +0 -15
- data/ext/couchbase/couchbase/meta/version.cxx +0 -181
- data/ext/couchbase/couchbase/meta/version.hxx +0 -45
- data/ext/couchbase/couchbase/metrics/CMakeLists.txt +0 -11
- data/ext/couchbase/couchbase/metrics/logging_meter.cxx +0 -194
- data/ext/couchbase/couchbase/metrics/logging_meter.hxx +0 -74
- data/ext/couchbase/couchbase/metrics/logging_meter_options.hxx +0 -28
- data/ext/couchbase/couchbase/metrics/noop_meter.hxx +0 -47
- data/ext/couchbase/couchbase/mutation_token_fmt.hxx +0 -37
- data/ext/couchbase/couchbase/operations/CMakeLists.txt +0 -35
- data/ext/couchbase/couchbase/operations/document_analytics.cxx +0 -195
- data/ext/couchbase/couchbase/operations/document_analytics.hxx +0 -92
- data/ext/couchbase/couchbase/operations/document_append.cxx +0 -46
- data/ext/couchbase/couchbase/operations/document_append.hxx +0 -63
- data/ext/couchbase/couchbase/operations/document_decrement.cxx +0 -57
- data/ext/couchbase/couchbase/operations/document_decrement.hxx +0 -67
- data/ext/couchbase/couchbase/operations/document_exists.cxx +0 -49
- data/ext/couchbase/couchbase/operations/document_exists.hxx +0 -61
- data/ext/couchbase/couchbase/operations/document_get.cxx +0 -44
- data/ext/couchbase/couchbase/operations/document_get.hxx +0 -53
- data/ext/couchbase/couchbase/operations/document_get_and_lock.cxx +0 -45
- data/ext/couchbase/couchbase/operations/document_get_and_lock.hxx +0 -54
- data/ext/couchbase/couchbase/operations/document_get_and_touch.cxx +0 -45
- data/ext/couchbase/couchbase/operations/document_get_and_touch.hxx +0 -54
- data/ext/couchbase/couchbase/operations/document_get_projected.cxx +0 -227
- data/ext/couchbase/couchbase/operations/document_get_projected.hxx +0 -58
- data/ext/couchbase/couchbase/operations/document_increment.cxx +0 -57
- data/ext/couchbase/couchbase/operations/document_increment.hxx +0 -67
- data/ext/couchbase/couchbase/operations/document_insert.cxx +0 -48
- data/ext/couchbase/couchbase/operations/document_insert.hxx +0 -65
- data/ext/couchbase/couchbase/operations/document_lookup_in.cxx +0 -81
- data/ext/couchbase/couchbase/operations/document_lookup_in.hxx +0 -64
- data/ext/couchbase/couchbase/operations/document_mutate_in.cxx +0 -104
- data/ext/couchbase/couchbase/operations/document_mutate_in.hxx +0 -82
- data/ext/couchbase/couchbase/operations/document_prepend.cxx +0 -46
- data/ext/couchbase/couchbase/operations/document_prepend.hxx +0 -63
- data/ext/couchbase/couchbase/operations/document_query.cxx +0 -370
- data/ext/couchbase/couchbase/operations/document_query.hxx +0 -123
- data/ext/couchbase/couchbase/operations/document_remove.cxx +0 -46
- data/ext/couchbase/couchbase/operations/document_remove.hxx +0 -63
- data/ext/couchbase/couchbase/operations/document_replace.cxx +0 -52
- data/ext/couchbase/couchbase/operations/document_replace.hxx +0 -67
- data/ext/couchbase/couchbase/operations/document_search.cxx +0 -311
- data/ext/couchbase/couchbase/operations/document_search.hxx +0 -153
- data/ext/couchbase/couchbase/operations/document_touch.cxx +0 -43
- data/ext/couchbase/couchbase/operations/document_touch.hxx +0 -52
- data/ext/couchbase/couchbase/operations/document_unlock.cxx +0 -43
- data/ext/couchbase/couchbase/operations/document_unlock.hxx +0 -52
- data/ext/couchbase/couchbase/operations/document_upsert.cxx +0 -52
- data/ext/couchbase/couchbase/operations/document_upsert.hxx +0 -66
- data/ext/couchbase/couchbase/operations/document_view.cxx +0 -183
- data/ext/couchbase/couchbase/operations/document_view.hxx +0 -97
- data/ext/couchbase/couchbase/operations/http_noop.cxx +0 -60
- data/ext/couchbase/couchbase/operations/http_noop.hxx +0 -48
- data/ext/couchbase/couchbase/operations/management/CMakeLists.txt +0 -79
- data/ext/couchbase/couchbase/operations/management/analytics.hxx +0 -34
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.cxx +0 -94
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.hxx +0 -57
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.cxx +0 -83
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.hxx +0 -54
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.cxx +0 -80
- data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.cxx +0 -82
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.cxx +0 -82
- data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.cxx +0 -70
- data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/analytics_index_create.cxx +0 -106
- data/ext/couchbase/couchbase/operations/management/analytics_index_create.hxx +0 -56
- data/ext/couchbase/couchbase/operations/management/analytics_index_drop.cxx +0 -90
- data/ext/couchbase/couchbase/operations/management/analytics_index_drop.hxx +0 -55
- data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.cxx +0 -80
- data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/analytics_link_connect.cxx +0 -82
- data/ext/couchbase/couchbase/operations/management/analytics_link_connect.hxx +0 -57
- data/ext/couchbase/couchbase/operations/management/analytics_link_create.cxx +0 -87
- data/ext/couchbase/couchbase/operations/management/analytics_link_create.hxx +0 -77
- data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.cxx +0 -80
- data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.hxx +0 -56
- data/ext/couchbase/couchbase/operations/management/analytics_link_drop.cxx +0 -103
- data/ext/couchbase/couchbase/operations/management/analytics_link_drop.hxx +0 -56
- data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.cxx +0 -130
- data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.hxx +0 -63
- data/ext/couchbase/couchbase/operations/management/analytics_link_replace.cxx +0 -87
- data/ext/couchbase/couchbase/operations/management/analytics_link_replace.hxx +0 -78
- data/ext/couchbase/couchbase/operations/management/analytics_link_utils.hxx +0 -37
- data/ext/couchbase/couchbase/operations/management/analytics_problem.hxx +0 -30
- data/ext/couchbase/couchbase/operations/management/bucket.hxx +0 -25
- data/ext/couchbase/couchbase/operations/management/bucket_create.cxx +0 -171
- data/ext/couchbase/couchbase/operations/management/bucket_create.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/bucket_describe.cxx +0 -67
- data/ext/couchbase/couchbase/operations/management/bucket_describe.hxx +0 -61
- data/ext/couchbase/couchbase/operations/management/bucket_drop.cxx +0 -52
- data/ext/couchbase/couchbase/operations/management/bucket_drop.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/bucket_flush.cxx +0 -59
- data/ext/couchbase/couchbase/operations/management/bucket_flush.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/bucket_get.cxx +0 -59
- data/ext/couchbase/couchbase/operations/management/bucket_get.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/bucket_get_all.cxx +0 -59
- data/ext/couchbase/couchbase/operations/management/bucket_get_all.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/bucket_update.cxx +0 -130
- data/ext/couchbase/couchbase/operations/management/bucket_update.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/cluster_describe.cxx +0 -90
- data/ext/couchbase/couchbase/operations/management/cluster_describe.hxx +0 -72
- data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.cxx +0 -44
- data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.hxx +0 -48
- data/ext/couchbase/couchbase/operations/management/collection_create.cxx +0 -83
- data/ext/couchbase/couchbase/operations/management/collection_create.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/collection_drop.cxx +0 -73
- data/ext/couchbase/couchbase/operations/management/collection_drop.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/collections.hxx +0 -25
- data/ext/couchbase/couchbase/operations/management/collections_manifest_get.cxx +0 -40
- data/ext/couchbase/couchbase/operations/management/collections_manifest_get.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/error_utils.cxx +0 -265
- data/ext/couchbase/couchbase/operations/management/error_utils.hxx +0 -48
- data/ext/couchbase/couchbase/operations/management/eventing.hxx +0 -28
- data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/eventing_drop_function.cxx +0 -57
- data/ext/couchbase/couchbase/operations/management/eventing_drop_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.cxx +0 -64
- data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/eventing_get_function.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_get_function.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/eventing_get_status.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_get_status.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/eventing_pause_function.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_pause_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/eventing_problem.hxx +0 -31
- data/ext/couchbase/couchbase/operations/management/eventing_resume_function.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_resume_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.cxx +0 -56
- data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.cxx +0 -341
- data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/freeform.cxx +0 -55
- data/ext/couchbase/couchbase/operations/management/freeform.hxx +0 -55
- data/ext/couchbase/couchbase/operations/management/group_drop.cxx +0 -51
- data/ext/couchbase/couchbase/operations/management/group_drop.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/group_get.cxx +0 -60
- data/ext/couchbase/couchbase/operations/management/group_get.hxx +0 -50
- data/ext/couchbase/couchbase/operations/management/group_get_all.cxx +0 -58
- data/ext/couchbase/couchbase/operations/management/group_get_all.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/group_upsert.cxx +0 -96
- data/ext/couchbase/couchbase/operations/management/group_upsert.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/query.hxx +0 -23
- data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.cxx +0 -88
- data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.hxx +0 -61
- data/ext/couchbase/couchbase/operations/management/query_index_create.cxx +0 -149
- data/ext/couchbase/couchbase/operations/management/query_index_create.hxx +0 -65
- data/ext/couchbase/couchbase/operations/management/query_index_drop.cxx +0 -128
- data/ext/couchbase/couchbase/operations/management/query_index_drop.hxx +0 -61
- data/ext/couchbase/couchbase/operations/management/query_index_get_all.cxx +0 -126
- data/ext/couchbase/couchbase/operations/management/query_index_get_all.hxx +0 -54
- data/ext/couchbase/couchbase/operations/management/role_get_all.cxx +0 -58
- data/ext/couchbase/couchbase/operations/management/role_get_all.hxx +0 -49
- data/ext/couchbase/couchbase/operations/management/scope_create.cxx +0 -75
- data/ext/couchbase/couchbase/operations/management/scope_create.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/scope_drop.cxx +0 -70
- data/ext/couchbase/couchbase/operations/management/scope_drop.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/scope_get_all.cxx +0 -62
- data/ext/couchbase/couchbase/operations/management/scope_get_all.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/search.hxx +0 -30
- data/ext/couchbase/couchbase/operations/management/search_get_stats.cxx +0 -41
- data/ext/couchbase/couchbase/operations/management/search_get_stats.hxx +0 -48
- data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.cxx +0 -85
- data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.hxx +0 -54
- data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.cxx +0 -73
- data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.cxx +0 -73
- data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.hxx +0 -57
- data/ext/couchbase/couchbase/operations/management/search_index_control_query.cxx +0 -73
- data/ext/couchbase/couchbase/operations/management/search_index_control_query.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/search_index_drop.cxx +0 -72
- data/ext/couchbase/couchbase/operations/management/search_index_drop.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/search_index_get.cxx +0 -75
- data/ext/couchbase/couchbase/operations/management/search_index_get.hxx +0 -54
- data/ext/couchbase/couchbase/operations/management/search_index_get_all.cxx +0 -67
- data/ext/couchbase/couchbase/operations/management/search_index_get_all.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.cxx +0 -79
- data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/search_index_get_stats.cxx +0 -71
- data/ext/couchbase/couchbase/operations/management/search_index_get_stats.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/search_index_upsert.cxx +0 -108
- data/ext/couchbase/couchbase/operations/management/search_index_upsert.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/user.hxx +0 -28
- data/ext/couchbase/couchbase/operations/management/user_drop.cxx +0 -52
- data/ext/couchbase/couchbase/operations/management/user_drop.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/user_get.cxx +0 -61
- data/ext/couchbase/couchbase/operations/management/user_get.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/user_get_all.cxx +0 -59
- data/ext/couchbase/couchbase/operations/management/user_get_all.hxx +0 -51
- data/ext/couchbase/couchbase/operations/management/user_upsert.cxx +0 -101
- data/ext/couchbase/couchbase/operations/management/user_upsert.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/view.hxx +0 -23
- data/ext/couchbase/couchbase/operations/management/view_index_drop.cxx +0 -46
- data/ext/couchbase/couchbase/operations/management/view_index_drop.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/view_index_get.cxx +0 -74
- data/ext/couchbase/couchbase/operations/management/view_index_get.hxx +0 -53
- data/ext/couchbase/couchbase/operations/management/view_index_get_all.cxx +0 -108
- data/ext/couchbase/couchbase/operations/management/view_index_get_all.hxx +0 -52
- data/ext/couchbase/couchbase/operations/management/view_index_upsert.cxx +0 -71
- data/ext/couchbase/couchbase/operations/management/view_index_upsert.hxx +0 -51
- data/ext/couchbase/couchbase/operations/mcbp_noop.cxx +0 -38
- data/ext/couchbase/couchbase/operations/mcbp_noop.hxx +0 -49
- data/ext/couchbase/couchbase/operations.hxx +0 -42
- data/ext/couchbase/couchbase/origin.hxx +0 -185
- data/ext/couchbase/couchbase/platform/CMakeLists.txt +0 -16
- data/ext/couchbase/couchbase/platform/backtrace.c +0 -189
- data/ext/couchbase/couchbase/platform/base64.cc +0 -234
- data/ext/couchbase/couchbase/platform/base64.h +0 -44
- data/ext/couchbase/couchbase/platform/dirutils.cc +0 -123
- data/ext/couchbase/couchbase/platform/dirutils.h +0 -43
- data/ext/couchbase/couchbase/platform/random.cc +0 -120
- data/ext/couchbase/couchbase/platform/random.h +0 -39
- data/ext/couchbase/couchbase/platform/string_hex.cc +0 -99
- data/ext/couchbase/couchbase/platform/string_hex.h +0 -50
- data/ext/couchbase/couchbase/platform/terminate_handler.cc +0 -125
- data/ext/couchbase/couchbase/platform/terminate_handler.h +0 -36
- data/ext/couchbase/couchbase/platform/uuid.cc +0 -98
- data/ext/couchbase/couchbase/platform/uuid.h +0 -56
- data/ext/couchbase/couchbase/protocol/CMakeLists.txt +0 -42
- data/ext/couchbase/couchbase/protocol/client_opcode.hxx +0 -359
- data/ext/couchbase/couchbase/protocol/client_opcode_fmt.hxx +0 -316
- data/ext/couchbase/couchbase/protocol/client_request.cxx +0 -37
- data/ext/couchbase/couchbase/protocol/client_request.hxx +0 -157
- data/ext/couchbase/couchbase/protocol/client_response.cxx +0 -74
- data/ext/couchbase/couchbase/protocol/client_response.hxx +0 -211
- data/ext/couchbase/couchbase/protocol/cmd_append.cxx +0 -82
- data/ext/couchbase/couchbase/protocol/cmd_append.hxx +0 -107
- data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.cxx +0 -51
- data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.hxx +0 -57
- data/ext/couchbase/couchbase/protocol/cmd_decrement.cxx +0 -112
- data/ext/couchbase/couchbase/protocol/cmd_decrement.hxx +0 -131
- data/ext/couchbase/couchbase/protocol/cmd_exists.cxx +0 -92
- data/ext/couchbase/couchbase/protocol/cmd_exists.hxx +0 -121
- data/ext/couchbase/couchbase/protocol/cmd_get.cxx +0 -63
- data/ext/couchbase/couchbase/protocol/cmd_get.hxx +0 -101
- data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.cxx +0 -68
- data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.hxx +0 -117
- data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.cxx +0 -70
- data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.hxx +0 -117
- data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.cxx +0 -84
- data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.hxx +0 -89
- data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.cxx +0 -50
- data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.hxx +0 -98
- data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.cxx +0 -44
- data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.hxx +0 -84
- data/ext/couchbase/couchbase/protocol/cmd_get_error_map.cxx +0 -59
- data/ext/couchbase/couchbase/protocol/cmd_get_error_map.hxx +0 -103
- data/ext/couchbase/couchbase/protocol/cmd_get_meta.cxx +0 -74
- data/ext/couchbase/couchbase/protocol/cmd_get_meta.hxx +0 -119
- data/ext/couchbase/couchbase/protocol/cmd_hello.cxx +0 -66
- data/ext/couchbase/couchbase/protocol/cmd_hello.hxx +0 -144
- data/ext/couchbase/couchbase/protocol/cmd_increment.cxx +0 -117
- data/ext/couchbase/couchbase/protocol/cmd_increment.hxx +0 -131
- data/ext/couchbase/couchbase/protocol/cmd_info.hxx +0 -29
- data/ext/couchbase/couchbase/protocol/cmd_insert.cxx +0 -92
- data/ext/couchbase/couchbase/protocol/cmd_insert.hxx +0 -123
- data/ext/couchbase/couchbase/protocol/cmd_lookup_in.cxx +0 -109
- data/ext/couchbase/couchbase/protocol/cmd_lookup_in.hxx +0 -165
- data/ext/couchbase/couchbase/protocol/cmd_mutate_in.cxx +0 -174
- data/ext/couchbase/couchbase/protocol/cmd_mutate_in.hxx +0 -311
- data/ext/couchbase/couchbase/protocol/cmd_noop.cxx +0 -36
- data/ext/couchbase/couchbase/protocol/cmd_noop.hxx +0 -75
- data/ext/couchbase/couchbase/protocol/cmd_prepend.cxx +0 -82
- data/ext/couchbase/couchbase/protocol/cmd_prepend.hxx +0 -102
- data/ext/couchbase/couchbase/protocol/cmd_remove.cxx +0 -83
- data/ext/couchbase/couchbase/protocol/cmd_remove.hxx +0 -93
- data/ext/couchbase/couchbase/protocol/cmd_replace.cxx +0 -105
- data/ext/couchbase/couchbase/protocol/cmd_replace.hxx +0 -130
- data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.cxx +0 -40
- data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.hxx +0 -97
- data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.cxx +0 -48
- data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.hxx +0 -82
- data/ext/couchbase/couchbase/protocol/cmd_sasl_step.cxx +0 -40
- data/ext/couchbase/couchbase/protocol/cmd_sasl_step.hxx +0 -97
- data/ext/couchbase/couchbase/protocol/cmd_select_bucket.cxx +0 -36
- data/ext/couchbase/couchbase/protocol/cmd_select_bucket.hxx +0 -82
- data/ext/couchbase/couchbase/protocol/cmd_touch.cxx +0 -57
- data/ext/couchbase/couchbase/protocol/cmd_touch.hxx +0 -84
- data/ext/couchbase/couchbase/protocol/cmd_unlock.cxx +0 -48
- data/ext/couchbase/couchbase/protocol/cmd_unlock.hxx +0 -81
- data/ext/couchbase/couchbase/protocol/cmd_upsert.cxx +0 -104
- data/ext/couchbase/couchbase/protocol/cmd_upsert.hxx +0 -125
- data/ext/couchbase/couchbase/protocol/datatype.hxx +0 -48
- data/ext/couchbase/couchbase/protocol/durability_level.hxx +0 -59
- data/ext/couchbase/couchbase/protocol/durability_level_fmt.hxx +0 -52
- data/ext/couchbase/couchbase/protocol/enhanced_error_info.hxx +0 -28
- data/ext/couchbase/couchbase/protocol/enhanced_error_info_fmt.hxx +0 -44
- data/ext/couchbase/couchbase/protocol/frame_info_id.hxx +0 -142
- data/ext/couchbase/couchbase/protocol/frame_info_id_fmt.hxx +0 -79
- data/ext/couchbase/couchbase/protocol/hello_feature.hxx +0 -186
- data/ext/couchbase/couchbase/protocol/hello_feature_fmt.hxx +0 -106
- data/ext/couchbase/couchbase/protocol/magic.hxx +0 -53
- data/ext/couchbase/couchbase/protocol/magic_fmt.hxx +0 -58
- data/ext/couchbase/couchbase/protocol/server_opcode.hxx +0 -39
- data/ext/couchbase/couchbase/protocol/server_opcode_fmt.hxx +0 -46
- data/ext/couchbase/couchbase/protocol/server_request.hxx +0 -121
- data/ext/couchbase/couchbase/protocol/status.cxx +0 -187
- data/ext/couchbase/couchbase/protocol/status.hxx +0 -180
- data/ext/couchbase/couchbase/protocol/status_fmt.hxx +0 -241
- data/ext/couchbase/couchbase/query_profile_mode.hxx +0 -27
- data/ext/couchbase/couchbase/sasl/CMakeLists.txt +0 -16
- data/ext/couchbase/couchbase/sasl/client.cc +0 -50
- data/ext/couchbase/couchbase/sasl/client.h +0 -128
- data/ext/couchbase/couchbase/sasl/context.cc +0 -34
- data/ext/couchbase/couchbase/sasl/context.h +0 -52
- data/ext/couchbase/couchbase/sasl/error.h +0 -28
- data/ext/couchbase/couchbase/sasl/error_fmt.h +0 -70
- data/ext/couchbase/couchbase/sasl/mechanism.cc +0 -45
- data/ext/couchbase/couchbase/sasl/mechanism.h +0 -52
- data/ext/couchbase/couchbase/sasl/plain/plain.cc +0 -39
- data/ext/couchbase/couchbase/sasl/plain/plain.h +0 -54
- data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.cc +0 -372
- data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.h +0 -184
- data/ext/couchbase/couchbase/sasl/scram-sha/stringutils.cc +0 -82
- data/ext/couchbase/couchbase/sasl/scram-sha/stringutils.h +0 -48
- data/ext/couchbase/couchbase/search_highlight_style.hxx +0 -23
- data/ext/couchbase/couchbase/search_scan_consistency.hxx +0 -23
- data/ext/couchbase/couchbase/service_type.hxx +0 -31
- data/ext/couchbase/couchbase/service_type_fmt.hxx +0 -61
- data/ext/couchbase/couchbase/timeout_defaults.hxx +0 -42
- data/ext/couchbase/couchbase/topology/CMakeLists.txt +0 -9
- data/ext/couchbase/couchbase/topology/capabilities.hxx +0 -43
- data/ext/couchbase/couchbase/topology/capabilities_fmt.hxx +0 -106
- data/ext/couchbase/couchbase/topology/collections_manifest.hxx +0 -42
- data/ext/couchbase/couchbase/topology/collections_manifest_fmt.hxx +0 -52
- data/ext/couchbase/couchbase/topology/collections_manifest_json.hxx +0 -50
- data/ext/couchbase/couchbase/topology/configuration.cxx +0 -223
- data/ext/couchbase/couchbase/topology/configuration.hxx +0 -120
- data/ext/couchbase/couchbase/topology/configuration_fmt.hxx +0 -166
- data/ext/couchbase/couchbase/topology/configuration_json.hxx +0 -259
- data/ext/couchbase/couchbase/topology/error_map.hxx +0 -149
- data/ext/couchbase/couchbase/topology/error_map_fmt.hxx +0 -94
- data/ext/couchbase/couchbase/topology/error_map_json.hxx +0 -88
- data/ext/couchbase/couchbase/tracing/CMakeLists.txt +0 -9
- data/ext/couchbase/couchbase/tracing/constants.hxx +0 -274
- data/ext/couchbase/couchbase/tracing/noop_tracer.hxx +0 -55
- data/ext/couchbase/couchbase/tracing/threshold_logging_options.hxx +0 -68
- data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.cxx +0 -422
- data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.hxx +0 -49
- data/ext/couchbase/couchbase/utils/CMakeLists.txt +0 -17
- data/ext/couchbase/couchbase/utils/byteswap.cxx +0 -45
- data/ext/couchbase/couchbase/utils/byteswap.hxx +0 -49
- data/ext/couchbase/couchbase/utils/connection_string.cxx +0 -420
- data/ext/couchbase/couchbase/utils/connection_string.hxx +0 -76
- data/ext/couchbase/couchbase/utils/crc32.hxx +0 -48
- data/ext/couchbase/couchbase/utils/duration_parser.cxx +0 -193
- data/ext/couchbase/couchbase/utils/duration_parser.hxx +0 -45
- data/ext/couchbase/couchbase/utils/join_strings.hxx +0 -65
- data/ext/couchbase/couchbase/utils/json.cxx +0 -71
- data/ext/couchbase/couchbase/utils/json.hxx +0 -37
- data/ext/couchbase/couchbase/utils/json_stream_control.hxx +0 -32
- data/ext/couchbase/couchbase/utils/json_streaming_lexer.cxx +0 -394
- data/ext/couchbase/couchbase/utils/json_streaming_lexer.hxx +0 -58
- data/ext/couchbase/couchbase/utils/movable_function.hxx +0 -110
- data/ext/couchbase/couchbase/utils/name_codec.hxx +0 -41
- data/ext/couchbase/couchbase/utils/unsigned_leb128.hxx +0 -181
- data/ext/couchbase/couchbase/utils/url_codec.cxx +0 -404
- data/ext/couchbase/couchbase/utils/url_codec.hxx +0 -72
- data/ext/couchbase/couchbase/view_scan_consistency.hxx +0 -27
- data/ext/couchbase/couchbase/view_sort_order.hxx +0 -23
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/append.hpp +0 -217
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_tuple.hpp +0 -246
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/deferred.hpp +0 -104
- data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/prepend.hpp +0 -217
- data/ext/couchbase/third_party/asio/asio/include/asio/impl/compose.hpp +0 -707
- data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_true.hpp +0 -16
@@ -1,887 +0,0 @@
|
|
1
|
-
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright 2016 Couchbase, Inc.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
|
18
|
-
#include <couchbase/crypto/cbcrypto.h>
|
19
|
-
|
20
|
-
#include <memory>
|
21
|
-
#include <stdexcept>
|
22
|
-
|
23
|
-
namespace internal
|
24
|
-
{
|
25
|
-
|
26
|
-
#ifdef _MSC_VER
|
27
|
-
#include <windows.h>
|
28
|
-
|
29
|
-
#include <bcrypt.h>
|
30
|
-
|
31
|
-
struct HeapAllocDeleter {
|
32
|
-
void operator()(PBYTE bytes)
|
33
|
-
{
|
34
|
-
HeapFree(GetProcessHeap(), 0, bytes);
|
35
|
-
}
|
36
|
-
};
|
37
|
-
|
38
|
-
using uniqueHeapPtr = std::unique_ptr<BYTE, HeapAllocDeleter>;
|
39
|
-
|
40
|
-
static inline std::string
|
41
|
-
hash(std::string_view key, std::string_view data, LPCWSTR algorithm, int flags)
|
42
|
-
{
|
43
|
-
BCRYPT_ALG_HANDLE hAlg;
|
44
|
-
NTSTATUS status = BCryptOpenAlgorithmProvider(&hAlg, algorithm, nullptr, flags);
|
45
|
-
if (status < 0) {
|
46
|
-
throw std::runtime_error("digest: BCryptOpenAlgorithmProvider return: " + std::to_string(status));
|
47
|
-
}
|
48
|
-
|
49
|
-
DWORD pcbResult = 0;
|
50
|
-
DWORD cbHashObject = 0;
|
51
|
-
|
52
|
-
// calculate the size of the buffer to hold the hash object
|
53
|
-
status = BCryptGetProperty(hAlg, BCRYPT_OBJECT_LENGTH, (PBYTE)&cbHashObject, sizeof(DWORD), &pcbResult, 0);
|
54
|
-
if (status < 0) {
|
55
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
56
|
-
throw std::runtime_error("digest: BCryptGetProperty return: " + std::to_string(status));
|
57
|
-
}
|
58
|
-
|
59
|
-
// calculate the length of the hash
|
60
|
-
DWORD cbHash = 0;
|
61
|
-
status = BCryptGetProperty(hAlg, BCRYPT_HASH_LENGTH, (PBYTE)&cbHash, sizeof(DWORD), &pcbResult, 0);
|
62
|
-
if (status < 0) {
|
63
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
64
|
-
throw std::runtime_error("digest: BCryptGetProperty return: " + std::to_string(status));
|
65
|
-
}
|
66
|
-
|
67
|
-
// allocate the hash object on the heap
|
68
|
-
uniqueHeapPtr pbHashObject((PBYTE)HeapAlloc(GetProcessHeap(), 0, cbHashObject));
|
69
|
-
if (!pbHashObject) {
|
70
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
71
|
-
throw std::bad_alloc();
|
72
|
-
}
|
73
|
-
|
74
|
-
std::string ret;
|
75
|
-
ret.resize(cbHash);
|
76
|
-
|
77
|
-
// create the hash
|
78
|
-
BCRYPT_HASH_HANDLE hHash;
|
79
|
-
status = BCryptCreateHash(hAlg, &hHash, pbHashObject.get(), cbHashObject, (PUCHAR)key.data(), ULONG(key.size()), 0);
|
80
|
-
if (status < 0) {
|
81
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
82
|
-
throw std::runtime_error("digest: BCryptCreateHash return: " + std::to_string(status));
|
83
|
-
}
|
84
|
-
|
85
|
-
status = BCryptHashData(hHash, (PBYTE)data.data(), ULONG(data.size()), 0);
|
86
|
-
if (status < 0) {
|
87
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
88
|
-
BCryptDestroyHash(hHash);
|
89
|
-
throw std::runtime_error("digest: BCryptHashData return: " + std::to_string(status));
|
90
|
-
}
|
91
|
-
|
92
|
-
status = BCryptFinishHash(hHash, reinterpret_cast<uint8_t*>(ret.data()), cbHash, 0);
|
93
|
-
|
94
|
-
// Release resources
|
95
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
96
|
-
BCryptDestroyHash(hHash);
|
97
|
-
|
98
|
-
if (status < 0) {
|
99
|
-
throw std::runtime_error("digest: BCryptFinishHash return: " + std::to_string(status));
|
100
|
-
}
|
101
|
-
|
102
|
-
return ret;
|
103
|
-
}
|
104
|
-
|
105
|
-
static std::string
|
106
|
-
HMAC_SHA1(std::string_view key, std::string_view data)
|
107
|
-
{
|
108
|
-
return hash(key, data, BCRYPT_SHA1_ALGORITHM, BCRYPT_ALG_HANDLE_HMAC_FLAG);
|
109
|
-
}
|
110
|
-
|
111
|
-
static std::string
|
112
|
-
HMAC_SHA256(std::string_view key, std::string_view data)
|
113
|
-
{
|
114
|
-
return hash(key, data, BCRYPT_SHA256_ALGORITHM, BCRYPT_ALG_HANDLE_HMAC_FLAG);
|
115
|
-
}
|
116
|
-
|
117
|
-
static std::string
|
118
|
-
HMAC_SHA512(std::string_view key, std::string_view data)
|
119
|
-
{
|
120
|
-
return hash(key, data, BCRYPT_SHA512_ALGORITHM, BCRYPT_ALG_HANDLE_HMAC_FLAG);
|
121
|
-
}
|
122
|
-
|
123
|
-
static inline std::string
|
124
|
-
PBKDF2(const std::string& pass, std::string_view salt, unsigned int iterationCount, LPCWSTR algorithm)
|
125
|
-
{
|
126
|
-
// open an algorithm handle
|
127
|
-
BCRYPT_ALG_HANDLE hAlg;
|
128
|
-
NTSTATUS status;
|
129
|
-
|
130
|
-
status = BCryptOpenAlgorithmProvider(&hAlg, algorithm, nullptr, BCRYPT_ALG_HANDLE_HMAC_FLAG);
|
131
|
-
if (status < 0) {
|
132
|
-
throw std::runtime_error("digest: BCryptOpenAlgorithmProvider return: " + std::to_string(status));
|
133
|
-
}
|
134
|
-
|
135
|
-
DWORD pcbResult = 0;
|
136
|
-
|
137
|
-
// calculate the length of the hash
|
138
|
-
DWORD cbHash = 0;
|
139
|
-
status = BCryptGetProperty(hAlg, BCRYPT_HASH_LENGTH, (PBYTE)&cbHash, sizeof(DWORD), &pcbResult, 0);
|
140
|
-
if (status < 0) {
|
141
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
142
|
-
throw std::runtime_error("digest: BCryptGetProperty return: " + std::to_string(status));
|
143
|
-
}
|
144
|
-
|
145
|
-
std::string ret;
|
146
|
-
ret.resize(cbHash);
|
147
|
-
|
148
|
-
status = BCryptDeriveKeyPBKDF2(hAlg,
|
149
|
-
(PUCHAR)pass.data(),
|
150
|
-
ULONG(pass.size()),
|
151
|
-
(PUCHAR)salt.data(),
|
152
|
-
ULONG(salt.size()),
|
153
|
-
iterationCount,
|
154
|
-
(PUCHAR)ret.data(),
|
155
|
-
ULONG(ret.size()),
|
156
|
-
0);
|
157
|
-
|
158
|
-
// Release resources
|
159
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
160
|
-
|
161
|
-
if (status < 0) {
|
162
|
-
throw std::runtime_error("digest: BCryptDeriveKeyPBKDF2 return: " + std::to_string(status));
|
163
|
-
}
|
164
|
-
|
165
|
-
return ret;
|
166
|
-
}
|
167
|
-
|
168
|
-
static std::string
|
169
|
-
PBKDF2_HMAC_SHA1(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
170
|
-
{
|
171
|
-
return PBKDF2(pass, salt, iterationCount, BCRYPT_SHA1_ALGORITHM);
|
172
|
-
}
|
173
|
-
|
174
|
-
static std::string
|
175
|
-
PBKDF2_HMAC_SHA256(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
176
|
-
{
|
177
|
-
return PBKDF2(pass, salt, iterationCount, BCRYPT_SHA256_ALGORITHM);
|
178
|
-
}
|
179
|
-
|
180
|
-
static std::string
|
181
|
-
PBKDF2_HMAC_SHA512(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
182
|
-
{
|
183
|
-
return PBKDF2(pass, salt, iterationCount, BCRYPT_SHA512_ALGORITHM);
|
184
|
-
}
|
185
|
-
|
186
|
-
static std::string
|
187
|
-
digest_sha1(std::string_view data)
|
188
|
-
{
|
189
|
-
return hash({}, data, BCRYPT_SHA1_ALGORITHM, 0);
|
190
|
-
}
|
191
|
-
|
192
|
-
static std::string
|
193
|
-
digest_sha256(std::string_view data)
|
194
|
-
{
|
195
|
-
return hash({}, data, BCRYPT_SHA256_ALGORITHM, 0);
|
196
|
-
}
|
197
|
-
|
198
|
-
static std::string
|
199
|
-
digest_sha512(std::string_view data)
|
200
|
-
{
|
201
|
-
return hash({}, data, BCRYPT_SHA512_ALGORITHM, 0);
|
202
|
-
}
|
203
|
-
|
204
|
-
std::string
|
205
|
-
AES_256_cbc(bool encrypt, std::string_view key, std::string_view iv, std::string_view data)
|
206
|
-
{
|
207
|
-
BCRYPT_ALG_HANDLE hAlg;
|
208
|
-
NTSTATUS status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_AES_ALGORITHM, nullptr, 0);
|
209
|
-
|
210
|
-
if (status < 0) {
|
211
|
-
throw std::runtime_error("encrypt: BCryptOpenAlgorithmProvider() return: " + std::to_string(status));
|
212
|
-
}
|
213
|
-
|
214
|
-
DWORD cbData = 0;
|
215
|
-
DWORD cbKeyObject = 0;
|
216
|
-
|
217
|
-
// Calculate the size of the buffer to hold the KeyObject.
|
218
|
-
status = BCryptGetProperty(hAlg, BCRYPT_OBJECT_LENGTH, (PBYTE)&cbKeyObject, sizeof(DWORD), &cbData, 0);
|
219
|
-
if (status < 0) {
|
220
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
221
|
-
throw std::runtime_error("encrypt: BCryptGetProperty() return: " + std::to_string(status));
|
222
|
-
}
|
223
|
-
|
224
|
-
// Allocate the key object on the heap.
|
225
|
-
uniqueHeapPtr pbKeyObject((PBYTE)HeapAlloc(GetProcessHeap(), 0, cbKeyObject));
|
226
|
-
if (!pbKeyObject) {
|
227
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
228
|
-
throw std::bad_alloc();
|
229
|
-
}
|
230
|
-
|
231
|
-
status = BCryptSetProperty(hAlg, BCRYPT_CHAINING_MODE, (PBYTE)BCRYPT_CHAIN_MODE_CBC, sizeof(BCRYPT_CHAIN_MODE_CBC), 0);
|
232
|
-
if (status < 0) {
|
233
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
234
|
-
throw std::runtime_error("encrypt: BCryptSetProperty() return: " + std::to_string(status));
|
235
|
-
}
|
236
|
-
|
237
|
-
// Generate the key from supplied input key bytes.
|
238
|
-
BCRYPT_KEY_HANDLE hKey;
|
239
|
-
status = BCryptGenerateSymmetricKey(hAlg, &hKey, pbKeyObject.get(), cbKeyObject, (PBYTE)key.data(), ULONG(key.size()), 0);
|
240
|
-
if (status < 0) {
|
241
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
242
|
-
throw std::runtime_error("encrypt: BCryptGenerateSymmetricKey() return: " + std::to_string(status));
|
243
|
-
}
|
244
|
-
|
245
|
-
// For some reason the API will modify the input vector.. just create a
|
246
|
-
// copy.. it's small anyway
|
247
|
-
std::string civ(iv.begin(), iv.end());
|
248
|
-
|
249
|
-
std::string ret;
|
250
|
-
ret.resize(data.size() + iv.size());
|
251
|
-
if (encrypt) {
|
252
|
-
status = BCryptEncrypt(hKey,
|
253
|
-
(PUCHAR)data.data(),
|
254
|
-
ULONG(data.size()),
|
255
|
-
nullptr,
|
256
|
-
(PBYTE)civ.data(),
|
257
|
-
ULONG(civ.size()),
|
258
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
259
|
-
ULONG(ret.size()),
|
260
|
-
&cbData,
|
261
|
-
BCRYPT_BLOCK_PADDING);
|
262
|
-
} else {
|
263
|
-
status = BCryptDecrypt(hKey,
|
264
|
-
(PUCHAR)data.data(),
|
265
|
-
ULONG(data.size()),
|
266
|
-
nullptr,
|
267
|
-
(PBYTE)civ.data(),
|
268
|
-
ULONG(civ.size()),
|
269
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
270
|
-
ULONG(ret.size()),
|
271
|
-
&cbData,
|
272
|
-
BCRYPT_BLOCK_PADDING);
|
273
|
-
}
|
274
|
-
|
275
|
-
BCryptCloseAlgorithmProvider(hAlg, 0);
|
276
|
-
BCryptDestroyKey(hKey);
|
277
|
-
|
278
|
-
if (status < 0) {
|
279
|
-
throw std::runtime_error("encrypt: BCryptEncrypt() return: " + std::to_string(status));
|
280
|
-
}
|
281
|
-
|
282
|
-
ret.resize(cbData);
|
283
|
-
|
284
|
-
return ret;
|
285
|
-
}
|
286
|
-
|
287
|
-
std::string
|
288
|
-
encrypt(const couchbase::crypto::Cipher /* cipher */, std::string_view key, std::string_view iv, std::string_view data)
|
289
|
-
{
|
290
|
-
return AES_256_cbc(true, key, iv, data);
|
291
|
-
}
|
292
|
-
|
293
|
-
std::string
|
294
|
-
decrypt(const couchbase::crypto::Cipher /* cipher */, std::string_view key, std::string_view iv, std::string_view data)
|
295
|
-
{
|
296
|
-
return AES_256_cbc(false, key, iv, data);
|
297
|
-
}
|
298
|
-
|
299
|
-
#elif defined(__APPLE__)
|
300
|
-
|
301
|
-
#include <CommonCrypto/CommonCryptor.h>
|
302
|
-
#include <CommonCrypto/CommonDigest.h>
|
303
|
-
#include <CommonCrypto/CommonHMAC.h>
|
304
|
-
#include <CommonCrypto/CommonKeyDerivation.h>
|
305
|
-
|
306
|
-
static std::string
|
307
|
-
HMAC_SHA1(std::string_view key, std::string_view data)
|
308
|
-
{
|
309
|
-
std::string ret;
|
310
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
311
|
-
CCHmac(kCCHmacAlgSHA1, key.data(), key.size(), data.data(), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
312
|
-
return ret;
|
313
|
-
}
|
314
|
-
|
315
|
-
static std::string
|
316
|
-
HMAC_SHA256(std::string_view key, std::string_view data)
|
317
|
-
{
|
318
|
-
std::string ret;
|
319
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
320
|
-
CCHmac(kCCHmacAlgSHA256, key.data(), key.size(), data.data(), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
321
|
-
return ret;
|
322
|
-
}
|
323
|
-
|
324
|
-
static std::string
|
325
|
-
HMAC_SHA512(std::string_view key, std::string_view data)
|
326
|
-
{
|
327
|
-
std::string ret;
|
328
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
329
|
-
CCHmac(kCCHmacAlgSHA512, key.data(), key.size(), data.data(), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
330
|
-
return ret;
|
331
|
-
}
|
332
|
-
|
333
|
-
static std::string
|
334
|
-
PBKDF2_HMAC_SHA1(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
335
|
-
{
|
336
|
-
std::string ret;
|
337
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
338
|
-
auto err = CCKeyDerivationPBKDF(kCCPBKDF2,
|
339
|
-
pass.data(),
|
340
|
-
pass.size(),
|
341
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
342
|
-
salt.size(),
|
343
|
-
kCCPRFHmacAlgSHA1,
|
344
|
-
iterationCount,
|
345
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
346
|
-
ret.size());
|
347
|
-
|
348
|
-
if (err != 0) {
|
349
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA1): CCKeyDerivationPBKDF failed: " + std::to_string(err));
|
350
|
-
}
|
351
|
-
return ret;
|
352
|
-
}
|
353
|
-
|
354
|
-
static std::string
|
355
|
-
PBKDF2_HMAC_SHA256(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
356
|
-
{
|
357
|
-
std::string ret;
|
358
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
359
|
-
auto err = CCKeyDerivationPBKDF(kCCPBKDF2,
|
360
|
-
pass.data(),
|
361
|
-
pass.size(),
|
362
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
363
|
-
salt.size(),
|
364
|
-
kCCPRFHmacAlgSHA256,
|
365
|
-
iterationCount,
|
366
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
367
|
-
ret.size());
|
368
|
-
if (err != 0) {
|
369
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA256): CCKeyDerivationPBKDF "
|
370
|
-
"failed: " +
|
371
|
-
std::to_string(err));
|
372
|
-
}
|
373
|
-
return ret;
|
374
|
-
}
|
375
|
-
|
376
|
-
static std::string
|
377
|
-
PBKDF2_HMAC_SHA512(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
378
|
-
{
|
379
|
-
std::string ret;
|
380
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
381
|
-
auto err = CCKeyDerivationPBKDF(kCCPBKDF2,
|
382
|
-
pass.data(),
|
383
|
-
pass.size(),
|
384
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
385
|
-
salt.size(),
|
386
|
-
kCCPRFHmacAlgSHA512,
|
387
|
-
iterationCount,
|
388
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
389
|
-
ret.size());
|
390
|
-
if (err != 0) {
|
391
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA512): CCKeyDerivationPBKDF "
|
392
|
-
"failed: " +
|
393
|
-
std::to_string(err));
|
394
|
-
}
|
395
|
-
return ret;
|
396
|
-
}
|
397
|
-
|
398
|
-
static std::string
|
399
|
-
digest_sha1(std::string_view data)
|
400
|
-
{
|
401
|
-
std::string ret;
|
402
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
403
|
-
CC_SHA1(data.data(), static_cast<CC_LONG>(data.size()), reinterpret_cast<uint8_t*>(ret.data()));
|
404
|
-
return ret;
|
405
|
-
}
|
406
|
-
|
407
|
-
static std::string
|
408
|
-
digest_sha256(std::string_view data)
|
409
|
-
{
|
410
|
-
std::string ret;
|
411
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
412
|
-
CC_SHA256(data.data(), static_cast<CC_LONG>(data.size()), reinterpret_cast<uint8_t*>(ret.data()));
|
413
|
-
return ret;
|
414
|
-
}
|
415
|
-
|
416
|
-
static std::string
|
417
|
-
digest_sha512(std::string_view data)
|
418
|
-
{
|
419
|
-
std::string ret;
|
420
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
421
|
-
CC_SHA512(data.data(), static_cast<CC_LONG>(data.size()), reinterpret_cast<uint8_t*>(ret.data()));
|
422
|
-
return ret;
|
423
|
-
}
|
424
|
-
|
425
|
-
/**
|
426
|
-
* Validate that the input parameters for the encryption cipher specified
|
427
|
-
* is supported and contains the right buffers.
|
428
|
-
*
|
429
|
-
* Currently only AES_256_cbc is supported
|
430
|
-
*/
|
431
|
-
static void
|
432
|
-
validateEncryptionCipher(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv)
|
433
|
-
{
|
434
|
-
switch (cipher) {
|
435
|
-
case couchbase::crypto::Cipher::AES_256_cbc:
|
436
|
-
if (key.size() != kCCKeySizeAES256) {
|
437
|
-
throw std::invalid_argument("couchbase::crypto::validateEncryptionCipher: Cipher requires a "
|
438
|
-
"key "
|
439
|
-
"length of " +
|
440
|
-
std::to_string(kCCKeySizeAES256) + " provided key with length " + std::to_string(key.size()));
|
441
|
-
}
|
442
|
-
|
443
|
-
if (iv.size() != 16) {
|
444
|
-
throw std::invalid_argument("couchbase::crypto::validateEncryptionCipher: Cipher requires a "
|
445
|
-
"iv "
|
446
|
-
"length of 16 provided iv with length " +
|
447
|
-
std::to_string(iv.size()));
|
448
|
-
}
|
449
|
-
return;
|
450
|
-
}
|
451
|
-
|
452
|
-
throw std::invalid_argument("couchbase::crypto::validateEncryptionCipher: Unknown Cipher " + std::to_string(int(cipher)));
|
453
|
-
}
|
454
|
-
|
455
|
-
std::string
|
456
|
-
encrypt(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
457
|
-
{
|
458
|
-
size_t outputsize = 0;
|
459
|
-
std::string ret;
|
460
|
-
ret.resize(data.size() + kCCBlockSizeAES128);
|
461
|
-
|
462
|
-
validateEncryptionCipher(cipher, key, iv);
|
463
|
-
|
464
|
-
auto status = CCCrypt(kCCEncrypt,
|
465
|
-
kCCAlgorithmAES128,
|
466
|
-
kCCOptionPKCS7Padding,
|
467
|
-
key.data(),
|
468
|
-
kCCKeySizeAES256,
|
469
|
-
iv.data(),
|
470
|
-
data.data(),
|
471
|
-
data.size(),
|
472
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
473
|
-
ret.size(),
|
474
|
-
&outputsize);
|
475
|
-
|
476
|
-
if (status != kCCSuccess) {
|
477
|
-
throw std::runtime_error("couchbase::crypto::encrypt: CCCrypt failed: " + std::to_string(status));
|
478
|
-
}
|
479
|
-
|
480
|
-
ret.resize(outputsize);
|
481
|
-
return ret;
|
482
|
-
}
|
483
|
-
|
484
|
-
std::string
|
485
|
-
decrypt(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
486
|
-
{
|
487
|
-
size_t outputsize = 0;
|
488
|
-
std::string ret;
|
489
|
-
ret.resize(data.size());
|
490
|
-
|
491
|
-
validateEncryptionCipher(cipher, key, iv);
|
492
|
-
|
493
|
-
auto status = CCCrypt(kCCDecrypt,
|
494
|
-
kCCAlgorithmAES128,
|
495
|
-
kCCOptionPKCS7Padding,
|
496
|
-
key.data(),
|
497
|
-
kCCKeySizeAES256,
|
498
|
-
iv.data(),
|
499
|
-
data.data(),
|
500
|
-
data.size(),
|
501
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
502
|
-
ret.size(),
|
503
|
-
&outputsize);
|
504
|
-
|
505
|
-
if (status != kCCSuccess) {
|
506
|
-
throw std::runtime_error("couchbase::crypto::decrypt: CCCrypt failed: " + std::to_string(status));
|
507
|
-
}
|
508
|
-
|
509
|
-
ret.resize(outputsize);
|
510
|
-
return ret;
|
511
|
-
}
|
512
|
-
|
513
|
-
#else
|
514
|
-
|
515
|
-
#include <openssl/evp.h>
|
516
|
-
#include <openssl/hmac.h>
|
517
|
-
#include <openssl/md5.h>
|
518
|
-
#include <openssl/sha.h>
|
519
|
-
|
520
|
-
// OpenSSL
|
521
|
-
|
522
|
-
static std::string
|
523
|
-
HMAC_SHA1(std::string_view key, std::string_view data)
|
524
|
-
{
|
525
|
-
std::string ret;
|
526
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
527
|
-
if (HMAC(EVP_sha1(),
|
528
|
-
key.data(),
|
529
|
-
static_cast<int>(key.size()),
|
530
|
-
reinterpret_cast<const uint8_t*>(data.data()),
|
531
|
-
data.size(),
|
532
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
533
|
-
nullptr) == nullptr) {
|
534
|
-
throw std::runtime_error("couchbase::crypto::HMAC(SHA1): HMAC failed");
|
535
|
-
}
|
536
|
-
return ret;
|
537
|
-
}
|
538
|
-
|
539
|
-
static std::string
|
540
|
-
HMAC_SHA256(std::string_view key, std::string_view data)
|
541
|
-
{
|
542
|
-
std::string ret;
|
543
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
544
|
-
if (HMAC(EVP_sha256(),
|
545
|
-
key.data(),
|
546
|
-
static_cast<int>(key.size()),
|
547
|
-
reinterpret_cast<const uint8_t*>(data.data()),
|
548
|
-
data.size(),
|
549
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
550
|
-
nullptr) == nullptr) {
|
551
|
-
throw std::runtime_error("couchbase::crypto::HMAC(SHA256): HMAC failed");
|
552
|
-
}
|
553
|
-
return ret;
|
554
|
-
}
|
555
|
-
|
556
|
-
static std::string
|
557
|
-
HMAC_SHA512(std::string_view key, std::string_view data)
|
558
|
-
{
|
559
|
-
std::string ret;
|
560
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
561
|
-
if (HMAC(EVP_sha512(),
|
562
|
-
key.data(),
|
563
|
-
static_cast<int>(key.size()),
|
564
|
-
reinterpret_cast<const uint8_t*>(data.data()),
|
565
|
-
data.size(),
|
566
|
-
reinterpret_cast<uint8_t*>(ret.data()),
|
567
|
-
nullptr) == nullptr) {
|
568
|
-
throw std::runtime_error("couchbase::crypto::HMAC(SHA512): HMAC failed");
|
569
|
-
}
|
570
|
-
return ret;
|
571
|
-
}
|
572
|
-
|
573
|
-
static std::string
|
574
|
-
PBKDF2_HMAC_SHA1(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
575
|
-
{
|
576
|
-
std::string ret;
|
577
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
578
|
-
auto err = PKCS5_PBKDF2_HMAC(pass.data(),
|
579
|
-
int(pass.size()),
|
580
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
581
|
-
int(salt.size()),
|
582
|
-
int(iterationCount),
|
583
|
-
EVP_sha1(),
|
584
|
-
couchbase::crypto::SHA1_DIGEST_SIZE,
|
585
|
-
reinterpret_cast<uint8_t*>(ret.data()));
|
586
|
-
|
587
|
-
if (err != 1) {
|
588
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA1): PKCS5_PBKDF2_HMAC_SHA1 "
|
589
|
-
"failed: " +
|
590
|
-
std::to_string(err));
|
591
|
-
}
|
592
|
-
|
593
|
-
return ret;
|
594
|
-
}
|
595
|
-
|
596
|
-
static std::string
|
597
|
-
PBKDF2_HMAC_SHA256(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
598
|
-
{
|
599
|
-
std::string ret;
|
600
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
601
|
-
auto err = PKCS5_PBKDF2_HMAC(pass.data(),
|
602
|
-
int(pass.size()),
|
603
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
604
|
-
int(salt.size()),
|
605
|
-
int(iterationCount),
|
606
|
-
EVP_sha256(),
|
607
|
-
couchbase::crypto::SHA256_DIGEST_SIZE,
|
608
|
-
reinterpret_cast<uint8_t*>(ret.data()));
|
609
|
-
if (err != 1) {
|
610
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA256): PKCS5_PBKDF2_HMAC failed" + std::to_string(err));
|
611
|
-
}
|
612
|
-
|
613
|
-
return ret;
|
614
|
-
}
|
615
|
-
|
616
|
-
static std::string
|
617
|
-
PBKDF2_HMAC_SHA512(const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
618
|
-
{
|
619
|
-
std::string ret;
|
620
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
621
|
-
auto err = PKCS5_PBKDF2_HMAC(pass.data(),
|
622
|
-
int(pass.size()),
|
623
|
-
reinterpret_cast<const uint8_t*>(salt.data()),
|
624
|
-
int(salt.size()),
|
625
|
-
int(iterationCount),
|
626
|
-
EVP_sha512(),
|
627
|
-
couchbase::crypto::SHA512_DIGEST_SIZE,
|
628
|
-
reinterpret_cast<uint8_t*>(ret.data()));
|
629
|
-
if (err != 1) {
|
630
|
-
throw std::runtime_error("couchbase::crypto::PBKDF2_HMAC(SHA512): PKCS5_PBKDF2_HMAC failed" + std::to_string(err));
|
631
|
-
}
|
632
|
-
|
633
|
-
return ret;
|
634
|
-
}
|
635
|
-
|
636
|
-
static std::string
|
637
|
-
digest_sha1(std::string_view data)
|
638
|
-
{
|
639
|
-
std::string ret;
|
640
|
-
ret.resize(couchbase::crypto::SHA1_DIGEST_SIZE);
|
641
|
-
SHA1(reinterpret_cast<const uint8_t*>(data.data()), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
642
|
-
return ret;
|
643
|
-
}
|
644
|
-
|
645
|
-
static std::string
|
646
|
-
digest_sha256(std::string_view data)
|
647
|
-
{
|
648
|
-
std::string ret;
|
649
|
-
ret.resize(couchbase::crypto::SHA256_DIGEST_SIZE);
|
650
|
-
SHA256(reinterpret_cast<const uint8_t*>(data.data()), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
651
|
-
return ret;
|
652
|
-
}
|
653
|
-
|
654
|
-
static std::string
|
655
|
-
digest_sha512(std::string_view data)
|
656
|
-
{
|
657
|
-
std::string ret;
|
658
|
-
ret.resize(couchbase::crypto::SHA512_DIGEST_SIZE);
|
659
|
-
SHA512(reinterpret_cast<const uint8_t*>(data.data()), data.size(), reinterpret_cast<uint8_t*>(ret.data()));
|
660
|
-
return ret;
|
661
|
-
}
|
662
|
-
|
663
|
-
struct EVP_CIPHER_CTX_Deleter {
|
664
|
-
void operator()(EVP_CIPHER_CTX* ctx)
|
665
|
-
{
|
666
|
-
if (ctx != nullptr) {
|
667
|
-
EVP_CIPHER_CTX_free(ctx);
|
668
|
-
}
|
669
|
-
}
|
670
|
-
};
|
671
|
-
|
672
|
-
using unique_EVP_CIPHER_CTX_ptr = std::unique_ptr<EVP_CIPHER_CTX, EVP_CIPHER_CTX_Deleter>;
|
673
|
-
|
674
|
-
/**
|
675
|
-
* Get the OpenSSL Cipher to use for the encryption, and validate
|
676
|
-
* the input key and iv sizes
|
677
|
-
*/
|
678
|
-
static const EVP_CIPHER*
|
679
|
-
getCipher(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv)
|
680
|
-
{
|
681
|
-
const EVP_CIPHER* cip = nullptr;
|
682
|
-
|
683
|
-
switch (cipher) {
|
684
|
-
case couchbase::crypto::Cipher::AES_256_cbc:
|
685
|
-
cip = EVP_aes_256_cbc();
|
686
|
-
break;
|
687
|
-
}
|
688
|
-
|
689
|
-
if (cip == nullptr) {
|
690
|
-
throw std::invalid_argument("couchbase::crypto::getCipher: Unknown Cipher " + std::to_string(int(cipher)));
|
691
|
-
}
|
692
|
-
|
693
|
-
if (int(key.size()) != EVP_CIPHER_key_length(cip)) {
|
694
|
-
throw std::invalid_argument("couchbase::crypto::getCipher: Cipher requires a key "
|
695
|
-
"length of " +
|
696
|
-
std::to_string(EVP_CIPHER_key_length(cip)) + " provided key with length " + std::to_string(key.size()));
|
697
|
-
}
|
698
|
-
|
699
|
-
if (int(iv.size()) != EVP_CIPHER_iv_length(cip)) {
|
700
|
-
throw std::invalid_argument("couchbase::crypto::getCipher: Cipher requires a iv "
|
701
|
-
"length of " +
|
702
|
-
std::to_string(EVP_CIPHER_iv_length(cip)) + " provided iv with length " + std::to_string(iv.size()));
|
703
|
-
}
|
704
|
-
|
705
|
-
return cip;
|
706
|
-
}
|
707
|
-
|
708
|
-
std::string
|
709
|
-
encrypt(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
710
|
-
{
|
711
|
-
unique_EVP_CIPHER_CTX_ptr ctx(EVP_CIPHER_CTX_new());
|
712
|
-
|
713
|
-
auto* cip = getCipher(cipher, key, iv);
|
714
|
-
if (EVP_EncryptInit_ex(
|
715
|
-
ctx.get(), cip, nullptr, reinterpret_cast<const uint8_t*>(key.data()), reinterpret_cast<const uint8_t*>(iv.data())) != 1) {
|
716
|
-
throw std::runtime_error("couchbase::crypto::encrypt: EVP_EncryptInit_ex failed");
|
717
|
-
}
|
718
|
-
|
719
|
-
std::string ret;
|
720
|
-
ret.resize(data.size() + static_cast<std::string_view::size_type>(EVP_CIPHER_block_size(cip)));
|
721
|
-
int len1 = int(ret.size());
|
722
|
-
|
723
|
-
if (EVP_EncryptUpdate(
|
724
|
-
ctx.get(), reinterpret_cast<uint8_t*>(ret.data()), &len1, reinterpret_cast<const uint8_t*>(data.data()), int(data.size())) != 1) {
|
725
|
-
throw std::runtime_error("couchbase::crypto::encrypt: EVP_EncryptUpdate failed");
|
726
|
-
}
|
727
|
-
|
728
|
-
int len2 = int(ret.size()) - len1;
|
729
|
-
if (EVP_EncryptFinal_ex(ctx.get(), reinterpret_cast<uint8_t*>(ret.data()) + len1, &len2) != 1) {
|
730
|
-
throw std::runtime_error("couchbase::crypto::encrypt: EVP_EncryptFinal_ex failed");
|
731
|
-
}
|
732
|
-
|
733
|
-
// Resize the destination to the sum of the two length fields
|
734
|
-
ret.resize(size_t(len1) + size_t(len2));
|
735
|
-
return ret;
|
736
|
-
}
|
737
|
-
|
738
|
-
std::string
|
739
|
-
decrypt(const couchbase::crypto::Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
740
|
-
{
|
741
|
-
unique_EVP_CIPHER_CTX_ptr ctx(EVP_CIPHER_CTX_new());
|
742
|
-
auto* cip = getCipher(cipher, key, iv);
|
743
|
-
|
744
|
-
if (EVP_DecryptInit_ex(
|
745
|
-
ctx.get(), cip, nullptr, reinterpret_cast<const uint8_t*>(key.data()), reinterpret_cast<const uint8_t*>(iv.data())) != 1) {
|
746
|
-
throw std::runtime_error("couchbase::crypto::decrypt: EVP_DecryptInit_ex failed");
|
747
|
-
}
|
748
|
-
|
749
|
-
std::string ret;
|
750
|
-
ret.resize(data.size());
|
751
|
-
int len1 = int(ret.size());
|
752
|
-
|
753
|
-
if (EVP_DecryptUpdate(
|
754
|
-
ctx.get(), reinterpret_cast<uint8_t*>(ret.data()), &len1, reinterpret_cast<const uint8_t*>(data.data()), int(data.size())) != 1) {
|
755
|
-
throw std::runtime_error("couchbase::crypto::decrypt: EVP_DecryptUpdate failed");
|
756
|
-
}
|
757
|
-
|
758
|
-
int len2 = int(data.size()) - len1;
|
759
|
-
if (EVP_DecryptFinal_ex(ctx.get(), reinterpret_cast<uint8_t*>(ret.data()) + len1, &len2) != 1) {
|
760
|
-
throw std::runtime_error("couchbase::crypto::decrypt: EVP_DecryptFinal_ex failed");
|
761
|
-
}
|
762
|
-
|
763
|
-
// Resize the destination to the sum of the two length fields
|
764
|
-
ret.resize(size_t(len1) + size_t(len2));
|
765
|
-
return ret;
|
766
|
-
}
|
767
|
-
|
768
|
-
#endif
|
769
|
-
|
770
|
-
} // namespace internal
|
771
|
-
|
772
|
-
std::string
|
773
|
-
couchbase::crypto::HMAC(const Algorithm algorithm, std::string_view key, std::string_view data)
|
774
|
-
{
|
775
|
-
switch (algorithm) {
|
776
|
-
case Algorithm::SHA1:
|
777
|
-
return internal::HMAC_SHA1(key, data);
|
778
|
-
case Algorithm::SHA256:
|
779
|
-
return internal::HMAC_SHA256(key, data);
|
780
|
-
case Algorithm::SHA512:
|
781
|
-
return internal::HMAC_SHA512(key, data);
|
782
|
-
}
|
783
|
-
|
784
|
-
throw std::invalid_argument("couchbase::crypto::HMAC: Unknown Algorithm: " + std::to_string(int(algorithm)));
|
785
|
-
}
|
786
|
-
|
787
|
-
std::string
|
788
|
-
couchbase::crypto::PBKDF2_HMAC(const Algorithm algorithm, const std::string& pass, std::string_view salt, unsigned int iterationCount)
|
789
|
-
{
|
790
|
-
switch (algorithm) {
|
791
|
-
case Algorithm::SHA1:
|
792
|
-
return internal::PBKDF2_HMAC_SHA1(pass, salt, iterationCount);
|
793
|
-
case Algorithm::SHA256:
|
794
|
-
return internal::PBKDF2_HMAC_SHA256(pass, salt, iterationCount);
|
795
|
-
case Algorithm::SHA512:
|
796
|
-
return internal::PBKDF2_HMAC_SHA512(pass, salt, iterationCount);
|
797
|
-
}
|
798
|
-
|
799
|
-
throw std::invalid_argument("couchbase::crypto::PBKDF2_HMAC: Unknown Algorithm: " + std::to_string(int(algorithm)));
|
800
|
-
}
|
801
|
-
|
802
|
-
static inline void
|
803
|
-
verifyLegalAlgorithm(const couchbase::crypto::Algorithm al)
|
804
|
-
{
|
805
|
-
switch (al) {
|
806
|
-
case couchbase::crypto::Algorithm::SHA1:
|
807
|
-
case couchbase::crypto::Algorithm::SHA256:
|
808
|
-
case couchbase::crypto::Algorithm::SHA512:
|
809
|
-
return;
|
810
|
-
}
|
811
|
-
throw std::invalid_argument("verifyLegalAlgorithm: Unknown Algorithm: " + std::to_string(int(al)));
|
812
|
-
}
|
813
|
-
|
814
|
-
bool
|
815
|
-
couchbase::crypto::isSupported(const Algorithm algorithm)
|
816
|
-
{
|
817
|
-
verifyLegalAlgorithm(algorithm);
|
818
|
-
|
819
|
-
return true;
|
820
|
-
}
|
821
|
-
|
822
|
-
std::string
|
823
|
-
couchbase::crypto::digest(const Algorithm algorithm, std::string_view data)
|
824
|
-
{
|
825
|
-
switch (algorithm) {
|
826
|
-
case Algorithm::SHA1:
|
827
|
-
return internal::digest_sha1(data);
|
828
|
-
case Algorithm::SHA256:
|
829
|
-
return internal::digest_sha256(data);
|
830
|
-
case Algorithm::SHA512:
|
831
|
-
return internal::digest_sha512(data);
|
832
|
-
}
|
833
|
-
|
834
|
-
throw std::invalid_argument("couchbase::crypto::digest: Unknown Algorithm" + std::to_string(int(algorithm)));
|
835
|
-
}
|
836
|
-
|
837
|
-
std::string
|
838
|
-
couchbase::crypto::encrypt(const Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
839
|
-
{
|
840
|
-
// We only support a single encryption scheme right now.
|
841
|
-
// Verify the input parameters (no need of calling the internal library
|
842
|
-
// functions in order to fetch these details)
|
843
|
-
if (cipher != Cipher::AES_256_cbc) {
|
844
|
-
throw std::invalid_argument("couchbase::crypto::encrypt(): Unsupported cipher");
|
845
|
-
}
|
846
|
-
|
847
|
-
if (key.size() != 32) {
|
848
|
-
throw std::invalid_argument("couchbase::crypto::encrypt(): Invalid key size: " + std::to_string(key.size()) + " (expected 32)");
|
849
|
-
}
|
850
|
-
|
851
|
-
if (iv.size() != 16) {
|
852
|
-
throw std::invalid_argument("couchbase::crypto::encrypt(): Invalid iv size: " + std::to_string(iv.size()) + " (expected 16)");
|
853
|
-
}
|
854
|
-
|
855
|
-
return internal::encrypt(cipher, key, iv, data);
|
856
|
-
}
|
857
|
-
|
858
|
-
std::string
|
859
|
-
couchbase::crypto::decrypt(const Cipher cipher, std::string_view key, std::string_view iv, std::string_view data)
|
860
|
-
{
|
861
|
-
// We only support a single decryption scheme right now.
|
862
|
-
// Verify the input parameters (no need of calling the internal library
|
863
|
-
// functions in order to fetch these details)
|
864
|
-
if (cipher != Cipher::AES_256_cbc) {
|
865
|
-
throw std::invalid_argument("couchbase::crypto::decrypt(): Unsupported cipher");
|
866
|
-
}
|
867
|
-
|
868
|
-
if (key.size() != 32) {
|
869
|
-
throw std::invalid_argument("couchbase::crypto::decrypt(): Invalid key size: " + std::to_string(key.size()) + " (expected 32)");
|
870
|
-
}
|
871
|
-
|
872
|
-
if (iv.size() != 16) {
|
873
|
-
throw std::invalid_argument("couchbase::crypto::decrypt(): Invalid iv size: " + std::to_string(iv.size()) + " (expected 16)");
|
874
|
-
}
|
875
|
-
|
876
|
-
return internal::decrypt(cipher, key, iv, data);
|
877
|
-
}
|
878
|
-
|
879
|
-
couchbase::crypto::Cipher
|
880
|
-
couchbase::crypto::to_cipher(const std::string& str)
|
881
|
-
{
|
882
|
-
if (str == "AES_256_cbc") {
|
883
|
-
return Cipher::AES_256_cbc;
|
884
|
-
}
|
885
|
-
|
886
|
-
throw std::invalid_argument("to_cipher: Unknown cipher: " + str);
|
887
|
-
}
|