Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SecTrustedApplicationCopyData and so forth



Is the data returned by SecTrustedApplicationCopyData the data defined at initialisation time (or the most recent SecTrustedApplicationSetData), or is it the appropriate data for the application as it is on disk at the time of the call?

I'm just trying to clarify how I can verify the data. Is it safe to assume every call to SecTrustedApplicationCreateFromPath will return a new SecTrustedApplicationRef, even if there are existing ref's for the given path? Can I thus manually verify the application's state by comparing an older ref against one created "now"?

Is it even safe in any case to do this manually? I don't particularly plan on it, I'm just curious. Presumably there's nasty race conditions with the verification, so it's best to leave it up to the internal machinery to do it all as necessary. But it might be handy at times to passively determine the state of an application.

Wade Tregaskis

    ICQ: 40056898
    AIM, Yahoo & Skype: wadetregaskis
    MSN: email@hidden
    iChat & email: email@hidden
    Jabber: email@hidden
    Google Talk: email@hidden

    http://homepage.mac.com/wadetregaskis/

-- Sed quis custodiet ipsos custodes?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.