Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108196

SecKeychain is deprecated [-Wdeprecated-declarations] when compiling qnetworkaccessmanager.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.7, 6.4.2, 6.5.0 Beta1
    • 6.5.0 FF
    • Network
    • None
    • ARM-based Mac, macOS Ventura
    • macOS
    • c28ad246d1 (qt/qtbase/6.4) 02b9033d50 (qt/qtbase/dev) c28ad246d1 (qt/tqtc-qtbase/6.4) 02b9033d50 (qt/tqtc-qtbase/dev) bcd7953aab (qt/tqtc-qtbase/6.2)

    Description

      [478/807] Building CXX object qtbase/src/network/CMakeFiles/Network.dir/access/qnetworkaccessmanager.cpp.o
      /Users/paul/src/qt6/qtbase/src/network/access/qnetworkaccessmanager.cpp:94:11: warning: 'SecKeychainFindInternetPassword' is deprecated: first deprecated in macOS 10.10 - SecKeychain is deprecated [-Wdeprecated-declarations]
      err = SecKeychainFindInternetPassword(NULL,
      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h:592:10: note: 'SecKeychainFindInternetPassword' has been explicitly marked deprecated here
      OSStatus SecKeychainFindInternetPassword(CFTypeRef __nullable keychainOrArray, UInt32 serverNameLength, const char * __nullable serverName, UInt32 securityDomainLength, const char * __nullable securityDomain, UInt32 accountNameLength, const char * __nullable accountName, UInt32 pathLength, const char * __nullable path, UInt16 port, SecProtocolType protocol, SecAuthenticationType authenticationType, UInt32 * __nullable passwordLength, void * __nullable * __nullable passwordData, SecKeychainItemRef * __nullable CF_RETURNS_RETAINED itemRef)
      ^
      /Users/paul/src/qt6/qtbase/src/network/access/qnetworkaccessmanager.cpp:118:13: warning: 'SecKeychainItemCopyContent' is deprecated: first deprecated in macOS 10.10 - SecKeychain is deprecated [-Wdeprecated-declarations]
      if (SecKeychainItemCopyContent(itemRef, NULL, &attrList, &length, &outData) == noErr) {
      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:210:10: note: 'SecKeychainItemCopyContent' has been explicitly marked deprecated here
      OSStatus SecKeychainItemCopyContent(SecKeychainItemRef itemRef, SecItemClass * __nullable itemClass, SecKeychainAttributeList * __nullable attrList, UInt32 * __nullable length, void * __nullable * __nullable outData)
      ^
      /Users/paul/src/qt6/qtbase/src/network/access/qnetworkaccessmanager.cpp:121:13: warning: 'SecKeychainItemFreeContent' is deprecated: first deprecated in macOS 10.10 - SecKeychain is deprecated [-Wdeprecated-declarations]
      SecKeychainItemFreeContent(&attrList,outData);
      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h:220:10: note: 'SecKeychainItemFreeContent' has been explicitly marked deprecated here
      OSStatus SecKeychainItemFreeContent(SecKeychainAttributeList * __nullable attrList, void * __nullable data)
      ^
      3 warnings generated.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            paulwicking Paul Wicking
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes