|
|
Reads a keyring from a file.
- Parameters:
-
| 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 |
- Returns:
- ops true if OK; ops_false on error
- Note:
- 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:
- ops_keyring_read_from_mem()
ops_keyring_free()
Example code: |