HomeClusterLabs Projects

Refactor: liblrmd: functionize key cache better

Description

Refactor: liblrmd: functionize key cache better

This separates read_gnutls_key(), which previously retrieved the
Pacemaker Remote key from either cache or a file, into multiple functions.

read_gnutls_key() now only reads a key from a file.

The key cache has been made into a struct with accessor functions, for
code isolation and readability, and to make future changes easier.

get_remote_key() is a new function that retrieves the key from cache or file.

Details

Provenance
kgaillotAuthored on May 7 2021, 12:26 PM
Parents
rP3491b995cbf7: Refactor: liblrmd: make agent check return bool
Branches
Unknown
Tags
Unknown

Event Timeline