Security framework and objective.metadata
Mosen <[email protected]> Sun, 05 Mar 2017 22:22:46 +1100
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <1488712966.1980013.900854752.585EFBD5@webmail.messagingengine.com> |
Hi there. I have been using PyObjC for some time and up until recently i was using ctypes for the Security framework. I managed to generate a wrapper for Security by modifying objective.metadata slightly so that it wouldn't attempt to parse a linked list recursively in the Security headers. My solution is really hacky though (basically if this struct contains a member that is this struct we dont recurse into it). I'd be happy to work with someone to come up with a cleaner solution as I'm not very familiar with objective.metadata, clang, etc etc. Also will send a PR request for objective.metadata command line usage documentation. It look a few minutes to study the existing structure so I thought it was worth writing up. Thanks Ronald and devs. Mosen. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot