]> git.corax.cc Git - toolbox/commit
include/ipc: Clean up ipc_msg API
authorMatthias Kruk <m@m10k.eu>
Tue, 15 Jun 2021 23:23:55 +0000 (08:23 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 15 Jun 2021 23:23:55 +0000 (08:23 +0900)
commita1cb8ea96076c95ff5af844e1e9d983e060c30b2
treef38c711ac5ffbc2bdea66cf221efce7d5c288605
parent5fd8b22b8c55a8bdd9002fc8474595637cfde9ef
include/ipc: Clean up ipc_msg API

The ipc module currently doesn't provide functions to get all fields
contained within a message. Further, signature-related functions don't
return an error if the message is invalid or the signature could not be
retrieved for another reason.
This commit adds the missing functions to the public API of the ipc
module and fixes the behavior of signature related functions so the
caller can correctly determine if an error has occurred.

The following functions have been added:
 - ipc_msg_get_version()
 - ipc_msg_get_signature()
 - ipc_msg_get_signer_name()
 - ipc_msg_get_signer_email()
 - ipc_msg_get_signer_key()
include/ipc.sh