--- embedaddon/ipsec-tools/src/racoon/cfparse.c 2012/02/21 22:39:10 1.1.1.1 +++ embedaddon/ipsec-tools/src/racoon/cfparse.c 2014/06/15 16:37:11 1.1.1.2 @@ -1,10 +1,8 @@ +/* A Bison parser, made by GNU Bison 2.6.2. */ -/* A Bison parser, made by GNU Bison 2.4.1. */ - -/* Skeleton implementation for Bison's Yacc-like parsers in C +/* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.4.1" +#define YYBISON_VERSION "2.6.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -60,14 +58,11 @@ /* Pull parsers. */ #define YYPULL 1 -/* Using locations. */ -#define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ - -/* Line 189 of yacc.c */ +/* Line 336 of yacc.c */ #line 5 "cfparse.y" /* @@ -239,16 +234,88 @@ static int load_x509(const char *file, char **filename return 0; } +static int process_rmconf() +{ + /* check a exchange mode */ + if (cur_rmconf->etypes == NULL) { + yyerror("no exchange mode specified.\n"); + return -1; + } -/* Line 189 of yacc.c */ -#line 246 "cfparse.c" + if (cur_rmconf->idvtype == IDTYPE_UNDEFINED) + cur_rmconf->idvtype = IDTYPE_ADDRESS; -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif + if (cur_rmconf->idvtype == IDTYPE_ASN1DN) { + if (cur_rmconf->mycertfile) { + if (cur_rmconf->idv) + yywarn("Both CERT and ASN1 ID " + "are set. Hope this is OK.\n"); + /* TODO: Preparse the DN here */ + } else if (cur_rmconf->idv) { + /* OK, using asn1dn without X.509. */ + } else { + yyerror("ASN1 ID not specified " + "and no CERT defined!\n"); + return -1; + } + } + if (duprmconf_finish(cur_rmconf)) + return -1; + + if (set_isakmp_proposal(cur_rmconf) != 0) + return -1; + + /* DH group settting if aggressive mode is there. */ + if (check_etypeok(cur_rmconf, (void*) ISAKMP_ETYPE_AGG)) { + struct isakmpsa *p; + int b = 0; + + /* DH group */ + for (p = cur_rmconf->proposal; p; p = p->next) { + if (b == 0 || (b && b == p->dh_group)) { + b = p->dh_group; + continue; + } + yyerror("DH group must be equal " + "in all proposals " + "when aggressive mode is " + "used.\n"); + return -1; + } + cur_rmconf->dh_group = b; + + if (cur_rmconf->dh_group == 0) { + yyerror("DH group must be set in the proposal.\n"); + return -1; + } + + /* DH group settting if PFS is required. */ + if (oakley_setdhgroup(cur_rmconf->dh_group, + &cur_rmconf->dhgrp) < 0) { + yyerror("failed to set DH value.\n"); + return -1; + } + } + + insrmconf(cur_rmconf); + + return 0; +} + + +/* Line 336 of yacc.c */ +#line 310 "cfparse.c" + +# ifndef YY_NULL +# if defined __cplusplus && 201103L <= __cplusplus +# define YY_NULL nullptr +# else +# define YY_NULL 0 +# endif +# endif + /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE @@ -257,12 +324,18 @@ static int load_x509(const char *file, char **filename # define YYERROR_VERBOSE 0 #endif -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 +/* In a future release of Bison, this section will be replaced + by #include "y.tab.h". */ +#ifndef YY_Y_TAB_H +# define YY_Y_TAB_H +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 #endif +#if YYDEBUG +extern int yydebug; +#endif - /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE @@ -617,14 +690,12 @@ static int load_x509(const char *file, char **filename - #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { +/* Line 350 of yacc.c */ +#line 247 "cfparse.y" -/* Line 214 of yacc.c */ -#line 177 "cfparse.y" - unsigned long num; vchar_t *val; struct remoteconf *rmconf; @@ -632,22 +703,37 @@ typedef union YYSTYPE struct sainfoalg *alg; - -/* Line 214 of yacc.c */ -#line 638 "cfparse.c" +/* Line 350 of yacc.c */ +#line 708 "cfparse.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif +extern YYSTYPE yylval; -/* Copy the second part of user declarations. */ +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int yyparse (void *YYPARSE_PARAM); +#else +int yyparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int yyparse (void); +#else +int yyparse (); +#endif +#endif /* ! YYPARSE_PARAM */ +#endif /* !YY_Y_TAB_H */ -/* Line 264 of yacc.c */ -#line 650 "cfparse.c" +/* Copy the second part of user declarations. */ +/* Line 353 of yacc.c */ +#line 736 "cfparse.c" + #ifdef short # undef short #endif @@ -696,7 +782,7 @@ typedef short int yytype_int16; #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ -# if YYENABLE_NLS +# if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) @@ -749,11 +835,12 @@ YYID (yyi) # define alloca _alloca # else # define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # endif @@ -776,24 +863,24 @@ YYID (yyi) # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif -# if (defined __cplusplus && ! defined _STDLIB_H \ +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc -# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ +# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free -# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ +# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif @@ -822,23 +909,7 @@ union yyalloc ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (YYID (0)) -# endif -# endif +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of @@ -858,19 +929,39 @@ union yyalloc #endif +#if defined YYCOPY_NEEDED && YYCOPY_NEEDED +/* Copy COUNT objects from SRC to DST. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (YYID (0)) +# endif +# endif +#endif /* !YYCOPY_NEEDED */ + /* YYFINAL -- State number of the termination state. */ #define YYFINAL 2 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 548 +#define YYLAST 534 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 174 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 203 +#define YYNNTS 204 /* YYNRULES -- Number of rules. */ -#define YYNRULES 379 +#define YYNRULES 381 /* YYNRULES -- Number of states. */ -#define YYNSTATES 689 +#define YYNSTATES 691 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 @@ -957,19 +1048,20 @@ static const yytype_uint16 yyprhs[] = 656, 657, 662, 663, 670, 671, 678, 679, 684, 686, 687, 692, 695, 696, 698, 699, 701, 703, 705, 707, 709, 710, 712, 713, 720, 721, 726, 727, 734, 735, - 740, 744, 747, 749, 750, 753, 754, 759, 760, 765, - 766, 771, 772, 777, 780, 781, 786, 787, 793, 794, - 800, 801, 806, 807, 813, 814, 819, 820, 825, 826, - 831, 832, 837, 838, 844, 845, 852, 853, 858, 859, - 865, 866, 873, 874, 879, 880, 885, 886, 891, 892, - 897, 898, 903, 904, 909, 910, 915, 916, 922, 923, - 929, 930, 936, 937, 942, 943, 948, 949, 954, 955, - 960, 961, 966, 967, 972, 973, 978, 979, 984, 985, - 990, 991, 996, 997, 1002, 1003, 1008, 1009, 1014, 1015, - 1020, 1021, 1026, 1027, 1034, 1035, 1040, 1041, 1048, 1049, - 1055, 1056, 1059, 1060, 1066, 1067, 1072, 1074, 1076, 1077, - 1079, 1081, 1082, 1085, 1086, 1093, 1094, 1101, 1102, 1107, - 1108, 1113, 1114, 1120, 1122, 1124, 1126, 1128, 1130, 1132 + 740, 742, 744, 748, 751, 753, 754, 757, 758, 763, + 764, 769, 770, 775, 776, 781, 784, 785, 790, 791, + 797, 798, 804, 805, 810, 811, 817, 818, 823, 824, + 829, 830, 835, 836, 841, 842, 848, 849, 856, 857, + 862, 863, 869, 870, 877, 878, 883, 884, 889, 890, + 895, 896, 901, 902, 907, 908, 913, 914, 919, 920, + 926, 927, 933, 934, 940, 941, 946, 947, 952, 953, + 958, 959, 964, 965, 970, 971, 976, 977, 982, 983, + 988, 989, 994, 995, 1000, 1001, 1006, 1007, 1012, 1013, + 1018, 1019, 1024, 1025, 1030, 1031, 1038, 1039, 1044, 1045, + 1052, 1053, 1059, 1060, 1063, 1064, 1070, 1071, 1076, 1078, + 1080, 1081, 1083, 1085, 1086, 1089, 1090, 1097, 1098, 1105, + 1106, 1111, 1112, 1117, 1118, 1124, 1126, 1128, 1130, 1132, + 1134, 1136 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ @@ -1031,111 +1123,112 @@ static const yytype_int16 yyrhs[] = -1, 274, 173, 273, -1, 160, -1, 276, -1, 276, 173, 275, -1, 160, -1, 70, 171, 278, 172, -1, -1, 278, 279, -1, -1, 71, 156, 280, 170, -1, - -1, 72, 156, 375, 281, 170, -1, -1, 73, 156, - 282, 170, -1, -1, 74, 156, 375, 283, 170, -1, - -1, 75, 156, 375, 284, 170, -1, -1, 76, 156, - 375, 285, 170, -1, -1, -1, 80, 287, 289, 291, + -1, 72, 156, 376, 281, 170, -1, -1, 73, 156, + 282, 170, -1, -1, 74, 156, 376, 283, 170, -1, + -1, 75, 156, 376, 284, 170, -1, -1, 76, 156, + 376, 285, 170, -1, -1, -1, 80, 287, 289, 291, 171, 292, 288, 172, -1, 83, -1, 83, 84, -1, 83, 290, -1, 290, 83, -1, 290, 84, -1, 290, 290, -1, 101, 161, 302, 303, 304, -1, 101, 161, 162, 302, 303, 304, -1, 101, 160, -1, -1, 81, - 101, 367, -1, 5, 160, -1, -1, 292, 293, -1, - -1, 146, 366, 294, 170, -1, -1, 151, 156, 295, - 170, -1, -1, 147, 148, 156, 375, 296, 170, -1, - -1, 147, 149, 156, 376, 297, 170, -1, -1, 77, + 101, 368, -1, 5, 160, -1, -1, 292, 293, -1, + -1, 146, 367, 294, 170, -1, -1, 151, 156, 295, + 170, -1, -1, 147, 148, 156, 376, 296, 170, -1, + -1, 147, 149, 156, 377, 297, 170, -1, -1, 77, 298, 299, 170, -1, 301, -1, -1, 301, 300, 173, 299, -1, 78, 305, -1, -1, 138, -1, -1, 139, -1, 140, -1, 156, -1, 141, -1, 142, -1, -1, 156, -1, -1, 82, 160, 85, 160, 307, 311, -1, - -1, 82, 160, 308, 311, -1, -1, 82, 312, 85, - 312, 309, 311, -1, -1, 82, 312, 310, 311, -1, - 171, 313, 172, -1, 83, 212, -1, 211, -1, -1, - 313, 314, -1, -1, 86, 211, 315, 170, -1, -1, - 87, 316, 362, 170, -1, -1, 89, 90, 317, 170, - -1, -1, 91, 92, 318, 170, -1, 93, 363, -1, - -1, 95, 160, 319, 170, -1, -1, 95, 107, 160, - 320, 170, -1, -1, 95, 108, 160, 321, 170, -1, - -1, 95, 106, 322, 170, -1, -1, 96, 107, 160, - 323, 170, -1, -1, 97, 157, 324, 170, -1, -1, - 98, 157, 325, 170, -1, -1, 99, 157, 326, 170, - -1, -1, 100, 157, 327, 170, -1, -1, 103, 101, - 367, 328, 170, -1, -1, 103, 101, 102, 367, 329, - 170, -1, -1, 135, 367, 330, 170, -1, -1, 104, - 101, 367, 331, 170, -1, -1, 104, 101, 102, 367, - 332, 170, -1, -1, 105, 157, 333, 170, -1, -1, - 109, 156, 334, 170, -1, -1, 110, 335, 366, 170, - -1, -1, 112, 157, 336, 170, -1, -1, 143, 157, - 337, 170, -1, -1, 143, 115, 338, 170, -1, -1, - 144, 156, 339, 170, -1, -1, 152, 160, 153, 340, - 170, -1, -1, 152, 160, 154, 341, 170, -1, -1, - 152, 160, 155, 342, 170, -1, -1, 145, 157, 343, - 170, -1, -1, 136, 157, 344, 170, -1, -1, 118, - 157, 345, 170, -1, -1, 118, 119, 346, 170, -1, - -1, 120, 157, 347, 170, -1, -1, 113, 157, 348, - 170, -1, -1, 114, 157, 349, 170, -1, -1, 114, - 115, 350, 170, -1, -1, 130, 157, 351, 170, -1, - -1, 131, 156, 352, 170, -1, -1, 132, 156, 353, - 170, -1, -1, 133, 156, 354, 170, -1, -1, 137, - 157, 355, 170, -1, -1, 137, 115, 356, 170, -1, - -1, 134, 156, 357, 170, -1, -1, 147, 148, 156, - 375, 358, 170, -1, -1, 116, 117, 359, 170, -1, - -1, 147, 149, 156, 376, 360, 170, -1, -1, 121, - 361, 171, 368, 172, -1, -1, 362, 88, -1, -1, - 107, 160, 160, 364, 170, -1, -1, 108, 160, 365, - 170, -1, 78, -1, 156, -1, -1, 161, -1, 160, - -1, -1, 368, 369, -1, -1, 147, 148, 156, 375, - 370, 170, -1, -1, 147, 149, 156, 376, 371, 170, - -1, -1, 110, 366, 372, 170, -1, -1, 126, 160, - 373, 170, -1, -1, 77, 78, 305, 374, 170, -1, - 167, -1, 168, -1, 169, -1, 163, -1, 164, -1, - 165, -1, 166, -1 + -1, 82, 160, 308, 312, -1, -1, 82, 313, 85, + 313, 309, 311, -1, -1, 82, 313, 310, 312, -1, + 312, -1, 170, -1, 171, 314, 172, -1, 83, 212, + -1, 211, -1, -1, 314, 315, -1, -1, 86, 211, + 316, 170, -1, -1, 87, 317, 363, 170, -1, -1, + 89, 90, 318, 170, -1, -1, 91, 92, 319, 170, + -1, 93, 364, -1, -1, 95, 160, 320, 170, -1, + -1, 95, 107, 160, 321, 170, -1, -1, 95, 108, + 160, 322, 170, -1, -1, 95, 106, 323, 170, -1, + -1, 96, 107, 160, 324, 170, -1, -1, 97, 157, + 325, 170, -1, -1, 98, 157, 326, 170, -1, -1, + 99, 157, 327, 170, -1, -1, 100, 157, 328, 170, + -1, -1, 103, 101, 368, 329, 170, -1, -1, 103, + 101, 102, 368, 330, 170, -1, -1, 135, 368, 331, + 170, -1, -1, 104, 101, 368, 332, 170, -1, -1, + 104, 101, 102, 368, 333, 170, -1, -1, 105, 157, + 334, 170, -1, -1, 109, 156, 335, 170, -1, -1, + 110, 336, 367, 170, -1, -1, 112, 157, 337, 170, + -1, -1, 143, 157, 338, 170, -1, -1, 143, 115, + 339, 170, -1, -1, 144, 156, 340, 170, -1, -1, + 152, 160, 153, 341, 170, -1, -1, 152, 160, 154, + 342, 170, -1, -1, 152, 160, 155, 343, 170, -1, + -1, 145, 157, 344, 170, -1, -1, 136, 157, 345, + 170, -1, -1, 118, 157, 346, 170, -1, -1, 118, + 119, 347, 170, -1, -1, 120, 157, 348, 170, -1, + -1, 113, 157, 349, 170, -1, -1, 114, 157, 350, + 170, -1, -1, 114, 115, 351, 170, -1, -1, 130, + 157, 352, 170, -1, -1, 131, 156, 353, 170, -1, + -1, 132, 156, 354, 170, -1, -1, 133, 156, 355, + 170, -1, -1, 137, 157, 356, 170, -1, -1, 137, + 115, 357, 170, -1, -1, 134, 156, 358, 170, -1, + -1, 147, 148, 156, 376, 359, 170, -1, -1, 116, + 117, 360, 170, -1, -1, 147, 149, 156, 377, 361, + 170, -1, -1, 121, 362, 171, 369, 172, -1, -1, + 363, 88, -1, -1, 107, 160, 160, 365, 170, -1, + -1, 108, 160, 366, 170, -1, 78, -1, 156, -1, + -1, 161, -1, 160, -1, -1, 369, 370, -1, -1, + 147, 148, 156, 376, 371, 170, -1, -1, 147, 149, + 156, 377, 372, 170, -1, -1, 110, 367, 373, 170, + -1, -1, 126, 160, 374, 170, -1, -1, 77, 78, + 305, 375, 170, -1, 167, -1, 168, -1, 169, -1, + 163, -1, 164, -1, 165, -1, 166, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 266, 266, 268, 271, 272, 273, 274, 275, 276, - 277, 278, 279, 280, 281, 282, 283, 284, 285, 290, - 292, 294, 298, 297, 308, 308, 310, 309, 320, 320, - 321, 321, 327, 326, 347, 347, 352, 366, 373, 385, - 388, 402, 404, 406, 409, 409, 410, 410, 411, 411, - 412, 412, 413, 413, 418, 420, 422, 426, 425, 432, - 431, 443, 442, 452, 451, 461, 460, 469, 469, 472, - 484, 485, 490, 490, 507, 509, 513, 512, 531, 530, - 549, 548, 567, 566, 585, 584, 594, 593, 606, 606, - 617, 619, 623, 622, 634, 633, 645, 644, 654, 653, - 665, 664, 674, 673, 685, 684, 696, 695, 707, 706, - 718, 717, 729, 728, 740, 739, 754, 756, 758, 762, - 761, 773, 772, 783, 785, 788, 787, 797, 796, 806, - 805, 813, 812, 825, 824, 834, 833, 847, 846, 860, - 859, 873, 872, 880, 879, 889, 888, 902, 901, 911, - 910, 920, 919, 933, 932, 946, 945, 956, 955, 965, - 964, 974, 973, 983, 982, 992, 991, 1005, 1004, 1018, - 1017, 1031, 1032, 1035, 1052, 1053, 1056, 1073, 1074, 1077, - 1100, 1101, 1104, 1138, 1139, 1142, 1179, 1181, 1183, 1187, - 1186, 1192, 1191, 1197, 1196, 1202, 1201, 1207, 1206, 1212, - 1211, 1228, 1236, 1227, 1275, 1280, 1285, 1290, 1295, 1300, - 1307, 1356, 1421, 1450, 1453, 1478, 1491, 1493, 1497, 1496, - 1502, 1501, 1507, 1506, 1512, 1511, 1523, 1523, 1530, 1535, - 1534, 1541, 1597, 1598, 1601, 1602, 1603, 1606, 1607, 1608, - 1611, 1612, 1618, 1617, 1648, 1647, 1668, 1667, 1691, 1690, - 1707, 1784, 1790, 1799, 1801, 1805, 1804, 1814, 1813, 1818, - 1818, 1819, 1819, 1820, 1822, 1821, 1842, 1841, 1859, 1858, - 1889, 1888, 1903, 1902, 1919, 1919, 1920, 1920, 1921, 1921, - 1922, 1922, 1924, 1923, 1933, 1932, 1942, 1941, 1959, 1958, - 1976, 1975, 1992, 1992, 1993, 1993, 1995, 1994, 2000, 2000, - 2001, 2001, 2002, 2002, 2003, 2003, 2013, 2013, 2020, 2020, - 2027, 2027, 2034, 2034, 2035, 2035, 2038, 2038, 2039, 2039, - 2040, 2040, 2041, 2041, 2043, 2042, 2054, 2053, 2065, 2064, - 2073, 2072, 2082, 2081, 2091, 2090, 2099, 2099, 2100, 2100, - 2102, 2101, 2107, 2106, 2111, 2111, 2113, 2112, 2127, 2126, - 2137, 2139, 2163, 2162, 2184, 2183, 2217, 2225, 2237, 2238, - 2239, 2241, 2243, 2247, 2246, 2252, 2251, 2264, 2263, 2269, - 2268, 2282, 2281, 2379, 2380, 2381, 2384, 2385, 2386, 2387 + 0, 336, 336, 338, 341, 342, 343, 344, 345, 346, + 347, 348, 349, 350, 351, 352, 353, 354, 355, 360, + 362, 364, 368, 367, 378, 378, 380, 379, 390, 390, + 391, 391, 397, 396, 417, 417, 422, 436, 443, 455, + 458, 472, 474, 476, 479, 479, 480, 480, 481, 481, + 482, 482, 483, 483, 488, 490, 492, 496, 495, 502, + 501, 513, 512, 522, 521, 531, 530, 539, 539, 542, + 554, 555, 560, 560, 577, 579, 583, 582, 601, 600, + 619, 618, 637, 636, 655, 654, 664, 663, 676, 676, + 687, 689, 693, 692, 704, 703, 715, 714, 724, 723, + 735, 734, 744, 743, 755, 754, 766, 765, 777, 776, + 788, 787, 799, 798, 810, 809, 824, 826, 828, 832, + 831, 843, 842, 853, 855, 858, 857, 867, 866, 876, + 875, 883, 882, 895, 894, 904, 903, 917, 916, 930, + 929, 943, 942, 950, 949, 959, 958, 972, 971, 981, + 980, 990, 989, 1003, 1002, 1016, 1015, 1026, 1025, 1035, + 1034, 1044, 1043, 1053, 1052, 1062, 1061, 1075, 1074, 1088, + 1087, 1101, 1102, 1105, 1122, 1123, 1126, 1143, 1144, 1147, + 1170, 1171, 1174, 1208, 1209, 1212, 1249, 1251, 1253, 1257, + 1256, 1262, 1261, 1267, 1266, 1272, 1271, 1277, 1276, 1282, + 1281, 1298, 1306, 1297, 1345, 1350, 1355, 1360, 1365, 1370, + 1377, 1426, 1491, 1520, 1523, 1548, 1561, 1563, 1567, 1566, + 1572, 1571, 1577, 1576, 1582, 1581, 1593, 1593, 1600, 1605, + 1604, 1611, 1667, 1668, 1671, 1672, 1673, 1676, 1677, 1678, + 1681, 1682, 1688, 1687, 1718, 1717, 1738, 1737, 1761, 1760, + 1777, 1778, 1786, 1793, 1799, 1808, 1810, 1814, 1813, 1823, + 1822, 1827, 1827, 1828, 1828, 1829, 1831, 1830, 1851, 1850, + 1868, 1867, 1898, 1897, 1912, 1911, 1928, 1928, 1929, 1929, + 1930, 1930, 1931, 1931, 1933, 1932, 1942, 1941, 1951, 1950, + 1968, 1967, 1985, 1984, 2001, 2001, 2002, 2002, 2004, 2003, + 2009, 2009, 2010, 2010, 2011, 2011, 2012, 2012, 2022, 2022, + 2029, 2029, 2036, 2036, 2043, 2043, 2044, 2044, 2047, 2047, + 2048, 2048, 2049, 2049, 2050, 2050, 2052, 2051, 2063, 2062, + 2074, 2073, 2082, 2081, 2091, 2090, 2100, 2099, 2108, 2108, + 2109, 2109, 2111, 2110, 2116, 2115, 2120, 2120, 2122, 2121, + 2136, 2135, 2146, 2148, 2172, 2171, 2193, 2192, 2226, 2234, + 2246, 2247, 2248, 2250, 2252, 2256, 2255, 2261, 2260, 2273, + 2272, 2278, 2277, 2291, 2290, 2388, 2389, 2390, 2393, 2394, + 2395, 2396 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +#if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = @@ -1199,17 +1292,18 @@ static const char *const yytname[] = "sainfo_name", "sainfo_id", "sainfo_param", "sainfo_specs", "sainfo_spec", "$@72", "$@73", "$@74", "$@75", "$@76", "algorithms", "$@77", "algorithm", "prefix", "port", "ul_proto", "keylength", - "remote_statement", "$@78", "$@79", "$@80", "$@81", "remote_specs_block", - "remote_index", "remote_specs", "remote_spec", "$@82", "$@83", "$@84", - "$@85", "$@86", "$@87", "$@88", "$@89", "$@90", "$@91", "$@92", "$@93", - "$@94", "$@95", "$@96", "$@97", "$@98", "$@99", "$@100", "$@101", - "$@102", "$@103", "$@104", "$@105", "$@106", "$@107", "$@108", "$@109", - "$@110", "$@111", "$@112", "$@113", "$@114", "$@115", "$@116", "$@117", - "$@118", "$@119", "$@120", "$@121", "$@122", "$@123", "$@124", "$@125", - "$@126", "$@127", "$@128", "exchange_types", "cert_spec", "$@129", - "$@130", "dh_group_num", "identifierstring", "isakmpproposal_specs", - "isakmpproposal_spec", "$@131", "$@132", "$@133", "$@134", "$@135", - "unittype_time", "unittype_byte", 0 + "remote_statement", "$@78", "$@79", "$@80", "$@81", + "remote_specs_inherit_block", "remote_specs_block", "remote_index", + "remote_specs", "remote_spec", "$@82", "$@83", "$@84", "$@85", "$@86", + "$@87", "$@88", "$@89", "$@90", "$@91", "$@92", "$@93", "$@94", "$@95", + "$@96", "$@97", "$@98", "$@99", "$@100", "$@101", "$@102", "$@103", + "$@104", "$@105", "$@106", "$@107", "$@108", "$@109", "$@110", "$@111", + "$@112", "$@113", "$@114", "$@115", "$@116", "$@117", "$@118", "$@119", + "$@120", "$@121", "$@122", "$@123", "$@124", "$@125", "$@126", "$@127", + "$@128", "exchange_types", "cert_spec", "$@129", "$@130", "dh_group_num", + "identifierstring", "isakmpproposal_specs", "isakmpproposal_spec", + "$@131", "$@132", "$@133", "$@134", "$@135", "unittype_time", + "unittype_byte", YY_NULL }; #endif @@ -1267,19 +1361,20 @@ static const yytype_uint16 yyr1[] = 295, 293, 296, 293, 297, 293, 298, 293, 299, 300, 299, 301, 302, 302, 303, 303, 303, 304, 304, 304, 305, 305, 307, 306, 308, 306, 309, 306, 310, 306, - 311, 312, 312, 313, 313, 315, 314, 316, 314, 317, - 314, 318, 314, 314, 319, 314, 320, 314, 321, 314, - 322, 314, 323, 314, 324, 314, 325, 314, 326, 314, - 327, 314, 328, 314, 329, 314, 330, 314, 331, 314, - 332, 314, 333, 314, 334, 314, 335, 314, 336, 314, - 337, 314, 338, 314, 339, 314, 340, 314, 341, 314, - 342, 314, 343, 314, 344, 314, 345, 314, 346, 314, - 347, 314, 348, 314, 349, 314, 350, 314, 351, 314, - 352, 314, 353, 314, 354, 314, 355, 314, 356, 314, - 357, 314, 358, 314, 359, 314, 360, 314, 361, 314, - 362, 362, 364, 363, 365, 363, 366, 366, 367, 367, - 367, 368, 368, 370, 369, 371, 369, 372, 369, 373, - 369, 374, 369, 375, 375, 375, 376, 376, 376, 376 + 311, 311, 312, 313, 313, 314, 314, 316, 315, 317, + 315, 318, 315, 319, 315, 315, 320, 315, 321, 315, + 322, 315, 323, 315, 324, 315, 325, 315, 326, 315, + 327, 315, 328, 315, 329, 315, 330, 315, 331, 315, + 332, 315, 333, 315, 334, 315, 335, 315, 336, 315, + 337, 315, 338, 315, 339, 315, 340, 315, 341, 315, + 342, 315, 343, 315, 344, 315, 345, 315, 346, 315, + 347, 315, 348, 315, 349, 315, 350, 315, 351, 315, + 352, 315, 353, 315, 354, 315, 355, 315, 356, 315, + 357, 315, 358, 315, 359, 315, 360, 315, 361, 315, + 362, 315, 363, 363, 365, 364, 366, 364, 367, 367, + 368, 368, 368, 369, 369, 371, 370, 372, 370, 373, + 370, 374, 370, 375, 370, 376, 376, 376, 377, 377, + 377, 377 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -1310,23 +1405,24 @@ static const yytype_uint8 yyr2[] = 0, 4, 0, 6, 0, 6, 0, 4, 1, 0, 4, 2, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 6, 0, 4, 0, 6, 0, 4, - 3, 2, 1, 0, 2, 0, 4, 0, 4, 0, - 4, 0, 4, 2, 0, 4, 0, 5, 0, 5, - 0, 4, 0, 5, 0, 4, 0, 4, 0, 4, - 0, 4, 0, 5, 0, 6, 0, 4, 0, 5, - 0, 6, 0, 4, 0, 4, 0, 4, 0, 4, - 0, 4, 0, 4, 0, 4, 0, 5, 0, 5, - 0, 5, 0, 4, 0, 4, 0, 4, 0, 4, + 1, 1, 3, 2, 1, 0, 2, 0, 4, 0, + 4, 0, 4, 0, 4, 2, 0, 4, 0, 5, + 0, 5, 0, 4, 0, 5, 0, 4, 0, 4, + 0, 4, 0, 4, 0, 5, 0, 6, 0, 4, + 0, 5, 0, 6, 0, 4, 0, 4, 0, 4, + 0, 4, 0, 4, 0, 4, 0, 4, 0, 5, + 0, 5, 0, 5, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, - 0, 4, 0, 6, 0, 4, 0, 6, 0, 5, - 0, 2, 0, 5, 0, 4, 1, 1, 0, 1, - 1, 0, 2, 0, 6, 0, 6, 0, 4, 0, - 4, 0, 5, 1, 1, 1, 1, 1, 1, 1 + 0, 4, 0, 4, 0, 6, 0, 4, 0, 6, + 0, 5, 0, 2, 0, 5, 0, 4, 1, 1, + 0, 1, 1, 0, 2, 0, 6, 0, 6, 0, + 4, 0, 4, 0, 5, 1, 1, 1, 1, 1, + 1, 1 }; -/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state - STATE-NUM when YYTABLE doesn't specify something else to do. Zero +/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint16 yydefact[] = { @@ -1335,15 +1431,15 @@ static const yytype_uint16 yydefact[] = 5, 18, 6, 7, 8, 9, 10, 11, 13, 12, 14, 15, 16, 17, 20, 0, 0, 0, 40, 0, 42, 55, 0, 0, 117, 187, 0, 70, 244, 70, - 252, 248, 0, 34, 0, 32, 36, 37, 39, 0, + 254, 248, 0, 34, 0, 32, 36, 37, 39, 0, 0, 90, 74, 0, 0, 204, 0, 213, 0, 71, - 251, 0, 0, 69, 0, 0, 38, 0, 0, 0, + 253, 0, 0, 69, 0, 0, 38, 0, 0, 0, 0, 19, 21, 0, 0, 0, 0, 0, 0, 41, 43, 0, 0, 67, 0, 54, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 118, 0, 0, 0, 0, 0, 0, 186, 188, 205, 206, 212, 232, - 0, 0, 0, 207, 208, 209, 242, 253, 245, 246, + 0, 0, 0, 207, 208, 209, 242, 255, 245, 246, 249, 35, 24, 22, 28, 26, 30, 33, 44, 46, 48, 50, 52, 57, 59, 0, 65, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -1352,53 +1448,54 @@ static const yytype_uint16 yydefact[] = 139, 182, 141, 180, 143, 145, 149, 151, 153, 147, 165, 167, 163, 169, 155, 161, 0, 0, 185, 129, 183, 157, 159, 189, 0, 193, 0, 0, 0, 233, - 232, 234, 215, 358, 216, 0, 0, 0, 0, 0, + 232, 234, 215, 360, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 94, 96, 92, 98, 102, 104, 100, 106, 108, 110, 112, 114, 0, 0, 84, 86, 0, 0, 123, 0, 124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 177, 127, 0, - 0, 0, 0, 0, 373, 374, 375, 191, 0, 195, - 197, 199, 234, 235, 236, 0, 360, 359, 214, 202, - 243, 0, 257, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 296, 0, 0, 0, - 0, 0, 0, 348, 0, 0, 0, 0, 0, 358, - 0, 0, 0, 0, 0, 0, 0, 250, 254, 247, - 25, 23, 29, 27, 31, 45, 47, 49, 51, 53, - 58, 60, 66, 0, 64, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 76, 0, - 80, 0, 0, 120, 122, 172, 175, 132, 134, 136, - 138, 140, 142, 181, 144, 146, 150, 152, 154, 148, - 166, 168, 164, 170, 156, 162, 179, 0, 0, 0, - 130, 184, 158, 160, 190, 0, 194, 0, 0, 0, - 0, 238, 239, 237, 210, 226, 0, 0, 0, 0, - 217, 255, 350, 259, 261, 0, 0, 263, 270, 0, - 0, 264, 0, 274, 276, 278, 280, 358, 358, 292, - 294, 0, 298, 322, 326, 324, 344, 318, 316, 320, - 0, 328, 330, 332, 334, 340, 286, 314, 338, 336, - 302, 300, 304, 312, 0, 0, 0, 61, 95, 97, - 93, 99, 103, 105, 101, 107, 109, 111, 113, 115, - 78, 0, 82, 0, 85, 87, 178, 126, 128, 192, - 196, 198, 200, 211, 0, 356, 357, 218, 0, 0, - 220, 203, 0, 0, 0, 0, 0, 354, 0, 266, - 268, 0, 272, 0, 0, 0, 0, 358, 282, 358, - 288, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 361, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 306, 308, - 310, 0, 0, 77, 0, 81, 240, 0, 228, 0, - 0, 0, 0, 256, 351, 258, 260, 262, 352, 0, - 271, 0, 0, 265, 0, 275, 277, 279, 281, 284, - 0, 290, 0, 293, 295, 297, 299, 323, 327, 325, - 345, 319, 317, 321, 0, 329, 331, 333, 335, 341, - 287, 315, 339, 337, 303, 301, 305, 313, 342, 376, - 377, 378, 379, 346, 0, 0, 0, 62, 79, 83, - 241, 231, 227, 0, 219, 222, 224, 221, 0, 355, - 267, 269, 273, 0, 283, 0, 289, 0, 0, 0, - 0, 349, 362, 0, 0, 307, 309, 311, 0, 0, - 0, 353, 285, 291, 240, 367, 369, 0, 0, 343, - 347, 230, 223, 225, 371, 0, 0, 0, 0, 0, - 368, 370, 363, 365, 372, 0, 0, 364, 366 + 0, 0, 0, 0, 375, 376, 377, 191, 0, 195, + 197, 199, 234, 235, 236, 0, 362, 361, 214, 202, + 251, 243, 250, 0, 259, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 298, 0, + 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, + 0, 360, 0, 0, 0, 0, 0, 0, 0, 252, + 256, 247, 25, 23, 29, 27, 31, 45, 47, 49, + 51, 53, 58, 60, 66, 0, 64, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 76, 0, 80, 0, 0, 120, 122, 172, 175, 132, + 134, 136, 138, 140, 142, 181, 144, 146, 150, 152, + 154, 148, 166, 168, 164, 170, 156, 162, 179, 0, + 0, 0, 130, 184, 158, 160, 190, 0, 194, 0, + 0, 0, 0, 238, 239, 237, 210, 226, 0, 0, + 0, 0, 217, 257, 352, 261, 263, 0, 0, 265, + 272, 0, 0, 266, 0, 276, 278, 280, 282, 360, + 360, 294, 296, 0, 300, 324, 328, 326, 346, 320, + 318, 322, 0, 330, 332, 334, 336, 342, 288, 316, + 340, 338, 304, 302, 306, 314, 0, 0, 0, 61, + 95, 97, 93, 99, 103, 105, 101, 107, 109, 111, + 113, 115, 78, 0, 82, 0, 85, 87, 178, 126, + 128, 192, 196, 198, 200, 211, 0, 358, 359, 218, + 0, 0, 220, 203, 0, 0, 0, 0, 0, 356, + 0, 268, 270, 0, 274, 0, 0, 0, 0, 360, + 284, 360, 290, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 363, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 308, 310, 312, 0, 0, 77, 0, 81, 240, 0, + 228, 0, 0, 0, 0, 258, 353, 260, 262, 264, + 354, 0, 273, 0, 0, 267, 0, 277, 279, 281, + 283, 286, 0, 292, 0, 295, 297, 299, 301, 325, + 329, 327, 347, 321, 319, 323, 0, 331, 333, 335, + 337, 343, 289, 317, 341, 339, 305, 303, 307, 315, + 344, 378, 379, 380, 381, 348, 0, 0, 0, 62, + 79, 83, 241, 231, 227, 0, 219, 222, 224, 221, + 0, 357, 269, 271, 275, 0, 285, 0, 291, 0, + 0, 0, 0, 351, 364, 0, 0, 309, 311, 313, + 0, 0, 0, 355, 287, 293, 240, 369, 371, 0, + 0, 345, 349, 230, 223, 225, 373, 0, 0, 0, + 0, 0, 370, 372, 365, 367, 374, 0, 0, 366, + 368 }; /* YYDEFGOTO[NTERM-NUM]. */ @@ -1407,249 +1504,253 @@ static const yytype_int16 yydefgoto[] = -1, 1, 18, 19, 54, 82, 229, 228, 231, 230, 232, 20, 83, 21, 77, 22, 23, 24, 25, 39, 26, 59, 90, 233, 234, 235, 236, 237, 27, 60, - 96, 238, 239, 561, 243, 241, 155, 50, 70, 28, - 43, 98, 177, 491, 562, 493, 564, 381, 382, 29, - 42, 97, 171, 367, 365, 366, 368, 371, 369, 370, - 372, 373, 374, 375, 376, 30, 63, 117, 260, 261, - 408, 409, 289, 266, 267, 268, 269, 270, 271, 273, + 96, 238, 239, 563, 243, 241, 155, 50, 70, 28, + 43, 98, 177, 493, 564, 495, 566, 383, 384, 29, + 42, 97, 171, 369, 367, 368, 370, 373, 371, 372, + 374, 375, 376, 377, 378, 30, 63, 117, 260, 261, + 410, 411, 289, 266, 267, 268, 269, 270, 271, 273, 274, 278, 275, 276, 277, 283, 291, 292, 284, 281, 279, 280, 282, 181, 182, 184, 185, 286, 287, 192, - 193, 209, 210, 31, 64, 125, 293, 415, 298, 417, - 418, 419, 32, 46, 429, 67, 68, 132, 309, 430, - 569, 572, 659, 660, 504, 567, 633, 568, 221, 305, - 424, 631, 33, 225, 72, 227, 75, 138, 51, 226, - 348, 512, 432, 514, 515, 521, 581, 582, 518, 584, - 523, 524, 525, 526, 590, 643, 548, 592, 645, 531, - 532, 451, 534, 553, 552, 554, 624, 625, 626, 555, - 549, 540, 539, 541, 535, 537, 536, 543, 544, 545, - 546, 551, 550, 547, 653, 538, 654, 460, 513, 437, - 638, 579, 507, 308, 604, 652, 685, 686, 675, 676, - 679, 297, 623 + 193, 209, 210, 31, 64, 125, 293, 417, 298, 419, + 420, 421, 32, 46, 431, 67, 68, 132, 309, 432, + 571, 574, 661, 662, 506, 569, 635, 570, 221, 305, + 426, 633, 33, 225, 72, 227, 75, 311, 312, 51, + 226, 350, 514, 434, 516, 517, 523, 583, 584, 520, + 586, 525, 526, 527, 528, 592, 645, 550, 594, 647, + 533, 534, 453, 536, 555, 554, 556, 626, 627, 628, + 557, 551, 542, 541, 543, 537, 539, 538, 545, 546, + 547, 548, 553, 552, 549, 655, 540, 656, 462, 515, + 439, 640, 581, 509, 308, 606, 654, 687, 688, 677, + 678, 681, 297, 625 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -535 +#define YYPACT_NINF -542 static const yytype_int16 yypact[] = { - -535, 42, -535, -101, 87, -53, -14, 144, 9, 24, - -535, -535, 26, 36, -535, -43, 65, 7, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, 40, 35, 39, -535, 48, - -535, -535, 53, 54, -535, -535, 2, 72, 134, 72, - -535, 143, 62, -535, 3, -535, -535, -535, -535, -4, - -5, -535, -535, 29, -9, 22, -113, 49, 45, -535, - -535, 74, 68, -535, -45, 68, -535, 66, -23, -13, - 81, -535, -535, 70, 85, 86, 88, 89, 98, -535, - -535, 84, 84, -535, -8, -535, -535, -6, -7, 95, - 97, 102, 104, 99, 96, 106, 4, 56, 79, 107, - 101, 112, 75, 110, 115, 116, -535, -535, 118, 119, - 120, 121, 122, 123, -535, -535, -535, -535, -535, -78, - 124, 171, 109, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, 111, -535, 125, 126, 127, - 131, 128, 130, 132, 136, 135, 137, 138, 139, 140, - -535, -535, 141, 142, 147, 148, -535, -535, -535, -535, - -535, 145, 133, -535, 146, 149, -535, -535, -535, -535, - -535, -535, -535, 150, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, 151, 151, -535, -535, - 152, -535, -535, -535, 14, -535, 14, 14, 14, -535, - 153, 34, -535, 1, -535, 68, 117, 68, 154, 156, - 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, - -535, 167, 178, 169, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -2, -1, -535, -535, - 172, 173, -535, 102, -535, 104, 174, 175, 176, 177, - 179, 180, 106, 181, 182, 183, 185, 186, 187, 188, - 189, 190, 191, 192, 193, 170, 168, -535, 168, 194, - 110, 195, 196, 197, -535, -535, -535, -535, 198, -535, - -535, -535, 34, -535, -535, -3, -535, -535, -535, -20, - -535, 84, -535, 204, 213, 80, -35, 200, 212, 214, - 215, 216, 208, 209, 217, 155, -535, 218, 219, -57, - 201, -75, 220, -535, 221, 223, 224, 225, 226, 1, - 227, -46, -21, 229, 230, 41, 210, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, 232, -535, 222, 228, 231, 233, 234, - 235, 236, 237, 238, 239, 240, 241, 242, -535, 252, - -535, 243, 244, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, 151, 245, 246, - -535, -535, -535, -535, -535, 247, -535, 248, 249, 250, - -3, -535, -535, -535, -535, -535, -37, 43, 265, 211, - -535, -535, -535, -535, -535, 262, 263, -535, -535, 264, - 266, -535, 267, -535, -535, -535, -535, -59, -56, -535, - -535, -37, -535, -535, -535, -535, -535, -535, -535, -535, - 254, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, 272, 273, 31, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, 260, -535, 261, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, 270, -535, -535, -535, 276, 277, - -535, -535, 268, -49, 269, 271, 274, -535, 275, -535, - -535, 278, -535, 279, 280, 281, 282, 1, -535, 1, - -535, 283, 284, 285, 286, 287, 288, 289, 290, 292, - 293, 294, -535, 295, 296, 297, 298, 299, 300, 301, - 302, 303, 304, 305, 306, 307, 14, 13, -535, -535, - -535, 308, 309, -535, 310, -535, 291, 311, 312, 313, - 14, 13, 314, -535, -535, -535, -535, -535, -535, 316, - -535, 317, 318, -535, 319, -535, -535, -535, -535, -535, - 320, -535, 321, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -27, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, 322, 323, 324, -535, -535, -535, - -535, -535, -535, 325, -535, -535, -535, -535, 326, -535, - -535, -535, -535, 327, -535, 329, -535, 315, -37, 335, - 50, -535, -535, 330, 331, -535, -535, -535, 270, 332, - 333, -535, -535, -535, 291, -535, -535, 348, 349, -535, - -535, -535, -535, -535, -535, 336, 337, 14, 13, 338, - -535, -535, -535, -535, -535, 339, 340, -535, -535 + -542, 42, -542, -124, 46, -87, -72, 82, -63, -39, + -542, -542, -29, -15, -542, -50, 34, 7, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, 12, 10, 21, -542, 25, + -542, -542, 38, 40, -542, -542, 30, 66, 89, 66, + -542, 143, 37, -542, 3, -542, -542, -542, -542, -4, + -5, -542, -542, 29, -9, 35, -11, 36, 45, -542, + -542, 72, 63, -542, -45, 63, -542, 71, -53, -13, + 76, -542, -542, 73, 85, 87, 90, 88, 99, -542, + -542, 94, 94, -542, -8, -542, -542, -7, -6, 96, + 97, 102, 104, 107, 106, 108, 54, 81, 4, 110, + 103, 115, 122, 112, 118, 109, -542, -542, 119, 120, + 121, 123, 124, 125, -542, -542, -542, -542, -542, -90, + 113, 177, 111, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, 114, -542, 126, 127, 129, + 132, 130, 131, 133, 135, 134, 136, 137, 138, 139, + -542, -542, 140, 141, 146, 147, -542, -542, -542, -542, + -542, 142, 144, -542, 145, 148, -542, -542, -542, -542, + -542, -542, -542, 149, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, 150, 150, -542, -542, + 151, -542, -542, -542, 14, -542, 14, 14, 14, -542, + 157, 50, -542, 32, -542, 27, 117, 27, 153, 155, + 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, + -542, 167, 154, 168, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -12, -3, -542, -542, + 169, 170, -542, 102, -542, 104, 171, 173, 174, 175, + 176, 178, 108, 179, 180, 181, 182, 183, 184, 185, + 187, 188, 189, 190, 191, 172, 192, -542, 192, 193, + 112, 194, 196, 197, -542, -542, -542, -542, 198, -542, + -542, -542, 50, -542, -542, -1, -542, -542, -542, -21, + -542, -542, -542, 94, -542, 214, 213, 92, -37, 199, + 152, 205, 212, 215, 206, 207, 216, 218, -542, 219, + 220, -57, 201, -75, 221, -542, 222, 224, 225, 226, + 227, 32, 228, -30, -20, 230, 231, 70, 210, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, 233, -542, 217, 223, 229, + 232, 234, 235, 236, 237, 238, 239, 240, 241, 211, + -542, 243, -542, 242, 244, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, 150, + 245, 246, -542, -542, -542, -542, -542, 247, -542, 248, + 249, 250, -1, -542, -542, -542, -542, -542, -38, 75, + 257, 203, -542, -542, -542, -542, -542, 261, 262, -542, + -542, 263, 264, -542, 265, -542, -542, -542, -542, -59, + -56, -542, -542, -38, -542, -542, -542, -542, -542, -542, + -542, -542, 255, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, 271, 272, 31, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, 259, -542, 260, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, 269, -542, -542, -542, + 275, 276, -542, -542, 266, -49, 267, 268, 273, -542, + 270, -542, -542, 274, -542, 277, 278, 279, 280, 32, + -542, 32, -542, 281, 282, 283, 284, 285, 286, 287, + 288, 289, 290, 291, -542, 292, 294, 295, 296, 297, + 298, 299, 300, 301, 302, 303, 304, 305, 14, 13, + -542, -542, -542, 306, 307, -542, 308, -542, 323, 310, + 309, 311, 14, 13, 313, -542, -542, -542, -542, -542, + -542, 314, -542, 315, 316, -542, 317, -542, -542, -542, + -542, -542, 318, -542, 319, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -27, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, 320, 321, 322, -542, + -542, -542, -542, -542, -542, 324, -542, -542, -542, -542, + 325, -542, -542, -542, -542, 326, -542, 328, -542, 312, + -38, 333, 91, -542, -542, 329, 330, -542, -542, -542, + 269, 331, 332, -542, -542, -542, 323, -542, -542, 338, + 347, -542, -542, -542, -542, -542, -542, 334, 335, 14, + 13, 336, -542, -542, -542, -542, -542, 337, 339, -542, + -542 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -88, 341, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, 19, -535, 52, -535, 113, -111, 47, - -535, 23, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, 92, -535, -535, -535, - -535, -535, -535, -535, -535, -344, -535, -535, 328, 93, - -99, -278, -535, -535, -535, -535, -535, -55, 361, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -535, -535, -535, -535, -535, -535, -535, -535, - -535, -535, -446, -333, -535, -535, -535, -535, -535, -535, - -535, -216, -534 + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -88, 342, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, 20, -542, 48, -542, 327, -93, 47, + -542, 105, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, 86, -542, -542, -542, + -542, -542, -542, -542, -542, -340, -542, -542, 293, 95, + -95, -282, -542, -542, -542, -542, -542, 208, 98, 360, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -542, -542, -542, -542, -542, -542, -542, + -542, -542, -542, -448, -335, -542, -542, -542, -542, -542, + -542, -542, -216, -541 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which - number is the opposite. If zero, do what YYDEFACT says. - If YYTABLE_NINF, syntax error. */ + number is the opposite. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -230 static const yytype_int16 yytable[] = { - 299, 300, 301, 153, 154, 533, 466, 78, 79, 80, + 299, 300, 301, 153, 154, 535, 468, 78, 79, 80, 84, 85, 86, 87, 88, 91, 92, 156, 93, 94, - 140, 158, 159, 160, 161, 162, 163, 164, 165, 166, - 167, 168, 169, 172, 173, 174, 175, 636, 47, 574, - 47, 505, 2, 527, 457, 3, 529, 128, 129, 4, - 647, 5, 6, 7, 130, 8, 194, 425, 454, 195, - 219, 9, 118, 119, 120, 121, 122, 123, 10, 468, - 34, 438, 439, 440, 99, 100, 101, 102, 103, 104, - 105, 11, 458, 648, 220, 65, 12, 106, 107, 108, - 109, 110, 111, 112, 470, 35, 113, 114, 115, 649, - 455, 306, 307, 66, 306, 307, 126, 36, 196, 197, - 198, 469, 13, 199, 528, 530, 49, 48, 49, 506, - 650, 575, 14, 66, 15, 441, 426, 427, 133, 134, - 131, 428, 200, 142, 201, 202, 471, 143, 421, 422, - 206, 207, 37, 144, 683, 651, 66, 145, 187, 188, - 189, 190, 157, 423, 377, 379, 38, 127, 378, 380, - 135, 306, 307, 124, 53, 176, 170, 95, 89, 16, - 310, 17, 349, 303, 304, 81, 619, 620, 621, 622, - 40, 294, 295, 296, 558, 559, 560, 435, 436, 474, - 475, 508, 509, 52, 589, 41, 591, 44, 667, 668, - 55, 116, 665, 311, 312, 56, 313, 45, 314, 57, - 315, 69, 316, 317, 318, 319, 320, 321, 58, 71, - 322, 323, 324, 431, 61, 62, 325, 326, 74, 327, - 328, 329, 76, 330, 136, 331, 141, 332, 333, 137, - 147, 146, 148, 149, 150, 49, 151, 334, 335, 336, - 337, 338, 339, 340, 341, 152, 178, 204, 179, 186, - 342, 343, 344, 180, 345, 183, 191, 203, 205, 346, - 208, 211, 223, 212, 213, 214, 215, 216, 217, 218, - 224, 240, 385, 245, 222, 242, 244, 246, 247, 347, - 248, 219, 249, 250, 433, 251, 496, 252, 253, 254, - 255, 256, 257, 258, 259, 434, 263, 442, 406, 447, - 448, 450, 285, 411, 671, 262, 264, 386, 456, 393, - 288, 503, 265, 272, 350, 290, 351, 352, 353, 354, - 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, - 618, 407, 383, 384, 387, 388, 389, 390, 566, 391, - 392, 394, 395, 396, 635, 397, 398, 399, 400, 401, - 402, 403, 404, 405, 410, 412, 413, 414, 416, 443, - 476, 444, 445, 446, 449, 452, 453, 459, 461, 462, - 463, 464, 465, 511, 467, 472, 674, 473, 477, 0, - 73, 0, 478, 664, 0, 420, 0, 0, 479, 0, - 0, 480, 490, 481, 482, 483, 484, 485, 486, 487, - 488, 489, 492, 494, 495, 497, 498, 499, 500, 501, - 502, 510, 516, 517, 519, 542, 520, 522, 556, 557, - 563, 565, 570, 571, 578, 139, 0, 0, 573, 576, - 0, 577, 0, 0, 0, 580, 0, 630, 583, 585, - 586, 587, 588, 593, 594, 595, 596, 597, 598, 599, - 600, 682, 601, 602, 603, 605, 606, 607, 608, 609, - 610, 611, 612, 613, 614, 615, 616, 617, 627, 628, - 629, 632, 0, 634, 637, -229, 639, 640, 641, 642, - 644, 646, 655, 656, 657, 666, 661, 662, 658, 663, - 669, 670, 672, 673, 677, 678, 680, 681, 684, 687, - 688, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, + 168, 169, 638, 47, 172, 173, 174, 175, 47, 576, + 507, 130, 2, 529, 459, 3, 531, 34, 219, 4, + 649, 5, 6, 7, 35, 8, 427, 200, 456, 201, + 202, 9, 118, 119, 120, 121, 122, 123, 10, 440, + 441, 442, 220, 36, 99, 100, 101, 102, 103, 104, + 105, 11, 460, 650, 37, 470, 12, 106, 107, 108, + 109, 110, 111, 112, 38, 472, 113, 114, 115, 651, + 457, 306, 307, 142, 306, 307, 194, 143, 40, 195, + 48, 49, 13, 65, 530, 532, 49, 131, 508, 126, + 652, 577, 14, 443, 15, 428, 429, 471, 133, 134, + 430, 66, 41, 196, 197, 198, 66, 473, 199, 685, + 423, 424, 44, 144, 379, 653, 66, 145, 380, 128, + 129, 127, 157, 381, 135, 425, 45, 382, 187, 188, + 189, 190, 52, 124, 53, 170, 176, 95, 89, 16, + 138, 17, 55, 140, 71, 81, 621, 622, 623, 624, + 56, 294, 295, 296, 560, 561, 562, 206, 207, 303, + 304, 57, 306, 307, 591, 58, 593, 310, 137, 437, + 438, 116, 667, 313, 314, 69, 315, 76, 316, 61, + 317, 62, 318, 319, 320, 321, 322, 323, 476, 477, + 324, 325, 326, 510, 511, 433, 327, 328, 74, 329, + 330, 331, 136, 332, 137, 333, 146, 334, 335, 669, + 670, 141, 148, 147, 149, 151, 150, 336, 337, 338, + 339, 340, 341, 342, 343, 49, 152, 178, 179, 204, + 344, 345, 346, 180, 347, 183, 212, 186, 191, 348, + 203, 205, 208, 222, 211, 213, 214, 215, 223, 216, + 217, 218, 224, 387, 240, 245, 242, 244, 246, 349, + 247, 248, 250, 249, 251, 219, 252, 253, 254, 255, + 256, 257, 258, 259, 435, 436, 444, 449, 450, 445, + 408, 285, 262, 388, 365, 264, 498, 263, 458, 395, + 673, 265, 272, 352, 290, 353, 354, 505, 355, 356, + 357, 358, 359, 360, 361, 362, 363, 364, 366, 385, + 386, 389, 620, 390, 391, 392, 393, 568, 394, 396, + 397, 398, 399, 400, 401, 402, 637, 403, 404, 405, + 406, 407, 446, 412, 414, 409, 415, 416, 418, 447, + 478, 492, 448, 451, 452, 513, 454, 455, 461, 463, + 464, 465, 466, 467, 676, 469, 474, 480, 475, 479, + 666, 73, 0, 481, 0, 413, 0, 422, 0, 482, + 0, 0, 483, 494, 484, 485, 486, 487, 488, 489, + 490, 491, 496, 512, 497, 499, 500, 501, 502, 503, + 504, 518, 519, 521, 522, 524, 544, 558, 559, 565, + 567, 572, 573, 580, 139, 351, 575, 578, 579, 0, + 582, 0, 0, 0, 585, 0, 0, 587, 588, 589, + 590, 595, 596, 597, 598, 599, 600, 601, 602, 603, + 604, 605, 607, 684, 608, 609, 610, 611, 612, 613, + 614, 615, 616, 617, 618, 619, 629, 630, 631, 632, + 634, 636, -229, 639, 641, 642, 643, 644, 646, 648, + 657, 658, 659, 668, 679, 663, 664, 660, 665, 671, + 672, 674, 675, 680, 682, 683, 686, 689, 0, 690, + 0, 0, 0, 302, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 302 + 0, 0, 0, 0, 288 }; +#define yypact_value_is_default(yystate) \ + ((yystate) == (-542)) + +#define yytable_value_is_error(yytable_value) \ + YYID (0) + static const yytype_int16 yycheck[] = { - 216, 217, 218, 91, 92, 451, 339, 4, 5, 6, + 216, 217, 218, 91, 92, 453, 341, 4, 5, 6, 14, 15, 16, 17, 18, 20, 21, 25, 23, 24, - 75, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 40, 41, 42, 43, 571, 83, 88, - 83, 78, 0, 102, 119, 3, 102, 160, 161, 7, - 77, 9, 10, 11, 5, 13, 52, 77, 115, 55, - 138, 19, 71, 72, 73, 74, 75, 76, 26, 115, - 171, 106, 107, 108, 45, 46, 47, 48, 49, 50, - 51, 39, 157, 110, 162, 83, 44, 58, 59, 60, - 61, 62, 63, 64, 115, 8, 67, 68, 69, 126, - 157, 160, 161, 101, 160, 161, 84, 160, 52, 53, - 54, 157, 70, 57, 447, 448, 161, 160, 161, 156, - 147, 170, 80, 101, 82, 160, 146, 147, 83, 84, - 81, 151, 53, 156, 55, 56, 157, 160, 141, 142, - 65, 66, 156, 156, 678, 172, 101, 160, 52, 53, - 54, 55, 160, 156, 156, 156, 12, 65, 160, 160, - 68, 160, 161, 172, 157, 172, 172, 172, 172, 127, - 225, 129, 227, 139, 140, 172, 163, 164, 165, 166, - 171, 167, 168, 169, 153, 154, 155, 107, 108, 148, - 149, 148, 149, 128, 527, 171, 529, 171, 148, 149, - 160, 172, 648, 86, 87, 170, 89, 171, 91, 170, - 93, 139, 95, 96, 97, 98, 99, 100, 170, 85, - 103, 104, 105, 311, 171, 171, 109, 110, 85, 112, - 113, 114, 170, 116, 160, 118, 170, 120, 121, 171, - 170, 160, 157, 157, 156, 161, 157, 130, 131, 132, - 133, 134, 135, 136, 137, 157, 161, 156, 161, 160, - 143, 144, 145, 161, 147, 161, 160, 160, 156, 152, - 160, 156, 101, 157, 156, 156, 156, 156, 156, 156, - 171, 170, 263, 156, 160, 160, 160, 156, 160, 172, - 160, 138, 160, 157, 90, 160, 407, 160, 160, 160, - 160, 160, 160, 156, 156, 92, 173, 107, 138, 101, - 101, 156, 161, 290, 658, 170, 170, 265, 117, 272, - 207, 420, 173, 173, 170, 173, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 160, 170, - 556, 173, 170, 170, 170, 170, 170, 170, 78, 170, - 170, 170, 170, 170, 570, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 157, - 160, 157, 157, 157, 157, 157, 157, 157, 157, 156, - 156, 156, 156, 172, 157, 156, 664, 157, 156, -1, - 49, -1, 170, 78, -1, 302, -1, -1, 170, -1, - -1, 170, 160, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 160, 170, 170, 170, 170, 170, 170, 170, - 170, 156, 160, 160, 160, 171, 160, 160, 156, 156, - 170, 170, 156, 156, 160, 74, -1, -1, 170, 170, - -1, 170, -1, -1, -1, 170, -1, 156, 170, 170, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 573, 83, 40, 41, 42, 43, 83, 88, + 78, 5, 0, 102, 119, 3, 102, 171, 138, 7, + 77, 9, 10, 11, 8, 13, 77, 53, 115, 55, + 56, 19, 71, 72, 73, 74, 75, 76, 26, 106, + 107, 108, 162, 160, 45, 46, 47, 48, 49, 50, + 51, 39, 157, 110, 156, 115, 44, 58, 59, 60, + 61, 62, 63, 64, 12, 115, 67, 68, 69, 126, + 157, 160, 161, 156, 160, 161, 52, 160, 171, 55, + 160, 161, 70, 83, 449, 450, 161, 81, 156, 84, + 147, 170, 80, 160, 82, 146, 147, 157, 83, 84, + 151, 101, 171, 52, 53, 54, 101, 157, 57, 680, + 141, 142, 171, 156, 156, 172, 101, 160, 160, 160, + 161, 65, 160, 156, 68, 156, 171, 160, 52, 53, + 54, 55, 128, 172, 157, 172, 172, 172, 172, 127, + 72, 129, 160, 75, 85, 172, 163, 164, 165, 166, + 170, 167, 168, 169, 153, 154, 155, 65, 66, 139, + 140, 170, 160, 161, 529, 170, 531, 170, 171, 107, + 108, 172, 650, 86, 87, 139, 89, 170, 91, 171, + 93, 171, 95, 96, 97, 98, 99, 100, 148, 149, + 103, 104, 105, 148, 149, 313, 109, 110, 85, 112, + 113, 114, 160, 116, 171, 118, 160, 120, 121, 148, + 149, 170, 157, 170, 157, 157, 156, 130, 131, 132, + 133, 134, 135, 136, 137, 161, 157, 161, 161, 156, + 143, 144, 145, 161, 147, 161, 157, 160, 160, 152, + 160, 156, 160, 160, 156, 156, 156, 156, 101, 156, + 156, 156, 171, 263, 170, 156, 160, 160, 156, 172, + 160, 160, 157, 160, 160, 138, 160, 160, 160, 160, + 160, 160, 156, 156, 90, 92, 107, 101, 101, 157, + 138, 161, 170, 265, 160, 170, 409, 173, 117, 272, + 660, 173, 173, 170, 173, 170, 170, 422, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 677, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 558, 170, 170, 170, 170, 78, 170, 170, + 170, 170, 170, 170, 170, 170, 572, 170, 170, 170, + 170, 170, 157, 170, 170, 173, 170, 170, 170, 157, + 160, 160, 157, 157, 156, 172, 157, 157, 157, 157, + 156, 156, 156, 156, 666, 157, 156, 170, 157, 156, + 78, 49, -1, 170, -1, 290, -1, 302, -1, 170, + -1, -1, 170, 160, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 156, 170, 170, 170, 170, 170, 170, + 170, 160, 160, 160, 160, 160, 171, 156, 156, 170, + 170, 156, 156, 160, 74, 227, 170, 170, 170, -1, + 170, -1, -1, -1, 170, -1, -1, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 170, -1, 170, 170, 173, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 160, 170, 170, 173, 170, - 170, 170, 170, 170, 156, 156, 170, 170, 170, 170, - 170, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 170, 170, 170, 679, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 170, 156, + 170, 170, 173, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 160, 156, 170, 170, 173, 170, 170, + 170, 170, 170, 156, 170, 170, 170, 170, -1, 170, + -1, -1, -1, 220, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 220 + -1, -1, -1, -1, 207 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing @@ -1661,7 +1762,7 @@ static const yytype_uint16 yystos[] = 185, 187, 189, 190, 191, 192, 194, 202, 213, 223, 239, 277, 286, 306, 171, 8, 160, 156, 12, 193, 171, 171, 224, 214, 171, 171, 287, 83, 160, 161, - 211, 312, 128, 157, 178, 160, 170, 170, 170, 195, + 211, 313, 128, 157, 178, 160, 170, 170, 170, 195, 203, 171, 171, 240, 278, 83, 101, 289, 290, 139, 212, 85, 308, 212, 85, 310, 170, 188, 4, 5, 6, 172, 179, 186, 14, 15, 16, 17, 18, 172, @@ -1669,8 +1770,8 @@ static const yytype_uint16 yystos[] = 46, 47, 48, 49, 50, 51, 58, 59, 60, 61, 62, 63, 64, 67, 68, 69, 172, 241, 71, 72, 73, 74, 75, 76, 172, 279, 84, 290, 160, 161, - 5, 81, 291, 83, 84, 290, 160, 171, 311, 312, - 311, 170, 156, 160, 156, 160, 160, 170, 157, 157, + 5, 81, 291, 83, 84, 290, 160, 171, 312, 313, + 312, 170, 156, 160, 156, 160, 160, 170, 157, 157, 156, 157, 157, 211, 211, 210, 25, 160, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 172, 226, 40, 41, 42, 43, 172, 216, 161, 161, @@ -1678,53 +1779,54 @@ static const yytype_uint16 yystos[] = 55, 160, 273, 274, 52, 55, 52, 53, 54, 57, 53, 55, 56, 160, 156, 156, 65, 66, 160, 275, 276, 156, 157, 156, 156, 156, 156, 156, 156, 138, - 162, 302, 160, 101, 171, 307, 313, 309, 181, 180, + 162, 302, 160, 101, 171, 307, 314, 309, 181, 180, 183, 182, 184, 197, 198, 199, 200, 201, 205, 206, 170, 209, 160, 208, 160, 156, 156, 160, 160, 160, 157, 160, 160, 160, 160, 160, 160, 160, 156, 156, 242, 243, 170, 173, 170, 173, 247, 248, 249, 250, 251, 252, 173, 253, 254, 256, 257, 258, 255, 264, 265, 263, 266, 259, 262, 161, 271, 272, 271, 246, - 173, 260, 261, 280, 167, 168, 169, 375, 282, 375, - 375, 375, 302, 139, 140, 303, 160, 161, 367, 292, - 311, 86, 87, 89, 91, 93, 95, 96, 97, 98, - 99, 100, 103, 104, 105, 109, 110, 112, 113, 114, - 116, 118, 120, 121, 130, 131, 132, 133, 134, 135, - 136, 137, 143, 144, 145, 147, 152, 172, 314, 311, + 173, 260, 261, 280, 167, 168, 169, 376, 282, 376, + 376, 376, 302, 139, 140, 303, 160, 161, 368, 292, + 170, 311, 312, 86, 87, 89, 91, 93, 95, 96, + 97, 98, 99, 100, 103, 104, 105, 109, 110, 112, + 113, 114, 116, 118, 120, 121, 130, 131, 132, 133, + 134, 135, 136, 137, 143, 144, 145, 147, 152, 172, + 315, 311, 170, 170, 170, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 160, 170, 228, 229, 227, + 230, 232, 233, 231, 234, 235, 236, 237, 238, 156, + 160, 156, 160, 221, 222, 170, 170, 267, 269, 170, + 170, 170, 170, 170, 170, 273, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 170, 170, 138, 173, + 244, 245, 170, 275, 170, 170, 170, 281, 170, 283, + 284, 285, 303, 141, 142, 156, 304, 77, 146, 147, + 151, 288, 293, 211, 317, 90, 92, 107, 108, 364, + 106, 107, 108, 160, 107, 157, 157, 157, 157, 101, + 101, 157, 156, 336, 157, 157, 115, 157, 117, 119, + 157, 157, 362, 157, 156, 156, 156, 156, 368, 157, + 115, 157, 115, 157, 156, 157, 148, 149, 160, 156, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 160, 170, 228, 229, 227, 230, 232, - 233, 231, 234, 235, 236, 237, 238, 156, 160, 156, - 160, 221, 222, 170, 170, 267, 269, 170, 170, 170, - 170, 170, 170, 273, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 138, 173, 244, 245, - 170, 275, 170, 170, 170, 281, 170, 283, 284, 285, - 303, 141, 142, 156, 304, 77, 146, 147, 151, 288, - 293, 211, 316, 90, 92, 107, 108, 363, 106, 107, - 108, 160, 107, 157, 157, 157, 157, 101, 101, 157, - 156, 335, 157, 157, 115, 157, 117, 119, 157, 157, - 361, 157, 156, 156, 156, 156, 367, 157, 115, 157, - 115, 157, 156, 157, 148, 149, 160, 156, 170, 170, + 170, 170, 160, 217, 160, 219, 170, 170, 272, 170, + 170, 170, 170, 170, 170, 304, 298, 78, 156, 367, + 148, 149, 156, 172, 316, 363, 318, 319, 160, 160, + 323, 160, 160, 320, 160, 325, 326, 327, 328, 102, + 368, 102, 368, 334, 335, 367, 337, 349, 351, 350, + 360, 347, 346, 348, 171, 352, 353, 354, 355, 358, + 331, 345, 357, 356, 339, 338, 340, 344, 156, 156, + 153, 154, 155, 207, 218, 170, 220, 170, 78, 299, + 301, 294, 156, 156, 295, 170, 88, 170, 170, 170, + 160, 366, 170, 321, 322, 170, 324, 170, 170, 170, + 170, 368, 329, 368, 332, 170, 170, 170, 170, 170, + 170, 170, 170, 170, 170, 170, 369, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, - 160, 217, 160, 219, 170, 170, 272, 170, 170, 170, - 170, 170, 170, 304, 298, 78, 156, 366, 148, 149, - 156, 172, 315, 362, 317, 318, 160, 160, 322, 160, - 160, 319, 160, 324, 325, 326, 327, 102, 367, 102, - 367, 333, 334, 366, 336, 348, 350, 349, 359, 346, - 345, 347, 171, 351, 352, 353, 354, 357, 330, 344, - 356, 355, 338, 337, 339, 343, 156, 156, 153, 154, - 155, 207, 218, 170, 220, 170, 78, 299, 301, 294, - 156, 156, 295, 170, 88, 170, 170, 170, 160, 365, - 170, 320, 321, 170, 323, 170, 170, 170, 170, 367, - 328, 367, 331, 170, 170, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 368, 170, 170, 170, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 375, 163, - 164, 165, 166, 376, 340, 341, 342, 170, 170, 170, - 156, 305, 170, 300, 170, 375, 376, 170, 364, 170, - 170, 170, 170, 329, 170, 332, 170, 77, 110, 126, - 147, 172, 369, 358, 360, 170, 170, 170, 173, 296, - 297, 170, 170, 170, 78, 366, 160, 148, 149, 170, - 170, 299, 170, 170, 305, 372, 373, 156, 156, 374, - 170, 170, 375, 376, 170, 370, 371, 170, 170 + 376, 163, 164, 165, 166, 377, 341, 342, 343, 170, + 170, 170, 156, 305, 170, 300, 170, 376, 377, 170, + 365, 170, 170, 170, 170, 330, 170, 333, 170, 77, + 110, 126, 147, 172, 370, 359, 361, 170, 170, 170, + 173, 296, 297, 170, 170, 170, 78, 367, 160, 148, + 149, 170, 170, 299, 170, 170, 305, 373, 374, 156, + 156, 375, 170, 170, 376, 377, 170, 371, 372, 170, + 170 }; #define yyerrok (yyerrstatus = 0) @@ -1739,24 +1841,33 @@ static const yytype_uint16 yystos[] = /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ + Once GCC version 2 has supplanted version 1, this can go. However, + YYFAIL appears to be in use. Nevertheless, it is formally deprecated + in Bison 2.4.2's NEWS entry, where a plan to phase it out is + discussed. */ #define YYFAIL goto yyerrlab +#if defined YYFAIL + /* This is here to suppress warnings from the GCC cpp's + -Wunused-macros. Normally we don't worry about that warning, but + some users do, and we want to make it easy for users to remove + YYFAIL uses, which will produce warnings from Bison 2.5. */ +#endif #define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ @@ -1766,46 +1877,38 @@ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 - /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (YYID (N)) \ + { \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = \ + YYRHSLOC (Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = \ + YYRHSLOC (Rhs, 0).last_column; \ + } \ while (YYID (0)) #endif +#define YYRHSLOC(Rhs, K) ((Rhs)[K]) -/* YY_LOCATION_PRINT -- Print the location on the stream. - This macro was not mandated originally: define only if we know - we won't break user code: when these are the locations we know. */ + +/* This macro is provided for backward compatibility. */ + #ifndef YY_LOCATION_PRINT -# if YYLTYPE_IS_TRIVIAL -# define YY_LOCATION_PRINT(File, Loc) \ - fprintf (File, "%d.%d-%d.%d", \ - (Loc).first_line, (Loc).first_column, \ - (Loc).last_line, (Loc).last_column) -# else -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) #endif @@ -1860,6 +1963,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) YYSTYPE const * const yyvaluep; #endif { + FILE *yyo = yyoutput; + YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT @@ -1997,7 +2102,6 @@ int yydebug; # define YYMAXDEPTH 10000 #endif - #if YYERROR_VERBOSE @@ -2100,115 +2204,142 @@ yytnamerr (char *yyres, const char *yystr) } # endif -/* Copy into YYRESULT an error message about the unexpected token - YYCHAR while in state YYSTATE. Return the number of bytes copied, - including the terminating null byte. If YYRESULT is null, do not - copy anything; just return the number of bytes that would be - copied. As a special case, return 0 if an ordinary "syntax error" - message will do. Return YYSIZE_MAXIMUM if overflow occurs during - size calculation. */ -static YYSIZE_T -yysyntax_error (char *yyresult, int yystate, int yychar) +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return 2 if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, + yytype_int16 *yyssp, int yytoken) { - int yyn = yypact[yystate]; + YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + YYSIZE_T yysize1; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULL; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; - if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) - return 0; - else + /* There are many possibilities here to consider: + - Assume YYFAIL is not used. It's too flawed to consider. See + + for details. YYERROR is fine as it does not invoke this + function. + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) { - int yytype = YYTRANSLATE (yychar); - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); - YYSIZE_T yysize = yysize0; - YYSIZE_T yysize1; - int yysize_overflow = 0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - int yyx; + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; -# if 0 - /* This is so xgettext sees the translatable formats that are - constructed on the fly. */ - YY_("syntax error, unexpected %s"); - YY_("syntax error, unexpected %s, expecting %s"); - YY_("syntax error, unexpected %s, expecting %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s"); - YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); -# endif - char *yyfmt; - char const *yyf; - static char const yyunexpected[] = "syntax error, unexpected %s"; - static char const yyexpecting[] = ", expecting %s"; - static char const yyor[] = " or %s"; - char yyformat[sizeof yyunexpected - + sizeof yyexpecting - 1 - + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) - * (sizeof yyor - 1))]; - char const *yyprefix = yyexpecting; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); + if (! (yysize <= yysize1 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + } + } - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; + switch (yycount) + { +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ + } - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 1; + yysize1 = yysize + yystrlen (yyformat); + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; - yyarg[0] = yytname[yytype]; - yyfmt = yystpcpy (yyformat, yyunexpected); - - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - yyformat[sizeof yyunexpected - 1] = '\0'; - break; - } - yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - yyfmt = yystpcpy (yyfmt, yyprefix); - yyprefix = yyor; - } - - yyf = YY_(yyformat); - yysize1 = yysize + yystrlen (yyf); - yysize_overflow |= (yysize1 < yysize); - yysize = yysize1; - - if (yysize_overflow) - return YYSIZE_MAXIMUM; - - if (yyresult) - { - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - char *yyp = yyresult; - int yyi = 0; - while ((*yyp = *yyf) != '\0') - { - if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyf += 2; - } - else - { - yyp++; - yyf++; - } - } - } - return yysize; + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (! (yysize <= *yymsg_alloc + && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; } #endif /* YYERROR_VERBOSE */ - /*-----------------------------------------------. | Release the memory associated to this symbol. | @@ -2241,22 +2372,9 @@ yydestruct (yymsg, yytype, yyvaluep) } } -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ + /* The lookahead symbol. */ int yychar; @@ -2267,11 +2385,10 @@ YYSTYPE yylval; int yynerrs; +/*----------. +| yyparse. | +`----------*/ -/*-------------------------. -| yyparse or yypush_parse. | -`-------------------------*/ - #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) @@ -2294,8 +2411,6 @@ yyparse () #endif #endif { - - int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; @@ -2304,7 +2419,7 @@ yyparse () `yyss': related to states. `yyvs': related to semantic values. - Refer to the stacks thru separate pointers, to allow yyoverflow + Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ @@ -2358,7 +2473,6 @@ yyparse () The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; - goto yysetstate; /*------------------------------------------------------------. @@ -2450,7 +2564,7 @@ yybackup: /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) + if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ @@ -2481,8 +2595,8 @@ yybackup: yyn = yytable[yyn]; if (yyn <= 0) { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; + if (yytable_value_is_error (yyn)) + goto yyerrlab; yyn = -yyn; goto yyreduce; } @@ -2536,9 +2650,8 @@ yyreduce: switch (yyn) { case 22: - -/* Line 1455 of yacc.c */ -#line 298 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 368 "cfparse.y" { struct passwd *pw; @@ -2551,16 +2664,14 @@ yyreduce: break; case 24: - -/* Line 1455 of yacc.c */ -#line 308 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 378 "cfparse.y" { lcconf->uid = (yyvsp[(2) - (2)].num); } break; case 26: - -/* Line 1455 of yacc.c */ -#line 310 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 380 "cfparse.y" { struct group *gr; @@ -2573,23 +2684,20 @@ yyreduce: break; case 28: - -/* Line 1455 of yacc.c */ -#line 320 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 390 "cfparse.y" { lcconf->gid = (yyvsp[(2) - (2)].num); } break; case 30: - -/* Line 1455 of yacc.c */ -#line 321 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 391 "cfparse.y" { lcconf->chroot = (yyvsp[(2) - (2)].val)->v; } break; case 32: - -/* Line 1455 of yacc.c */ -#line 327 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 397 "cfparse.y" { if ((yyvsp[(2) - (3)].num) >= LC_PATHTYPE_MAX) { yyerror("invalid path type %d", (yyvsp[(2) - (3)].num)); @@ -2608,16 +2716,14 @@ yyreduce: break; case 34: - -/* Line 1455 of yacc.c */ -#line 347 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 417 "cfparse.y" { lcconf->complex_bundle = (yyvsp[(2) - (2)].num); } break; case 36: - -/* Line 1455 of yacc.c */ -#line 353 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 423 "cfparse.y" { char path[MAXPATHLEN]; @@ -2630,18 +2736,16 @@ yyreduce: break; case 37: - -/* Line 1455 of yacc.c */ -#line 367 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 437 "cfparse.y" { lcconf->pfkey_buffer_size = (yyvsp[(2) - (3)].num); } break; case 38: - -/* Line 1455 of yacc.c */ -#line 374 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 444 "cfparse.y" { if ((yyvsp[(2) - (3)].num) >= LC_GSSENC_MAX) { yyerror("invalid GSS ID encoding %d", (yyvsp[(2) - (3)].num)); @@ -2652,9 +2756,8 @@ yyreduce: break; case 40: - -/* Line 1455 of yacc.c */ -#line 389 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 459 "cfparse.y" { /* * set the loglevel to the value specified @@ -2667,44 +2770,38 @@ yyreduce: break; case 44: - -/* Line 1455 of yacc.c */ -#line 409 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 479 "cfparse.y" { lcconf->pad_random = (yyvsp[(2) - (2)].num); } break; case 46: - -/* Line 1455 of yacc.c */ -#line 410 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 480 "cfparse.y" { lcconf->pad_randomlen = (yyvsp[(2) - (2)].num); } break; case 48: - -/* Line 1455 of yacc.c */ -#line 411 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 481 "cfparse.y" { lcconf->pad_maxsize = (yyvsp[(2) - (2)].num); } break; case 50: - -/* Line 1455 of yacc.c */ -#line 412 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 482 "cfparse.y" { lcconf->pad_strict = (yyvsp[(2) - (2)].num); } break; case 52: - -/* Line 1455 of yacc.c */ -#line 413 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 483 "cfparse.y" { lcconf->pad_excltail = (yyvsp[(2) - (2)].num); } break; case 57: - -/* Line 1455 of yacc.c */ -#line 426 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 496 "cfparse.y" { myaddr_listen((yyvsp[(2) - (2)].saddr), FALSE); racoon_free((yyvsp[(2) - (2)].saddr)); @@ -2712,9 +2809,8 @@ yyreduce: break; case 59: - -/* Line 1455 of yacc.c */ -#line 432 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 502 "cfparse.y" { #ifdef ENABLE_NATT myaddr_listen((yyvsp[(2) - (2)].saddr), TRUE); @@ -2727,9 +2823,8 @@ yyreduce: break; case 61: - -/* Line 1455 of yacc.c */ -#line 443 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 513 "cfparse.y" { #ifdef ENABLE_ADMINPORT adminsock_conf((yyvsp[(2) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].num)); @@ -2740,9 +2835,8 @@ yyreduce: break; case 63: - -/* Line 1455 of yacc.c */ -#line 452 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 522 "cfparse.y" { #ifdef ENABLE_ADMINPORT adminsock_conf((yyvsp[(2) - (2)].val), NULL, NULL, -1); @@ -2753,9 +2847,8 @@ yyreduce: break; case 65: - -/* Line 1455 of yacc.c */ -#line 461 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 531 "cfparse.y" { #ifdef ENABLE_ADMINPORT adminsock_path = NULL; @@ -2766,16 +2859,14 @@ yyreduce: break; case 67: - -/* Line 1455 of yacc.c */ -#line 469 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 539 "cfparse.y" { lcconf->strict_address = TRUE; } break; case 69: - -/* Line 1455 of yacc.c */ -#line 473 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 543 "cfparse.y" { char portbuf[10]; @@ -2788,23 +2879,20 @@ yyreduce: break; case 70: - -/* Line 1455 of yacc.c */ -#line 484 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 554 "cfparse.y" { (yyval.num) = PORT_ISAKMP; } break; case 71: - -/* Line 1455 of yacc.c */ -#line 485 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 555 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 72: - -/* Line 1455 of yacc.c */ -#line 490 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 560 "cfparse.y" { #ifndef ENABLE_HYBRID yyerror("racoon not configured with --enable-hybrid"); @@ -2824,9 +2912,8 @@ yyreduce: break; case 76: - -/* Line 1455 of yacc.c */ -#line 513 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 583 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2846,9 +2933,8 @@ yyreduce: break; case 78: - -/* Line 1455 of yacc.c */ -#line 531 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 601 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2868,9 +2954,8 @@ yyreduce: break; case 80: - -/* Line 1455 of yacc.c */ -#line 549 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 619 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2890,9 +2975,8 @@ yyreduce: break; case 82: - -/* Line 1455 of yacc.c */ -#line 567 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 637 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2912,9 +2996,8 @@ yyreduce: break; case 84: - -/* Line 1455 of yacc.c */ -#line 585 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 655 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2925,9 +3008,8 @@ yyreduce: break; case 86: - -/* Line 1455 of yacc.c */ -#line 594 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 664 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -2938,9 +3020,8 @@ yyreduce: break; case 88: - -/* Line 1455 of yacc.c */ -#line 606 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 676 "cfparse.y" { #ifndef ENABLE_HYBRID yyerror("racoon not configured with --enable-hybrid"); @@ -2954,9 +3035,8 @@ yyreduce: break; case 92: - -/* Line 1455 of yacc.c */ -#line 623 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 693 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -2969,9 +3049,8 @@ yyreduce: break; case 94: - -/* Line 1455 of yacc.c */ -#line 634 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 704 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -2984,9 +3063,8 @@ yyreduce: break; case 96: - -/* Line 1455 of yacc.c */ -#line 645 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 715 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -2997,9 +3075,8 @@ yyreduce: break; case 98: - -/* Line 1455 of yacc.c */ -#line 654 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 724 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3012,9 +3089,8 @@ yyreduce: break; case 100: - -/* Line 1455 of yacc.c */ -#line 665 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 735 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3025,9 +3101,8 @@ yyreduce: break; case 102: - -/* Line 1455 of yacc.c */ -#line 674 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 744 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3040,9 +3115,8 @@ yyreduce: break; case 104: - -/* Line 1455 of yacc.c */ -#line 685 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 755 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3055,9 +3129,8 @@ yyreduce: break; case 106: - -/* Line 1455 of yacc.c */ -#line 696 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 766 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3070,9 +3143,8 @@ yyreduce: break; case 108: - -/* Line 1455 of yacc.c */ -#line 707 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 777 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3085,9 +3157,8 @@ yyreduce: break; case 110: - -/* Line 1455 of yacc.c */ -#line 718 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 788 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3100,9 +3171,8 @@ yyreduce: break; case 112: - -/* Line 1455 of yacc.c */ -#line 729 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 799 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3115,9 +3185,8 @@ yyreduce: break; case 114: - -/* Line 1455 of yacc.c */ -#line 740 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 810 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3130,9 +3199,8 @@ yyreduce: break; case 119: - -/* Line 1455 of yacc.c */ -#line 762 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 832 "cfparse.y" { #ifdef ENABLE_HYBRID if (inet_pton(AF_INET, (yyvsp[(2) - (2)].val)->v, @@ -3145,9 +3213,8 @@ yyreduce: break; case 121: - -/* Line 1455 of yacc.c */ -#line 773 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 843 "cfparse.y" { #ifdef ENABLE_HYBRID if (inet_pton(AF_INET, (yyvsp[(2) - (2)].val)->v, @@ -3160,9 +3227,8 @@ yyreduce: break; case 125: - -/* Line 1455 of yacc.c */ -#line 788 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 858 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.splitnet_type = UNITY_LOCAL_LAN; @@ -3173,9 +3239,8 @@ yyreduce: break; case 127: - -/* Line 1455 of yacc.c */ -#line 797 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 867 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.splitnet_type = UNITY_SPLIT_INCLUDE; @@ -3186,9 +3251,8 @@ yyreduce: break; case 129: - -/* Line 1455 of yacc.c */ -#line 806 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 876 "cfparse.y" { #ifndef ENABLE_HYBRID yyerror("racoon not configured with --enable-hybrid"); @@ -3197,9 +3261,8 @@ yyreduce: break; case 131: - -/* Line 1455 of yacc.c */ -#line 813 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 883 "cfparse.y" { #ifdef ENABLE_HYBRID strncpy(&isakmp_cfg_config.default_domain[0], @@ -3213,9 +3276,8 @@ yyreduce: break; case 133: - -/* Line 1455 of yacc.c */ -#line 825 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 895 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.authsource = ISAKMP_CFG_AUTH_SYSTEM; @@ -3226,9 +3288,8 @@ yyreduce: break; case 135: - -/* Line 1455 of yacc.c */ -#line 834 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 904 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -3243,9 +3304,8 @@ yyreduce: break; case 137: - -/* Line 1455 of yacc.c */ -#line 847 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 917 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBPAM @@ -3260,9 +3320,8 @@ yyreduce: break; case 139: - -/* Line 1455 of yacc.c */ -#line 860 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 930 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3277,9 +3336,8 @@ yyreduce: break; case 141: - -/* Line 1455 of yacc.c */ -#line 873 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 943 "cfparse.y" { #ifndef ENABLE_HYBRID yyerror("racoon not configured with --enable-hybrid"); @@ -3288,9 +3346,8 @@ yyreduce: break; case 143: - -/* Line 1455 of yacc.c */ -#line 880 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 950 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.groupsource = ISAKMP_CFG_GROUP_SYSTEM; @@ -3301,9 +3358,8 @@ yyreduce: break; case 145: - -/* Line 1455 of yacc.c */ -#line 889 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 959 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3318,9 +3374,8 @@ yyreduce: break; case 147: - -/* Line 1455 of yacc.c */ -#line 902 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 972 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.accounting = ISAKMP_CFG_ACCT_NONE; @@ -3331,9 +3386,8 @@ yyreduce: break; case 149: - -/* Line 1455 of yacc.c */ -#line 911 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 981 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.accounting = ISAKMP_CFG_ACCT_SYSTEM; @@ -3344,9 +3398,8 @@ yyreduce: break; case 151: - -/* Line 1455 of yacc.c */ -#line 920 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 990 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -3361,9 +3414,8 @@ yyreduce: break; case 153: - -/* Line 1455 of yacc.c */ -#line 933 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1003 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBPAM @@ -3378,9 +3430,8 @@ yyreduce: break; case 155: - -/* Line 1455 of yacc.c */ -#line 946 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1016 "cfparse.y" { #ifdef ENABLE_HYBRID if (isakmp_cfg_resize_pool((yyvsp[(2) - (2)].num)) != 0) @@ -3392,9 +3443,8 @@ yyreduce: break; case 157: - -/* Line 1455 of yacc.c */ -#line 956 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1026 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.pfs_group = (yyvsp[(2) - (2)].num); @@ -3405,9 +3455,8 @@ yyreduce: break; case 159: - -/* Line 1455 of yacc.c */ -#line 965 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1035 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.save_passwd = (yyvsp[(2) - (2)].num); @@ -3418,9 +3467,8 @@ yyreduce: break; case 161: - -/* Line 1455 of yacc.c */ -#line 974 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1044 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.auth_throttle = (yyvsp[(2) - (2)].num); @@ -3431,9 +3479,8 @@ yyreduce: break; case 163: - -/* Line 1455 of yacc.c */ -#line 983 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1053 "cfparse.y" { #ifdef ENABLE_HYBRID isakmp_cfg_config.confsource = ISAKMP_CFG_CONF_LOCAL; @@ -3444,9 +3491,8 @@ yyreduce: break; case 165: - -/* Line 1455 of yacc.c */ -#line 992 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1062 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBRADIUS @@ -3461,9 +3507,8 @@ yyreduce: break; case 167: - -/* Line 1455 of yacc.c */ -#line 1005 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1075 "cfparse.y" { #ifdef ENABLE_HYBRID #ifdef HAVE_LIBLDAP @@ -3478,9 +3523,8 @@ yyreduce: break; case 169: - -/* Line 1455 of yacc.c */ -#line 1018 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1088 "cfparse.y" { #ifdef ENABLE_HYBRID strncpy(&isakmp_cfg_config.motd[0], (yyvsp[(2) - (2)].val)->v, MAXPATHLEN); @@ -3493,9 +3537,8 @@ yyreduce: break; case 173: - -/* Line 1455 of yacc.c */ -#line 1036 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1106 "cfparse.y" { #ifdef ENABLE_HYBRID struct isakmp_cfg_config *icc = &isakmp_cfg_config; @@ -3512,9 +3555,8 @@ yyreduce: break; case 176: - -/* Line 1455 of yacc.c */ -#line 1057 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1127 "cfparse.y" { #ifdef ENABLE_HYBRID struct isakmp_cfg_config *icc = &isakmp_cfg_config; @@ -3531,9 +3573,8 @@ yyreduce: break; case 179: - -/* Line 1455 of yacc.c */ -#line 1078 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1148 "cfparse.y" { #ifdef ENABLE_HYBRID struct isakmp_cfg_config *icc = &isakmp_cfg_config; @@ -3556,9 +3597,8 @@ yyreduce: break; case 182: - -/* Line 1455 of yacc.c */ -#line 1105 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1175 "cfparse.y" { #ifdef ENABLE_HYBRID char * groupname = NULL; @@ -3592,9 +3632,8 @@ yyreduce: break; case 185: - -/* Line 1455 of yacc.c */ -#line 1143 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1213 "cfparse.y" { #ifdef ENABLE_HYBRID struct isakmp_cfg_config *icc = &isakmp_cfg_config; @@ -3629,54 +3668,48 @@ yyreduce: break; case 189: - -/* Line 1455 of yacc.c */ -#line 1187 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1257 "cfparse.y" { lcconf->retry_counter = (yyvsp[(2) - (2)].num); } break; case 191: - -/* Line 1455 of yacc.c */ -#line 1192 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1262 "cfparse.y" { lcconf->retry_interval = (yyvsp[(2) - (3)].num) * (yyvsp[(3) - (3)].num); } break; case 193: - -/* Line 1455 of yacc.c */ -#line 1197 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1267 "cfparse.y" { lcconf->count_persend = (yyvsp[(2) - (2)].num); } break; case 195: - -/* Line 1455 of yacc.c */ -#line 1202 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1272 "cfparse.y" { lcconf->retry_checkph1 = (yyvsp[(2) - (3)].num) * (yyvsp[(3) - (3)].num); } break; case 197: - -/* Line 1455 of yacc.c */ -#line 1207 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1277 "cfparse.y" { lcconf->wait_ph2complete = (yyvsp[(2) - (3)].num) * (yyvsp[(3) - (3)].num); } break; case 199: - -/* Line 1455 of yacc.c */ -#line 1212 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1282 "cfparse.y" { #ifdef ENABLE_NATT if (libipsec_opt & LIBIPSEC_OPT_NATT) @@ -3690,9 +3723,8 @@ yyreduce: break; case 201: - -/* Line 1455 of yacc.c */ -#line 1228 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1298 "cfparse.y" { cur_sainfo = newsainfo(); if (cur_sainfo == NULL) { @@ -3703,9 +3735,8 @@ yyreduce: break; case 202: - -/* Line 1455 of yacc.c */ -#line 1236 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1306 "cfparse.y" { struct sainfo *check; @@ -3745,9 +3776,8 @@ yyreduce: break; case 204: - -/* Line 1455 of yacc.c */ -#line 1276 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1346 "cfparse.y" { cur_sainfo->idsrc = SAINFO_ANONYMOUS; cur_sainfo->iddst = SAINFO_ANONYMOUS; @@ -3755,9 +3785,8 @@ yyreduce: break; case 205: - -/* Line 1455 of yacc.c */ -#line 1281 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1351 "cfparse.y" { cur_sainfo->idsrc = SAINFO_ANONYMOUS; cur_sainfo->iddst = SAINFO_CLIENTADDR; @@ -3765,9 +3794,8 @@ yyreduce: break; case 206: - -/* Line 1455 of yacc.c */ -#line 1286 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1356 "cfparse.y" { cur_sainfo->idsrc = SAINFO_ANONYMOUS; cur_sainfo->iddst = (yyvsp[(2) - (2)].val); @@ -3775,9 +3803,8 @@ yyreduce: break; case 207: - -/* Line 1455 of yacc.c */ -#line 1291 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1361 "cfparse.y" { cur_sainfo->idsrc = (yyvsp[(1) - (2)].val); cur_sainfo->iddst = SAINFO_ANONYMOUS; @@ -3785,9 +3812,8 @@ yyreduce: break; case 208: - -/* Line 1455 of yacc.c */ -#line 1296 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1366 "cfparse.y" { cur_sainfo->idsrc = (yyvsp[(1) - (2)].val); cur_sainfo->iddst = SAINFO_CLIENTADDR; @@ -3795,9 +3821,8 @@ yyreduce: break; case 209: - -/* Line 1455 of yacc.c */ -#line 1301 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1371 "cfparse.y" { cur_sainfo->idsrc = (yyvsp[(1) - (2)].val); cur_sainfo->iddst = (yyvsp[(2) - (2)].val); @@ -3805,9 +3830,8 @@ yyreduce: break; case 210: - -/* Line 1455 of yacc.c */ -#line 1308 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1378 "cfparse.y" { char portbuf[10]; struct sockaddr *saddr; @@ -3859,9 +3883,8 @@ yyreduce: break; case 211: - -/* Line 1455 of yacc.c */ -#line 1357 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1427 "cfparse.y" { char portbuf[10]; struct sockaddr *laddr = NULL, *haddr = NULL; @@ -3929,9 +3952,8 @@ yyreduce: break; case 212: - -/* Line 1455 of yacc.c */ -#line 1422 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1492 "cfparse.y" { struct ipsecdoi_id_b *id_b; @@ -3960,18 +3982,16 @@ yyreduce: break; case 213: - -/* Line 1455 of yacc.c */ -#line 1450 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1520 "cfparse.y" { cur_sainfo->id_i = NULL; } break; case 214: - -/* Line 1455 of yacc.c */ -#line 1454 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1524 "cfparse.y" { struct ipsecdoi_id_b *id_b; vchar_t *idv; @@ -3999,9 +4019,8 @@ yyreduce: break; case 215: - -/* Line 1455 of yacc.c */ -#line 1479 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1549 "cfparse.y" { #ifdef ENABLE_HYBRID if ((cur_sainfo->group = vdup((yyvsp[(2) - (2)].val))) == NULL) { @@ -4016,36 +4035,32 @@ yyreduce: break; case 218: - -/* Line 1455 of yacc.c */ -#line 1497 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1567 "cfparse.y" { cur_sainfo->pfs_group = (yyvsp[(2) - (2)].num); } break; case 220: - -/* Line 1455 of yacc.c */ -#line 1502 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1572 "cfparse.y" { cur_sainfo->remoteid = (yyvsp[(2) - (2)].num); } break; case 222: - -/* Line 1455 of yacc.c */ -#line 1507 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1577 "cfparse.y" { cur_sainfo->lifetime = (yyvsp[(3) - (4)].num) * (yyvsp[(4) - (4)].num); } break; case 224: - -/* Line 1455 of yacc.c */ -#line 1512 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1582 "cfparse.y" { #if 1 yyerror("byte lifetime support is deprecated"); @@ -4059,36 +4074,32 @@ yyreduce: break; case 226: - -/* Line 1455 of yacc.c */ -#line 1523 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1593 "cfparse.y" { cur_algclass = (yyvsp[(1) - (1)].num); } break; case 228: - -/* Line 1455 of yacc.c */ -#line 1531 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1601 "cfparse.y" { inssainfoalg(&cur_sainfo->algs[cur_algclass], (yyvsp[(1) - (1)].alg)); } break; case 229: - -/* Line 1455 of yacc.c */ -#line 1535 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1605 "cfparse.y" { inssainfoalg(&cur_sainfo->algs[cur_algclass], (yyvsp[(1) - (1)].alg)); } break; case 231: - -/* Line 1455 of yacc.c */ -#line 1542 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1612 "cfparse.y" { int defklen; @@ -4145,79 +4156,68 @@ yyreduce: break; case 232: - -/* Line 1455 of yacc.c */ -#line 1597 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1667 "cfparse.y" { (yyval.num) = ~0; } break; case 233: - -/* Line 1455 of yacc.c */ -#line 1598 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1668 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 234: - -/* Line 1455 of yacc.c */ -#line 1601 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1671 "cfparse.y" { (yyval.num) = IPSEC_PORT_ANY; } break; case 235: - -/* Line 1455 of yacc.c */ -#line 1602 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1672 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 236: - -/* Line 1455 of yacc.c */ -#line 1603 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1673 "cfparse.y" { (yyval.num) = IPSEC_PORT_ANY; } break; case 237: - -/* Line 1455 of yacc.c */ -#line 1606 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1676 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 238: - -/* Line 1455 of yacc.c */ -#line 1607 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1677 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 239: - -/* Line 1455 of yacc.c */ -#line 1608 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1678 "cfparse.y" { (yyval.num) = IPSEC_ULPROTO_ANY; } break; case 240: - -/* Line 1455 of yacc.c */ -#line 1611 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1681 "cfparse.y" { (yyval.num) = 0; } break; case 241: - -/* Line 1455 of yacc.c */ -#line 1612 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1682 "cfparse.y" { (yyval.num) = (yyvsp[(1) - (1)].num); } break; case 242: - -/* Line 1455 of yacc.c */ -#line 1618 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1688 "cfparse.y" { struct remoteconf *from, *new; @@ -4249,9 +4249,8 @@ yyreduce: break; case 244: - -/* Line 1455 of yacc.c */ -#line 1648 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1718 "cfparse.y" { struct remoteconf *new; @@ -4273,9 +4272,8 @@ yyreduce: break; case 246: - -/* Line 1455 of yacc.c */ -#line 1668 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1738 "cfparse.y" { struct remoteconf *from, *new; @@ -4300,9 +4298,8 @@ yyreduce: break; case 248: - -/* Line 1455 of yacc.c */ -#line 1691 "cfparse.y" +/* Line 1787 of yacc.c */ +#line 1761 "cfparse.y" { struct remoteconf *new; @@ -4317,90 +4314,27 @@ yyreduce: } break; - case 250: - -/* Line 1455 of yacc.c */ -#line 1708 "cfparse.y" + case 251: +/* Line 1787 of yacc.c */ +#line 1779 "cfparse.y" { - /* check a exchange mode */ - if (cur_rmconf->etypes == NULL) { - yyerror("no exchange mode specified.\n"); + if (process_rmconf() != 0) return -1; - } + } + break; - if (cur_rmconf->idvtype == IDTYPE_UNDEFINED) - cur_rmconf->idvtype = IDTYPE_ADDRESS; - - if (cur_rmconf->idvtype == IDTYPE_ASN1DN) { - if (cur_rmconf->mycertfile) { - if (cur_rmconf->idv) - yywarn("Both CERT and ASN1 ID " - "are set. Hope this is OK.\n"); - /* TODO: Preparse the DN here */ - } else if (cur_rmconf->idv) { - /* OK, using asn1dn without X.509. */ - } else { - yyerror("ASN1 ID not specified " - "and no CERT defined!\n"); - return -1; - } - } - - if (duprmconf_finish(cur_rmconf)) + case 252: +/* Line 1787 of yacc.c */ +#line 1787 "cfparse.y" + { + if (process_rmconf() != 0) return -1; - -#if 0 - /* this pointer copy will never happen, because duprmconf_shallow - * already copied all pointers. - */ - if (cur_rmconf->spspec == NULL && - cur_rmconf->inherited_from != NULL) { - cur_rmconf->spspec = cur_rmconf->inherited_from->spspec; - } -#endif - if (set_isakmp_proposal(cur_rmconf) != 0) - return -1; - - /* DH group settting if aggressive mode is there. */ - if (check_etypeok(cur_rmconf, (void*) ISAKMP_ETYPE_AGG)) { - struct isakmpsa *p; - int b = 0; - - /* DH group */ - for (p = cur_rmconf->proposal; p; p = p->next) { - if (b == 0 || (b && b == p->dh_group)) { - b = p->dh_group; - continue; - } - yyerror("DH group must be equal " - "in all proposals " - "when aggressive mode is " - "used.\n"); - return -1; - } - cur_rmconf->dh_group = b; - - if (cur_rmconf->dh_group == 0) { - yyerror("DH group must be set in the proposal.\n"); - return -1; - } - - /* DH group settting if PFS is required. */ - if (oakley_setdhgroup(cur_rmconf->dh_group, - &cur_rmconf->dhgrp) < 0) { - yyerror("failed to set DH value.\n"); - return -1; - } - } - - insrmconf(cur_rmconf); } break; - case 251: - -/* Line 1455 of yacc.c */ -#line 1785 "cfparse.y" + case 253: +/* Line 1787 of yacc.c */ +#line 1794 "cfparse.y" { (yyval.saddr) = newsaddr(sizeof(struct sockaddr)); (yyval.saddr)->sa_family = AF_UNSPEC; @@ -4408,10 +4342,9 @@ yyreduce: } break; - case 252: - -/* Line 1455 of yacc.c */ -#line 1791 "cfparse.y" + case 254: +/* Line 1787 of yacc.c */ +#line 1800 "cfparse.y" { (yyval.saddr) = (yyvsp[(1) - (1)].saddr); if ((yyval.saddr) == NULL) { @@ -4421,10 +4354,9 @@ yyreduce: } break; - case 255: - -/* Line 1455 of yacc.c */ -#line 1805 "cfparse.y" + case 257: +/* Line 1787 of yacc.c */ +#line 1814 "cfparse.y" { if (cur_rmconf->remote != NULL) { yyerror("remote_address already specified"); @@ -4434,33 +4366,29 @@ yyreduce: } break; - case 257: - -/* Line 1455 of yacc.c */ -#line 1814 "cfparse.y" + case 259: +/* Line 1787 of yacc.c */ +#line 1823 "cfparse.y" { cur_rmconf->etypes = NULL; } break; - case 259: - -/* Line 1455 of yacc.c */ -#line 1818 "cfparse.y" + case 261: +/* Line 1787 of yacc.c */ +#line 1827 "cfparse.y" { cur_rmconf->doitype = (yyvsp[(2) - (2)].num); } break; - case 261: - -/* Line 1455 of yacc.c */ -#line 1819 "cfparse.y" + case 263: +/* Line 1787 of yacc.c */ +#line 1828 "cfparse.y" { cur_rmconf->sittype = (yyvsp[(2) - (2)].num); } break; - case 264: - -/* Line 1455 of yacc.c */ -#line 1822 "cfparse.y" + case 266: +/* Line 1787 of yacc.c */ +#line 1831 "cfparse.y" { yywarn("This directive without certtype will be removed!\n"); yywarn("Please use 'peers_certfile x509 \"%s\";' instead\n", (yyvsp[(2) - (2)].val)->v); @@ -4481,10 +4409,9 @@ yyreduce: } break; - case 266: - -/* Line 1455 of yacc.c */ -#line 1842 "cfparse.y" + case 268: +/* Line 1787 of yacc.c */ +#line 1851 "cfparse.y" { if (cur_rmconf->peerscert != NULL) { yyerror("peers_certfile already defined\n"); @@ -4502,10 +4429,9 @@ yyreduce: } break; - case 268: - -/* Line 1455 of yacc.c */ -#line 1859 "cfparse.y" + case 270: +/* Line 1787 of yacc.c */ +#line 1868 "cfparse.y" { char path[MAXPATHLEN]; int ret = 0; @@ -4536,10 +4462,9 @@ yyreduce: } break; - case 270: - -/* Line 1455 of yacc.c */ -#line 1889 "cfparse.y" + case 272: +/* Line 1787 of yacc.c */ +#line 1898 "cfparse.y" { if (cur_rmconf->peerscert != NULL) { yyerror("peers_certfile already defined\n"); @@ -4554,10 +4479,9 @@ yyreduce: } break; - case 272: - -/* Line 1455 of yacc.c */ -#line 1903 "cfparse.y" + case 274: +/* Line 1787 of yacc.c */ +#line 1912 "cfparse.y" { if (cur_rmconf->cacert != NULL) { yyerror("ca_type already defined\n"); @@ -4575,38 +4499,33 @@ yyreduce: } break; - case 274: - -/* Line 1455 of yacc.c */ -#line 1919 "cfparse.y" + case 276: +/* Line 1787 of yacc.c */ +#line 1928 "cfparse.y" { cur_rmconf->verify_cert = (yyvsp[(2) - (2)].num); } break; - case 276: - -/* Line 1455 of yacc.c */ -#line 1920 "cfparse.y" + case 278: +/* Line 1787 of yacc.c */ +#line 1929 "cfparse.y" { cur_rmconf->send_cert = (yyvsp[(2) - (2)].num); } break; - case 278: - -/* Line 1455 of yacc.c */ -#line 1921 "cfparse.y" + case 280: +/* Line 1787 of yacc.c */ +#line 1930 "cfparse.y" { cur_rmconf->send_cr = (yyvsp[(2) - (2)].num); } break; - case 280: - -/* Line 1455 of yacc.c */ -#line 1922 "cfparse.y" + case 282: +/* Line 1787 of yacc.c */ +#line 1931 "cfparse.y" { cur_rmconf->match_empty_cr = (yyvsp[(2) - (2)].num); } break; - case 282: - -/* Line 1455 of yacc.c */ -#line 1924 "cfparse.y" + case 284: +/* Line 1787 of yacc.c */ +#line 1933 "cfparse.y" { if (set_identifier(&cur_rmconf->idv, (yyvsp[(2) - (3)].num), (yyvsp[(3) - (3)].val)) != 0) { yyerror("failed to set identifer.\n"); @@ -4616,10 +4535,9 @@ yyreduce: } break; - case 284: - -/* Line 1455 of yacc.c */ -#line 1933 "cfparse.y" + case 286: +/* Line 1787 of yacc.c */ +#line 1942 "cfparse.y" { if (set_identifier_qual(&cur_rmconf->idv, (yyvsp[(2) - (4)].num), (yyvsp[(4) - (4)].val), (yyvsp[(3) - (4)].num)) != 0) { yyerror("failed to set identifer.\n"); @@ -4629,10 +4547,9 @@ yyreduce: } break; - case 286: - -/* Line 1455 of yacc.c */ -#line 1942 "cfparse.y" + case 288: +/* Line 1787 of yacc.c */ +#line 1951 "cfparse.y" { #ifdef ENABLE_HYBRID /* formerly identifier type login */ @@ -4650,10 +4567,9 @@ yyreduce: } break; - case 288: - -/* Line 1455 of yacc.c */ -#line 1959 "cfparse.y" + case 290: +/* Line 1787 of yacc.c */ +#line 1968 "cfparse.y" { struct idspec *id; id = newidspec(); @@ -4671,10 +4587,9 @@ yyreduce: } break; - case 290: - -/* Line 1455 of yacc.c */ -#line 1976 "cfparse.y" + case 292: +/* Line 1787 of yacc.c */ +#line 1985 "cfparse.y" { struct idspec *id; id = newidspec(); @@ -4692,55 +4607,48 @@ yyreduce: } break; - case 292: - -/* Line 1455 of yacc.c */ -#line 1992 "cfparse.y" + case 294: +/* Line 1787 of yacc.c */ +#line 2001 "cfparse.y" { cur_rmconf->verify_identifier = (yyvsp[(2) - (2)].num); } break; - case 294: - -/* Line 1455 of yacc.c */ -#line 1993 "cfparse.y" + case 296: +/* Line 1787 of yacc.c */ +#line 2002 "cfparse.y" { cur_rmconf->nonce_size = (yyvsp[(2) - (2)].num); } break; - case 296: - -/* Line 1455 of yacc.c */ -#line 1995 "cfparse.y" + case 298: +/* Line 1787 of yacc.c */ +#line 2004 "cfparse.y" { yyerror("dh_group cannot be defined here."); return -1; } break; - case 298: - -/* Line 1455 of yacc.c */ -#line 2000 "cfparse.y" + case 300: +/* Line 1787 of yacc.c */ +#line 2009 "cfparse.y" { cur_rmconf->passive = (yyvsp[(2) - (2)].num); } break; - case 300: - -/* Line 1455 of yacc.c */ -#line 2001 "cfparse.y" + case 302: +/* Line 1787 of yacc.c */ +#line 2010 "cfparse.y" { cur_rmconf->ike_frag = (yyvsp[(2) - (2)].num); } break; - case 302: - -/* Line 1455 of yacc.c */ -#line 2002 "cfparse.y" + case 304: +/* Line 1787 of yacc.c */ +#line 2011 "cfparse.y" { cur_rmconf->ike_frag = ISAKMP_FRAG_FORCE; } break; - case 304: - -/* Line 1455 of yacc.c */ -#line 2003 "cfparse.y" + case 306: +/* Line 1787 of yacc.c */ +#line 2012 "cfparse.y" { #ifdef SADB_X_EXT_NAT_T_FRAG if (libipsec_opt & LIBIPSEC_OPT_FRAG) @@ -4753,10 +4661,9 @@ yyreduce: } break; - case 306: - -/* Line 1455 of yacc.c */ -#line 2013 "cfparse.y" + case 308: +/* Line 1787 of yacc.c */ +#line 2022 "cfparse.y" { if (cur_rmconf->script[SCRIPT_PHASE1_UP] != NULL) vfree(cur_rmconf->script[SCRIPT_PHASE1_UP]); @@ -4766,10 +4673,9 @@ yyreduce: } break; - case 308: - -/* Line 1455 of yacc.c */ -#line 2020 "cfparse.y" + case 310: +/* Line 1787 of yacc.c */ +#line 2029 "cfparse.y" { if (cur_rmconf->script[SCRIPT_PHASE1_DOWN] != NULL) vfree(cur_rmconf->script[SCRIPT_PHASE1_DOWN]); @@ -4779,10 +4685,9 @@ yyreduce: } break; - case 310: - -/* Line 1455 of yacc.c */ -#line 2027 "cfparse.y" + case 312: +/* Line 1787 of yacc.c */ +#line 2036 "cfparse.y" { if (cur_rmconf->script[SCRIPT_PHASE1_DEAD] != NULL) vfree(cur_rmconf->script[SCRIPT_PHASE1_DEAD]); @@ -4792,54 +4697,47 @@ yyreduce: } break; - case 312: - -/* Line 1455 of yacc.c */ -#line 2034 "cfparse.y" + case 314: +/* Line 1787 of yacc.c */ +#line 2043 "cfparse.y" { cur_rmconf->mode_cfg = (yyvsp[(2) - (2)].num); } break; - case 314: - -/* Line 1455 of yacc.c */ -#line 2035 "cfparse.y" + case 316: +/* Line 1787 of yacc.c */ +#line 2044 "cfparse.y" { cur_rmconf->weak_phase1_check = (yyvsp[(2) - (2)].num); } break; - case 316: - -/* Line 1455 of yacc.c */ -#line 2038 "cfparse.y" + case 318: +/* Line 1787 of yacc.c */ +#line 2047 "cfparse.y" { cur_rmconf->gen_policy = (yyvsp[(2) - (2)].num); } break; - case 318: - -/* Line 1455 of yacc.c */ -#line 2039 "cfparse.y" + case 320: +/* Line 1787 of yacc.c */ +#line 2048 "cfparse.y" { cur_rmconf->gen_policy = (yyvsp[(2) - (2)].num); } break; - case 320: - -/* Line 1455 of yacc.c */ -#line 2040 "cfparse.y" + case 322: +/* Line 1787 of yacc.c */ +#line 2049 "cfparse.y" { cur_rmconf->support_proxy = (yyvsp[(2) - (2)].num); } break; - case 322: - -/* Line 1455 of yacc.c */ -#line 2041 "cfparse.y" + case 324: +/* Line 1787 of yacc.c */ +#line 2050 "cfparse.y" { cur_rmconf->ini_contact = (yyvsp[(2) - (2)].num); } break; - case 324: - -/* Line 1455 of yacc.c */ -#line 2043 "cfparse.y" + case 326: +/* Line 1787 of yacc.c */ +#line 2052 "cfparse.y" { #ifdef ENABLE_NATT if (libipsec_opt & LIBIPSEC_OPT_NATT) @@ -4852,10 +4750,9 @@ yyreduce: } break; - case 326: - -/* Line 1455 of yacc.c */ -#line 2054 "cfparse.y" + case 328: +/* Line 1787 of yacc.c */ +#line 2063 "cfparse.y" { #ifdef ENABLE_NATT if (libipsec_opt & LIBIPSEC_OPT_NATT) @@ -4868,10 +4765,9 @@ yyreduce: } break; - case 328: - -/* Line 1455 of yacc.c */ -#line 2065 "cfparse.y" + case 330: +/* Line 1787 of yacc.c */ +#line 2074 "cfparse.y" { #ifdef ENABLE_DPD cur_rmconf->dpd = (yyvsp[(2) - (2)].num); @@ -4881,10 +4777,9 @@ yyreduce: } break; - case 330: - -/* Line 1455 of yacc.c */ -#line 2073 "cfparse.y" + case 332: +/* Line 1787 of yacc.c */ +#line 2082 "cfparse.y" { #ifdef ENABLE_DPD cur_rmconf->dpd_interval = (yyvsp[(2) - (2)].num); @@ -4894,10 +4789,9 @@ yyreduce: } break; - case 332: - -/* Line 1455 of yacc.c */ -#line 2082 "cfparse.y" + case 334: +/* Line 1787 of yacc.c */ +#line 2091 "cfparse.y" { #ifdef ENABLE_DPD cur_rmconf->dpd_retry = (yyvsp[(2) - (2)].num); @@ -4907,10 +4801,9 @@ yyreduce: } break; - case 334: - -/* Line 1455 of yacc.c */ -#line 2091 "cfparse.y" + case 336: +/* Line 1787 of yacc.c */ +#line 2100 "cfparse.y" { #ifdef ENABLE_DPD cur_rmconf->dpd_maxfails = (yyvsp[(2) - (2)].num); @@ -4920,49 +4813,43 @@ yyreduce: } break; - case 336: - -/* Line 1455 of yacc.c */ -#line 2099 "cfparse.y" + case 338: +/* Line 1787 of yacc.c */ +#line 2108 "cfparse.y" { cur_rmconf->rekey = (yyvsp[(2) - (2)].num); } break; - case 338: - -/* Line 1455 of yacc.c */ -#line 2100 "cfparse.y" + case 340: +/* Line 1787 of yacc.c */ +#line 2109 "cfparse.y" { cur_rmconf->rekey = REKEY_FORCE; } break; - case 340: - -/* Line 1455 of yacc.c */ -#line 2102 "cfparse.y" + case 342: +/* Line 1787 of yacc.c */ +#line 2111 "cfparse.y" { cur_rmconf->ph1id = (yyvsp[(2) - (2)].num); } break; - case 342: - -/* Line 1455 of yacc.c */ -#line 2107 "cfparse.y" + case 344: +/* Line 1787 of yacc.c */ +#line 2116 "cfparse.y" { cur_rmconf->lifetime = (yyvsp[(3) - (4)].num) * (yyvsp[(4) - (4)].num); } break; - case 344: - -/* Line 1455 of yacc.c */ -#line 2111 "cfparse.y" + case 346: +/* Line 1787 of yacc.c */ +#line 2120 "cfparse.y" { cur_rmconf->pcheck_level = (yyvsp[(2) - (2)].num); } break; - case 346: - -/* Line 1455 of yacc.c */ -#line 2113 "cfparse.y" + case 348: +/* Line 1787 of yacc.c */ +#line 2122 "cfparse.y" { #if 1 yyerror("byte lifetime support is deprecated in Phase1"); @@ -4977,10 +4864,9 @@ yyreduce: } break; - case 348: - -/* Line 1455 of yacc.c */ -#line 2127 "cfparse.y" + case 350: +/* Line 1787 of yacc.c */ +#line 2136 "cfparse.y" { struct secprotospec *spspec; @@ -4991,10 +4877,9 @@ yyreduce: } break; - case 351: - -/* Line 1455 of yacc.c */ -#line 2140 "cfparse.y" + case 353: +/* Line 1787 of yacc.c */ +#line 2149 "cfparse.y" { struct etypes *new; new = racoon_malloc(sizeof(struct etypes)); @@ -5017,10 +4902,9 @@ yyreduce: } break; - case 352: - -/* Line 1455 of yacc.c */ -#line 2163 "cfparse.y" + case 354: +/* Line 1787 of yacc.c */ +#line 2172 "cfparse.y" { if (cur_rmconf->mycert != NULL) { yyerror("certificate_type already defined\n"); @@ -5042,10 +4926,9 @@ yyreduce: } break; - case 354: - -/* Line 1455 of yacc.c */ -#line 2184 "cfparse.y" + case 356: +/* Line 1787 of yacc.c */ +#line 2193 "cfparse.y" { char path[MAXPATHLEN]; int ret = 0; @@ -5078,10 +4961,9 @@ yyreduce: } break; - case 356: - -/* Line 1455 of yacc.c */ -#line 2218 "cfparse.y" + case 358: +/* Line 1787 of yacc.c */ +#line 2227 "cfparse.y" { (yyval.num) = algtype2doi(algclass_isakmp_dh, (yyvsp[(1) - (1)].num)); if ((yyval.num) == -1) { @@ -5091,10 +4973,9 @@ yyreduce: } break; - case 357: - -/* Line 1455 of yacc.c */ -#line 2226 "cfparse.y" + case 359: +/* Line 1787 of yacc.c */ +#line 2235 "cfparse.y" { if (ARRAYLEN(num2dhgroup) > (yyvsp[(1) - (1)].num) && num2dhgroup[(yyvsp[(1) - (1)].num)] != 0) { (yyval.num) = num2dhgroup[(yyvsp[(1) - (1)].num)]; @@ -5106,40 +4987,35 @@ yyreduce: } break; - case 358: - -/* Line 1455 of yacc.c */ -#line 2237 "cfparse.y" + case 360: +/* Line 1787 of yacc.c */ +#line 2246 "cfparse.y" { (yyval.val) = NULL; } break; - case 359: - -/* Line 1455 of yacc.c */ -#line 2238 "cfparse.y" + case 361: +/* Line 1787 of yacc.c */ +#line 2247 "cfparse.y" { (yyval.val) = (yyvsp[(1) - (1)].val); } break; - case 360: - -/* Line 1455 of yacc.c */ -#line 2239 "cfparse.y" + case 362: +/* Line 1787 of yacc.c */ +#line 2248 "cfparse.y" { (yyval.val) = (yyvsp[(1) - (1)].val); } break; - case 363: - -/* Line 1455 of yacc.c */ -#line 2247 "cfparse.y" + case 365: +/* Line 1787 of yacc.c */ +#line 2256 "cfparse.y" { cur_rmconf->spspec->lifetime = (yyvsp[(3) - (4)].num) * (yyvsp[(4) - (4)].num); } break; - case 365: - -/* Line 1455 of yacc.c */ -#line 2252 "cfparse.y" + case 367: +/* Line 1787 of yacc.c */ +#line 2261 "cfparse.y" { #if 1 yyerror("byte lifetime support is deprecated"); @@ -5152,19 +5028,17 @@ yyreduce: } break; - case 367: - -/* Line 1455 of yacc.c */ -#line 2264 "cfparse.y" + case 369: +/* Line 1787 of yacc.c */ +#line 2273 "cfparse.y" { cur_rmconf->spspec->algclass[algclass_isakmp_dh] = (yyvsp[(2) - (2)].num); } break; - case 369: - -/* Line 1455 of yacc.c */ -#line 2269 "cfparse.y" + case 371: +/* Line 1787 of yacc.c */ +#line 2278 "cfparse.y" { if (cur_rmconf->spspec->vendorid != VENDORID_GSSAPI) { yyerror("wrong Vendor ID for gssapi_id"); @@ -5178,10 +5052,9 @@ yyreduce: } break; - case 371: - -/* Line 1455 of yacc.c */ -#line 2282 "cfparse.y" + case 373: +/* Line 1787 of yacc.c */ +#line 2291 "cfparse.y" { int doi; int defklen; @@ -5277,61 +5150,64 @@ yyreduce: } break; - case 373: - -/* Line 1455 of yacc.c */ -#line 2379 "cfparse.y" + case 375: +/* Line 1787 of yacc.c */ +#line 2388 "cfparse.y" { (yyval.num) = 1; } break; - case 374: - -/* Line 1455 of yacc.c */ -#line 2380 "cfparse.y" + case 376: +/* Line 1787 of yacc.c */ +#line 2389 "cfparse.y" { (yyval.num) = 60; } break; - case 375: - -/* Line 1455 of yacc.c */ -#line 2381 "cfparse.y" + case 377: +/* Line 1787 of yacc.c */ +#line 2390 "cfparse.y" { (yyval.num) = (60 * 60); } break; - case 376: - -/* Line 1455 of yacc.c */ -#line 2384 "cfparse.y" + case 378: +/* Line 1787 of yacc.c */ +#line 2393 "cfparse.y" { (yyval.num) = 1; } break; - case 377: - -/* Line 1455 of yacc.c */ -#line 2385 "cfparse.y" + case 379: +/* Line 1787 of yacc.c */ +#line 2394 "cfparse.y" { (yyval.num) = 1024; } break; - case 378: - -/* Line 1455 of yacc.c */ -#line 2386 "cfparse.y" + case 380: +/* Line 1787 of yacc.c */ +#line 2395 "cfparse.y" { (yyval.num) = (1024 * 1024); } break; - case 379: - -/* Line 1455 of yacc.c */ -#line 2387 "cfparse.y" + case 381: +/* Line 1787 of yacc.c */ +#line 2396 "cfparse.y" { (yyval.num) = (1024 * 1024 * 1024); } break; - -/* Line 1455 of yacc.c */ -#line 5333 "cfparse.c" +/* Line 1787 of yacc.c */ +#line 5198 "cfparse.c" default: break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); @@ -5359,6 +5235,10 @@ yyreduce: | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { @@ -5366,37 +5246,36 @@ yyerrlab: #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else +# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ + yyssp, yytoken) { - YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); - if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) - { - YYSIZE_T yyalloc = 2 * yysize; - if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) - yyalloc = YYSTACK_ALLOC_MAXIMUM; - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yyalloc); - if (yymsg) - yymsg_alloc = yyalloc; - else - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - } - } - - if (0 < yysize && yysize <= yymsg_alloc) - { - (void) yysyntax_error (yymsg, yystate, yychar); - yyerror (yymsg); - } - else - { - yyerror (YY_("syntax error")); - if (yysize != 0) - goto yyexhaustedlab; - } + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) + yymsgp = yymsg; + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror (yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; } +# undef YYSYNTAX_ERROR #endif } @@ -5455,7 +5334,7 @@ yyerrlab1: for (;;) { yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) + if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) @@ -5502,7 +5381,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined(yyoverflow) || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -5514,8 +5393,13 @@ yyexhaustedlab: yyreturn: if (yychar != YYEMPTY) - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); + { + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + } /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); @@ -5539,11 +5423,10 @@ yyreturn: } +/* Line 2048 of yacc.c */ +#line 2398 "cfparse.y" -/* Line 1675 of yacc.c */ -#line 2389 "cfparse.y" - static struct secprotospec * newspspec() { @@ -5986,4 +5869,3 @@ adminsock_conf(path, owner, group, mode_dec) return; } #endif -