-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
This ticket is a request to simplify the mongocrypt_ctx_setopt_key_alt_name api to accept key_alt_name as a char *.
The current version:
/** * Set the keyAltName to use for explicit encryption. * keyAltName should be a binary encoding a bson document * with the following format: * * { "keyAltName" : <BSON UTF8 value> } * ... mongocrypt_ctx_setopt_key_alt_name (mongocrypt_ctx_t *ctx, mongocrypt_binary_t *key_alt_name);
My suggested change:
mongocrypt_ctx_setopt_key_alt_name (mongocrypt_ctx_t *ctx, const char *key_alt_name, int len);
This matches how strings are passed in other parts of the api, eg:
mongocrypt_ctx_setopt_algorithm (mongocrypt_ctx_t *ctx, const char *algorithm, int len);
- is related to
-
PYTHON-1937 pymongocrypt add support for explicit encryption
- Closed