# The canonical version of this file is maintained in the rra-c-util package,
# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
#
-# Copyright 2020 Russ Allbery <eagle@eyrie.org>
+# Copyright 2020-2021 Russ Allbery <eagle@eyrie.org>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
BasedOnStyle: LLVM
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
+AllowShortEnumsOnASingleLine: false
AlwaysBreakAfterReturnType: AllDefinitions
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: WebKit
* on comma, space, and tab. (This is the same as would be done with the
* value of a PAM setting when the target variable type is a list.)
*/
-enum type {
+enum type
+{
TYPE_BOOLEAN,
TYPE_NUMBER,
TYPE_TIME,
typedef int (*pam_call)(pam_handle_t *, int, int, const char **);
/* The possible PAM groups as element numbers in an array of options. */
-enum group_type {
+enum group_type
+{
GROUP_ACCOUNT = 0,
GROUP_AUTH = 1,
GROUP_PASSWORD = 2,
#endif
/* Test status codes. */
-enum test_status { TEST_FAIL, TEST_PASS, TEST_SKIP, TEST_INVALID };
+enum test_status
+{
+ TEST_FAIL,
+ TEST_PASS,
+ TEST_SKIP,
+ TEST_INVALID
+};
/* Really, just a boolean, but this is more self-documenting. */
-enum test_verbose { CONCISE = 0, VERBOSE = 1 };
+enum test_verbose
+{
+ CONCISE = 0,
+ VERBOSE = 1
+};
/* Indicates the state of our plan. */
-enum plan_status {
+enum plan_status
+{
PLAN_INIT, /* Nothing seen yet. */
PLAN_FIRST, /* Plan seen before any tests. */
PLAN_PENDING, /* Test seen and no plan yet. */
* certain configuration information isn't available. "_BOTH" means that the
* tests require both keytab and password, but PKINIT is not required.
*/
-enum kerberos_needs {
+enum kerberos_needs
+{
/* clang-format off */
TAP_KRB_NEEDS_NONE = 0x00,
TAP_KRB_NEEDS_KEYTAB = 0x01,