Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-616

Add API to determine if built with native crypto

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Summary

      Add API to determine if built with native crypto

      Example:

          /**
          * Returns true if libmongocrypt was built with native crypto support.
          *
          * If libmongocrypt was not built with native crypto support, setting crypto
          * hooks is required.
          *
          * @param[in] crypt The @ref mongocrypt_t object.
          *
          * @returns True if libmongocrypt was built with native crypto support.
          */
          MONGOCRYPT_EXPORT
          bool mongocrypt_is_crypto_available(void);
          

      Background & Motivation

      Motivated by a proposed solution in DRIVERS-2718:

      Add a method in CAPI like `bool isCryptoAvailable()`. Change the wrapper to call that method and only register crypto callbacks if it returns false.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: