VirtualBox

Changeset 85343 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2020 4:07:28 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139324
Message:

IPRT/RTCrStoreCreateSnapshotById-darwin.cpp: Ignore deprecation warnings for SecKeychainSearchCreateFromAttributes and SecKeychainSearchCopyNext for now (see @todo why). bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp

    r82968 r85343  
    9595                                               int rc, PRTERRINFO pErrInfo)
    9696{
     97    /** @todo The SecKeychainSearchCreateFromAttributes and
     98     * SecKeychainSearchCopyNext APIs have been officially deprecated since 10.7
     99     * according to the header files.  However, the perferred API,
     100     * SecItemCopyMatching (and possibly SecTrustCopyAnchorCertificates) would
     101     * require a larger rewrite here and that's just not worth it right now.  We can
     102     * do that should these APIs be removed (unlikely given the amount of grep hits
     103     * in the public 10.15.3 sources). */
     104
    97105    /*
    98106     * Enumerate the certificates in the keychain.
    99107     */
     108    RT_GCC_NO_WARN_DEPRECATED_BEGIN
    100109    SecKeychainSearchRef hSearch;
    101110    OSStatus orc = SecKeychainSearchCreateFromAttributes(hKeychain, kSecCertificateItemClass, NULL, &hSearch);
     
    149158        rc = RTErrInfoAddF(pErrInfo, -VERR_SEARCH_ERROR,
    150159                           "  SecKeychainSearchCreateFromAttributes failed with %#x", orc);
     160    RT_GCC_NO_WARN_DEPRECATED_END
    151161    return rc;
    152162}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette