jaraco / keyring

MIT License
1.24k stars 152 forks source link

Decode error messages #606

Open jaraco opened 1 year ago

jaraco commented 1 year ago

Currently, the macOS Keyring backend hard-codes a few error codes to messages. Better would be to use the API to resolve error codes to human-readable message strings.

I started looking into how to do it. I imagine it goes something like:

>> api._sec.SecCopyErrorMessageString(-25244)
-1797030505

But probably something needs to translate that integer response into a CFString object and convert that object to a Python string.

Maybe someone would be interested in determining how to do that?

abastola0 commented 9 months ago

Hi @jaraco. Can you please assign me to this issue.