HomeClusterLabs Projects

Low: libcrmcommon: improve TLS session initialization failure handling

Description

Low: libcrmcommon: improve TLS session initialization failure handling

Refactor crm_create_anon_tls_session() and create_psk_tls_session() into
a single new function pcmk__new_tls_session(). On GnuTLS API errors, log a
useful error message and fail, rather than attempt to use a NULL or
insufficiently initialized session object.

Details

Provenance
kgaillotAuthored on Sep 6 2018, 1:23 PM
Parents
rP0c0aa7ac0b60: Refactor: all: move internal remote functions into own header
Branches
Unknown
Tags
Unknown

Event Timeline