Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3428

Implicitly enable TLS for tlsInsecure and tlsCertificateKeyFilePassword URI opts

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.15.3
    • Affects Version/s: 1.15.0
    • Component/s: tls, uri
    • None
    • Minor Change

      mongoc_uri_get_tls does not consider the MONGOC_URI_TLSINSECURE and MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD constants. This was likely an oversight in the PR for CDRIVER-2869.

      The Unified URI options spec leaves the decision to each driver to implicitly enable TLS if any related options are specified. The C driver has historically done so (even for the "insecure" options like ignoring certs), so it should be a quick fix to add these two options to the list of those considered.

      The docs for mongoc_uri_get_tls can also be improved to clarify that the function returns true if any TLS option is specified.

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

              Created:
              Updated:
              Resolved: