Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/sock_alg_options.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(ALG_SET_KEY) || (defined(HAVE_DECL_ALG_SET_KEY) && HAVE_DECL_ALG_SET_KEY)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((ALG_SET_KEY) == (1), "ALG_SET_KEY != 1");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define ALG_SET_KEY 1
     12 #endif
     13 #if defined(ALG_SET_IV) || (defined(HAVE_DECL_ALG_SET_IV) && HAVE_DECL_ALG_SET_IV)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((ALG_SET_IV) == (2), "ALG_SET_IV != 2");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define ALG_SET_IV 2
     19 #endif
     20 #if defined(ALG_SET_OP) || (defined(HAVE_DECL_ALG_SET_OP) && HAVE_DECL_ALG_SET_OP)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((ALG_SET_OP) == (3), "ALG_SET_OP != 3");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define ALG_SET_OP 3
     26 #endif
     27 #if defined(ALG_SET_AEAD_ASSOCLEN) || (defined(HAVE_DECL_ALG_SET_AEAD_ASSOCLEN) && HAVE_DECL_ALG_SET_AEAD_ASSOCLEN)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((ALG_SET_AEAD_ASSOCLEN) == (4), "ALG_SET_AEAD_ASSOCLEN != 4");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define ALG_SET_AEAD_ASSOCLEN 4
     33 #endif
     34 #if defined(ALG_SET_AEAD_AUTHSIZE) || (defined(HAVE_DECL_ALG_SET_AEAD_AUTHSIZE) && HAVE_DECL_ALG_SET_AEAD_AUTHSIZE)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((ALG_SET_AEAD_AUTHSIZE) == (5), "ALG_SET_AEAD_AUTHSIZE != 5");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define ALG_SET_AEAD_AUTHSIZE 5
     40 #endif
     41 
     42 #ifndef XLAT_MACROS_ONLY
     43 
     44 # ifdef IN_MPERS
     45 
     46 #  error static const struct xlat sock_alg_options in mpers mode
     47 
     48 # else
     49 
     50 static
     51 const struct xlat sock_alg_options[] = {
     52  [ALG_SET_KEY] = XLAT(ALG_SET_KEY),
     53  [ALG_SET_IV] = XLAT(ALG_SET_IV),
     54  [ALG_SET_OP] = XLAT(ALG_SET_OP),
     55  [ALG_SET_AEAD_ASSOCLEN] = XLAT(ALG_SET_AEAD_ASSOCLEN),
     56  [ALG_SET_AEAD_AUTHSIZE] = XLAT(ALG_SET_AEAD_AUTHSIZE),
     57  XLAT_END
     58 };
     59 
     60 # endif /* !IN_MPERS */
     61 
     62 #endif /* !XLAT_MACROS_ONLY */
     63