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

Expose version of csfle shared library

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Unknown
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      Background
      It may be helpful to consumers of libmongocrypt to report the version of the csfle library being linked. With mongocryptd, consumers could run mongocryptd --version to determine the version. This is no longer as straightforward.

      csfle exposes a function mongo_csfle_v1_get_version_str to return the version.

      Scope
      Add API to libmongocrypt to report the version of csfle. If csfle was not linked, return NULL. Proposed API:

      /**
       * Returns the version string for the linked csfle shared library for the passed mongocrypt_t.
       * If csfle was not linked, returns NULL and sets len to 0.
       * * @param[in] crypt The mongocrypt_t object.
       * @param[out] len  An optional length of the returned string. May be NULL.
       * @returns a NULL terminated version string for libmongocrypt.
       */
      MONGOCRYPT_EXPORT
      const char *
      mongocrypt_csfle_version (mongocrypt_t * crypt, uint32_t *len);
      

      Attachments

        Issue Links

          Activity

            People

              colby.pike@mongodb.com Colby Pike
              kevin.albertson@mongodb.com Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: