CDRIVER-6300 CSFLE/QE Support for HTTP Proxies - #2318
Conversation
| if (!opts) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
Calling a setter with opts == NULL is almost certainly programmer error: recommend using BSON_ASSERT_PARAM instead of an if (!opts) (better consistency with *_set_kms_credential_provider_callback()).
There was a problem hiding this comment.
Unresolving since this is not-yet addressed.
Aside: @mdb-ad I'd recommend using the 👍 react, rather than resolving, to acknowledge a comment when a reply isn't needed. As a reviewer, I generally prefer to resolve comments on re-review, as that cues me to remember what motivated the new changes.
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
| typedef mongoc_stream_t *(*mongoc_kms_connect_callback_fn_t) (const char *host, | ||
| uint16_t port, | ||
| int32_t connecttimeoutms, | ||
| void *user_data, | ||
| bson_error_t *error); |
There was a problem hiding this comment.
Suggest passing arguments through a new type similar to mongoc_oidc_callback_params_t. Though it adds more symbols, it more easily permits future extension by adding getters to the type.
Co-authored-by: Kevin Albertson <kevin.eric.albertson@gmail.com>
Testing with the proxy server (from drivers-evergreen-tools): https://spruce.corp.mongodb.com/version/6a3b6a38da38fa0007d62c53