Reads a keyring from a file.
|keyring ||Pointer to an existing ops_keyring_t struct |
|armour ||ops_true if file is armoured; else ops_false |
|filename ||Filename of keyring to be read|
- ops true if OK; ops_false on error
- Keyring struct must already exist.
Can be used with either a public or secret keyring.
You must call ops_keyring_free() after usage to free alloc-ed memory.
If you call this twice on the same keyring struct, without calling ops_keyring_free() between these calls, you will introduce a memory leak.
- See also: