aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/crypto_backend.h
diff options
context:
space:
mode:
authorDavid Sommerseth2022-04-20 16:30:50 +0200
committerGert Doering2022-04-21 09:31:13 +0200
commitabe49856d81f51136d543539202a0bf8fb946474 (patch)
tree9f69ee496ba9d176531d8f352236aa9c6cf0c8db /src/openvpn/crypto_backend.h
parent9febbcbbcf3b1a786a1e77145d30a43eb7996dc4 (diff)
downloadopenvpn-abe49856d81f51136d543539202a0bf8fb946474.zip
openvpn-abe49856d81f51136d543539202a0bf8fb946474.tar.gz
The Great Reformatting of 2022
It was agreed it was time to do a full reformat fix-up of the whole source tree again. Over time (since late 2016) small changes has not adhered to our uncrustify defined coding style. This realigns to our current standards. Signed-off-by: David Sommerseth <davids@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20220420143050.52790-1-openvpn@sf.lists.topphemmelig.net> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24123.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/crypto_backend.h')
-rw-r--r--src/openvpn/crypto_backend.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openvpn/crypto_backend.h b/src/openvpn/crypto_backend.h
index 6d89b9e..8b48993 100644
--- a/src/openvpn/crypto_backend.h
+++ b/src/openvpn/crypto_backend.h
@@ -211,7 +211,8 @@ bool cipher_valid_reason(const char *ciphername, const char **reason);
*
* @return if the cipher is valid
*/
-static inline bool cipher_valid(const char *ciphername)
+static inline bool
+cipher_valid(const char *ciphername)
{
const char *reason;
return cipher_valid_reason(ciphername, &reason);
@@ -224,7 +225,8 @@ static inline bool cipher_valid(const char *ciphername)
* be NULL
* @return The cipher is defined and not the null (none) cipher
*/
-static inline bool cipher_defined(const char *ciphername)
+static inline bool
+cipher_defined(const char *ciphername)
{
ASSERT(ciphername);
return strcmp(ciphername, "none") != 0;
@@ -509,7 +511,8 @@ int cipher_ctx_final_check_tag(cipher_ctx_t *ctx, uint8_t *dst, int *dst_len,
* @param mdname Name of the digest
* @return
*/
-static inline bool md_defined(const char* mdname)
+static inline bool
+md_defined(const char *mdname)
{
return strcmp(mdname, "none") != 0;
}