[MONGOCRYPT-428] mongocrypt_ctx_provide_kms_providers missing MONGOCRYPT_EXPORT Created: 10/May/22  Updated: 28/Oct/23  Resolved: 11/May/22

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0-alpha2, 1.5.0, 1.4.1

Type: Bug Priority: Unknown
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to MONGOCRYPT-382 Support on-demand credentials Closed
Binding Changes: Not Needed
Case:

 Description   

The declaration of mongocrypt_ctx_provide_kms_providers in mongocrypt.h.in requires MONGOCRYPT_EXPORT.



 Comments   
Comment by Githook User [ 16/Jun/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-428 add missing MONGOCRYPT_EXPORT (#332)

Add to mongocrypt_ctx_provide_kms_providers.
Branch: r1.4
https://github.com/mongodb/libmongocrypt/commit/e592a2eafc8d7d7bc50186dd8845cf62ed0404cf

Comment by Jeffrey Yemin [ 16/Jun/22 ]

kevin.albertson@mongodb.com would this backport easily to the 1.4.x branch? We have another customer who is blocked by this and can't wait until 1.5.

CC ritesh.saigal@mongodb.com

Comment by Jörg Heinicke [ 19/May/22 ]

Hi,

We are facing following issue with the Java MongoDB Driver 4.6.0, CSFLE and mongodb-crypt-1.4.0 - but only on Windows while under Linux or Mac OS we don't face it). MONGOCRYPT-428 is the only thing I found which goes into the direction of the issue we face - is it actually the cause? Is the release of the fix (1.4.1 or 1.5.0) foreseeable?

Caused by: java.lang.UnsatisfiedLinkError: Error looking up function 'mongocrypt_ctx_provide_kms_providers': Die angegebene Prozedur wurde nicht gefunden. (Translates to: "The specified procedure could not be found.")
    at com.sun.jna.Function.<init>(Function.java:252)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:600)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:576)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:562)
    at com.sun.jna.Native.register(Native.java:1852)
    at com.sun.jna.Native.register(Native.java:1723)
    at com.mongodb.crypt.capi.CAPI.<clinit>(CAPI.java:852)
    at com.mongodb.crypt.capi.MongoCryptImpl.<init>(MongoCryptImpl.java:99)
    at com.mongodb.crypt.capi.MongoCrypts.create(MongoCrypts.java:36)
    at com.mongodb.client.internal.Crypts.create(Crypts.java:60)

Comment by Githook User [ 11/May/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-428 add missing MONGOCRYPT_EXPORT (#332)

Add to mongocrypt_ctx_provide_kms_providers.
Branch: master
https://github.com/mongodb/libmongocrypt/commit/f8fdcfd5a644415537fc1dec084e5715c17e8268

Generated at Thu Feb 08 09:08:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.