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

Reimplement macOS TLS layer in terms of non-deprecated APIs

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.11.0
    • Component/s: tls
    • None

      Secure Transport is deprecated. Let's reimplement the macOS TLS layer with the Network framework.

      Original description:
      The PHP driver is now using libmongoc 1.11.0, which introduced the following warning regarding SSLSetTrustedRoots:

      /Users/katherinewalker/drivers/driver-mongo-php/src/libmongoc/src/libmongoc/src/mongoc/mongoc-secure-transport.c:427:18: warning:
            'SSLSetTrustedRoots' is deprecated: first deprecated in macOS 10.9 [-Wdeprecated-declarations]
            success = !SSLSetTrustedRoots (
                       ^
      /System/Library/Frameworks/Security.framework/Headers/SecureTransport.h:1030:1: note: 'SSLSetTrustedRoots' has been explicitly marked
            deprecated here
      SSLSetTrustedRoots                      (SSLContextRef          context,
      ^
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: