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

Add API to determine if built with native crypto

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 1.9.0
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: