Blame lib/priority_options.h

Packit aea12f
/* ANSI-C code produced by gperf version 3.1 */
Packit aea12f
/* Command-line: gperf --global-table -t priority_options.gperf  */
Packit aea12f
/* Computed positions: -k'1,$' */
Packit aea12f
Packit aea12f
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
Packit aea12f
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
Packit aea12f
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
Packit aea12f
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
Packit aea12f
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
Packit aea12f
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
Packit aea12f
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
Packit aea12f
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
Packit aea12f
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
Packit aea12f
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
Packit aea12f
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
Packit aea12f
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
Packit aea12f
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
Packit aea12f
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
Packit aea12f
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
Packit aea12f
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
Packit aea12f
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
Packit aea12f
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
Packit aea12f
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
Packit aea12f
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
Packit aea12f
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
Packit aea12f
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
Packit aea12f
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
Packit aea12f
/* The character set is not based on ISO-646.  */
Packit aea12f
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
Packit aea12f
#endif
Packit aea12f
Packit aea12f
#line 1 "priority_options.gperf"
Packit aea12f
Packit aea12f
typedef void (*option_set_func)(gnutls_priority_t);
Packit aea12f
#line 6 "priority_options.gperf"
Packit aea12f
struct priority_options_st { const char *name; option_set_func func; };
Packit aea12f
Packit aea12f
#define TOTAL_KEYWORDS 34
Packit aea12f
#define MIN_WORD_LENGTH 6
Packit aea12f
#define MAX_WORD_LENGTH 32
Packit aea12f
#define MIN_HASH_VALUE 6
Packit aea12f
#define MAX_HASH_VALUE 52
Packit aea12f
/* maximum key range = 47, duplicates = 0 */
Packit aea12f
Packit aea12f
#ifdef __GNUC__
Packit aea12f
__inline
Packit aea12f
#else
Packit aea12f
#ifdef __cplusplus
Packit aea12f
inline
Packit aea12f
#endif
Packit aea12f
#endif
Packit aea12f
static unsigned int
Packit aea12f
hash (register const char *str, register size_t len)
Packit aea12f
{
Packit aea12f
  static const unsigned char asso_values[] =
Packit aea12f
    {
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 25,
Packit aea12f
      30, 53, 53,  5, 53, 53,  5, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53,  5, 53, 35,  0, 10,
Packit aea12f
       0, 30,  0, 53, 53,  0, 15,  0,  0, 53,
Packit aea12f
       0, 53, 53, 10,  5,  5,  0,  5, 53, 25,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
Packit aea12f
      53, 53, 53, 53, 53, 53
Packit aea12f
    };
Packit aea12f
  return len + asso_values[(unsigned char)str[len - 1]] + asso_values[(unsigned char)str[0]];
Packit aea12f
}
Packit aea12f
Packit aea12f
static const struct priority_options_st wordlist[] =
Packit aea12f
  {
Packit aea12f
    {""}, {""}, {""}, {""}, {""}, {""},
Packit aea12f
#line 12 "priority_options.gperf"
Packit aea12f
    {"NO_ETM", enable_no_etm},
Packit aea12f
    {""}, {""},
Packit aea12f
#line 13 "priority_options.gperf"
Packit aea12f
    {"FORCE_ETM", enable_force_etm},
Packit aea12f
    {""},
Packit aea12f
#line 9 "priority_options.gperf"
Packit aea12f
    {"DUMBFW", enable_dumbfw},
Packit aea12f
#line 34 "priority_options.gperf"
Packit aea12f
    {"PROFILE_HIGH", enable_profile_high},
Packit aea12f
#line 27 "priority_options.gperf"
Packit aea12f
    {"FALLBACK_SCSV", enable_fallback_scsv},
Packit aea12f
#line 33 "priority_options.gperf"
Packit aea12f
    {"PROFILE_MEDIUM", enable_profile_medium},
Packit aea12f
#line 14 "priority_options.gperf"
Packit aea12f
    {"NO_SESSION_HASH", enable_no_ext_master_secret},
Packit aea12f
#line 31 "priority_options.gperf"
Packit aea12f
    {"PROFILE_LOW", enable_profile_low},
Packit aea12f
#line 30 "priority_options.gperf"
Packit aea12f
    {"PROFILE_VERY_WEAK", enable_profile_very_weak},
Packit aea12f
#line 35 "priority_options.gperf"
Packit aea12f
    {"PROFILE_ULTRA", enable_profile_ultra},
Packit aea12f
#line 16 "priority_options.gperf"
Packit aea12f
    {"VERIFY_ALLOW_BROKEN", enable_verify_allow_broken},
Packit aea12f
#line 11 "priority_options.gperf"
Packit aea12f
    {"NO_TICKETS", enable_no_tickets},
Packit aea12f
#line 25 "priority_options.gperf"
Packit aea12f
    {"PARTIAL_RENEGOTIATION", enable_partial_safe_renegotiation},
Packit aea12f
#line 37 "priority_options.gperf"
Packit aea12f
    {"PROFILE_SUITEB128", enable_profile_suiteb128},
Packit aea12f
#line 10 "priority_options.gperf"
Packit aea12f
    {"NO_EXTENSIONS", enable_no_extensions},
Packit aea12f
#line 36 "priority_options.gperf"
Packit aea12f
    {"PROFILE_FUTURE", enable_profile_future},
Packit aea12f
#line 23 "priority_options.gperf"
Packit aea12f
    {"UNSAFE_RENEGOTIATION", enable_unsafe_renegotiation},
Packit aea12f
#line 26 "priority_options.gperf"
Packit aea12f
    {"DISABLE_SAFE_RENEGOTIATION", disable_safe_renegotiation},
Packit aea12f
#line 28 "priority_options.gperf"
Packit aea12f
    {"DISABLE_WILDCARDS", disable_wildcards},
Packit aea12f
#line 24 "priority_options.gperf"
Packit aea12f
    {"SAFE_RENEGOTIATION", enable_safe_renegotiation},
Packit aea12f
#line 20 "priority_options.gperf"
Packit aea12f
    {"SSL3_RECORD_VERSION", enable_ssl3_record_version},
Packit aea12f
#line 17 "priority_options.gperf"
Packit aea12f
    {"VERIFY_ALLOW_SIGN_RSA_MD5", enable_verify_allow_rsa_md5},
Packit aea12f
#line 15 "priority_options.gperf"
Packit aea12f
    {"STATELESS_COMPRESSION", dummy_func},
Packit aea12f
#line 22 "priority_options.gperf"
Packit aea12f
    {"VERIFY_ALLOW_X509_V1_CA_CRT", dummy_func},
Packit aea12f
    {""},
Packit aea12f
#line 41 "priority_options.gperf"
Packit aea12f
    {"ALLOW_SMALL_RECORDS", enable_allow_small_records},
Packit aea12f
#line 19 "priority_options.gperf"
Packit aea12f
    {"VERIFY_DISABLE_CRL_CHECKS", disable_crl_checks},
Packit aea12f
#line 21 "priority_options.gperf"
Packit aea12f
    {"LATEST_RECORD_VERSION", enable_latest_record_version},
Packit aea12f
#line 29 "priority_options.gperf"
Packit aea12f
    {"SERVER_PRECEDENCE", enable_server_precedence},
Packit aea12f
    {""},
Packit aea12f
#line 32 "priority_options.gperf"
Packit aea12f
    {"PROFILE_LEGACY", enable_profile_legacy},
Packit aea12f
    {""},
Packit aea12f
#line 39 "priority_options.gperf"
Packit aea12f
    {"NEW_PADDING", dummy_func},
Packit aea12f
#line 40 "priority_options.gperf"
Packit aea12f
    {"DEBUG_ALLOW_KEY_USAGE_VIOLATIONS", enable_server_key_usage_violations},
Packit aea12f
    {""}, {""}, {""},
Packit aea12f
#line 8 "priority_options.gperf"
Packit aea12f
    {"COMPAT", enable_compat},
Packit aea12f
#line 38 "priority_options.gperf"
Packit aea12f
    {"PROFILE_SUITEB192", enable_profile_suiteb192},
Packit aea12f
    {""}, {""}, {""}, {""},
Packit aea12f
#line 18 "priority_options.gperf"
Packit aea12f
    {"VERIFY_ALLOW_SIGN_WITH_SHA1", enable_verify_allow_sha1}
Packit aea12f
  };
Packit aea12f
Packit aea12f
static const struct priority_options_st *
Packit aea12f
in_word_set (register const char *str, register size_t len)
Packit aea12f
{
Packit aea12f
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
Packit aea12f
    {
Packit aea12f
      register unsigned int key = hash (str, len);
Packit aea12f
Packit aea12f
      if (key <= MAX_HASH_VALUE)
Packit aea12f
        {
Packit aea12f
          register const char *s = wordlist[key].name;
Packit aea12f
Packit aea12f
          if (*str == *s && !strcmp (str + 1, s + 1))
Packit aea12f
            return &wordlist[key];
Packit aea12f
        }
Packit aea12f
    }
Packit aea12f
  return 0;
Packit aea12f
}