Reimplement macOS TLS layer in terms of non-deprecated APIs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.11.0
    • Component/s: tls
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Katherine Walker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: