00001 #ifndef FLEX_HEADER_sslscanner_h
00002 #define FLEX_HEADER_sslscanner_h
00003 #define YY_SSLScanner_CHAR char
00004 #line 1 "//usr/local/lib/flexskel.h"
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef c_plusplus
00018 #ifndef __cplusplus
00019 #define __cplusplus
00020 #endif
00021 #endif
00022 #ifdef __cplusplus
00023 #ifndef YY_USE_PROTOS
00024 #define YY_USE_PROTOS
00025 #endif
00026 #ifndef YY_USE_CLASS
00027 #define YY_USE_CLASS
00028 #endif
00029 #else
00030 #ifdef __STDC__
00031 #ifdef __GNUC__
00032 #else
00033 #endif
00034 #ifndef YY_USE_PROTOS
00035 #define YY_USE_PROTOS
00036 #endif
00037 #endif
00038 #endif
00039
00040
00041
00042
00043 #ifndef YY_PROTO
00044 #ifdef YY_USE_PROTOS
00045 #define YY_PROTO(proto) proto
00046 #else
00047 #define YY_PROTO(proto) ()
00048 #endif
00049 #endif
00050 #include <stdio.h>
00051
00052
00053
00054
00055
00056 #line 29 "sslscanner.l"
00057 #include "sslparser.h"
00058 #define MAX_LINE 1024 // the longest SSL spec line
00059 #line 43 "sslscanner.l"
00060 #define YY_SSLScanner_CONSTRUCTOR_PARAM std::istream &ins, bool trace
00061 #line 44 "sslscanner.l"
00062 #define YY_SSLScanner_CONSTRUCTOR_INIT : theLine(1), traceLines(trace), in(ins)
00063 #line 45 "sslscanner.l"
00064 #define YY_SSLScanner_CONSTRUCTOR_CODE
00065 #line 46 "sslscanner.l"
00066 #define YY_SSLScanner_INPUT_CODE if (in.eof()) { \
00067 result = 0; \
00068 } else { \
00069 in.read(buffer, max_size); \
00070 result=in.gcount(); \
00071 } \
00072 return result;
00073 #line 53 "sslscanner.l"
00074 #define YY_SSLScanner_MEMBERS \
00075 public: \
00076 int theLine; \
00077 char lineBuf[MAX_LINE]; \
00078 bool traceLines; \
00079 std::istream ∈
00080 #line 60 "sslscanner.l"
00081 #define YY_SSLScanner_LEX_PARAM YY_SSLParser_STYPE &yylval
00082 #line 62 "sslscanner.l"
00083 #line 52 "//usr/local/lib/flexskel.h"
00084
00085 #ifdef YY_USE_CLASS
00086 #ifdef YY_SSLScanner_IOSTREAM
00087 #include <iostream.h>
00088 #define YY_SSLScanner_IFILE istream
00089 #define YY_SSLScanner_OFILE ostream
00090 #define YY_SSLScanner_ERRFILE cerr
00091
00092 #ifndef YY_SSLScanner_IFILE_DEFAULT
00093 #define YY_SSLScanner_IFILE_DEFAULT &cin
00094 #endif
00095
00096 #ifndef YY_SSLScanner_OFILE_DEFAULT
00097 #define YY_SSLScanner_OFILE_DEFAULT &cout
00098 #endif
00099
00100 #endif
00101 #endif
00102
00103 #ifndef YY_SSLScanner_IFILE
00104 #define YY_SSLScanner_IFILE FILE
00105 #endif
00106
00107 #ifndef YY_SSLScanner_OFILE
00108 #define YY_SSLScanner_OFILE FILE
00109 #endif
00110
00111 #ifndef YY_SSLScanner_ERRFILE
00112 #define YY_SSLScanner_ERRFILE stderr
00113 #endif
00114
00115 #ifndef YY_SSLScanner_IFILE_DEFAULT
00116 #define YY_SSLScanner_IFILE_DEFAULT stdin
00117 #endif
00118
00119 #ifndef YY_SSLScanner_OFILE_DEFAULT
00120 #define YY_SSLScanner_OFILE_DEFAULT stdout
00121 #endif
00122
00123
00124
00125
00126 #ifndef YY_SSLScanner_TEXT
00127 #define YY_SSLScanner_TEXT yytext
00128 #endif
00129 #ifndef YY_SSLScanner_LENG
00130 #define YY_SSLScanner_LENG yyleng
00131 #endif
00132 #ifndef YY_SSLScanner_IN
00133 #define YY_SSLScanner_IN yyin
00134 #endif
00135 #ifndef YY_SSLScanner_OUT
00136 #define YY_SSLScanner_OUT yyout
00137 #endif
00138
00139 #ifndef YY_SSLScanner_LEX_RETURN
00140 #define YY_SSLScanner_LEX_RETURN int
00141 #else
00142 #ifndef YY_SSLScanner_LEX_DEFINED
00143 #define YY_SSLScanner_LEX_DEFINED
00144 #endif
00145 #endif
00146
00147 #ifndef YY_SSLScanner_LEX
00148 #define YY_SSLScanner_LEX yylex
00149 #else
00150 #ifndef YY_SSLScanner_LEX_DEFINED
00151 #define YY_SSLScanner_LEX_DEFINED
00152 #endif
00153 #endif
00154
00155 #ifndef YY_SSLScanner_LEX_PARAM
00156 #ifndef YY_USE_PROTOS
00157 #define YY_SSLScanner_LEX_PARAM
00158 #else
00159 #define YY_SSLScanner_LEX_PARAM void
00160 #endif
00161 #else
00162 #ifndef YY_SSLScanner_LEX_DEFINED
00163 #define YY_SSLScanner_LEX_DEFINED
00164 #endif
00165 #endif
00166
00167 #ifndef YY_SSLScanner_LEX_PARAM_DEF
00168 #define YY_SSLScanner_LEX_PARAM_DEF
00169 #else
00170 #ifndef YY_SSLScanner_LEX_DEFINED
00171 #define YY_SSLScanner_LEX_DEFINED
00172 #endif
00173 #endif
00174
00175 #ifndef YY_SSLScanner_RESTART
00176 #define YY_SSLScanner_RESTART yyrestart
00177 #endif
00178 #ifndef YY_SSLScanner_SWITCH_TO_BUFFER
00179 #define YY_SSLScanner_SWITCH_TO_BUFFER yy_switch_to_buffer
00180 #endif
00181 #ifndef YY_SSLScanner_LOAD_BUFFER_STATE
00182 #define YY_SSLScanner_LOAD_BUFFER_STATE yy_load_buffer_state
00183 #endif
00184
00185 #ifndef YY_SSLScanner_CREATE_BUFFER
00186 #define YY_SSLScanner_CREATE_BUFFER yy_create_buffer
00187 #ifndef YY_USE_CLASS
00188 #ifndef yy_new_buffer
00189 #define yy_new_buffer yy_create_buffer
00190 #endif
00191 #endif
00192 #endif
00193 #ifndef YY_SSLScanner_DELETE_BUFFER
00194 #define YY_SSLScanner_DELETE_BUFFER yy_delete_buffer
00195 #endif
00196 #ifndef YY_SSLScanner_INIT_BUFFER
00197 #define YY_SSLScanner_INIT_BUFFER yy_init_buffer
00198 #endif
00199
00200
00201
00202 #ifdef YY_SSLScanner_FLEX_DEBUG
00203 #ifndef YY_SSLScanner_DEBUG
00204 #define YY_SSLScanner_DEBUG 1
00205 #endif
00206 #else
00207 #ifndef YY_SSLScanner_DEBUG
00208 #define YY_SSLScanner_DEBUG 0
00209 #endif
00210 #endif
00211
00212 #if YY_SSLScanner_DEBUG != 0
00213 #ifndef YY_SSLScanner_DEBUG_FLAG
00214 #define YY_SSLScanner_DEBUG_FLAG yy_flex_debug
00215 #endif
00216 #ifndef YY_SSLScanner_DEBUG_INIT
00217 #define YY_SSLScanner_DEBUG_INIT 1
00218 #endif
00219 #endif
00220
00221
00222
00223
00224 #ifndef YY_USE_CLASS
00225 #ifndef YY_SSLScanner_CURRENT_BUFFER
00226 #define YY_SSLScanner_CURRENT_BUFFER yy_current_buffer
00227 #endif
00228 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00229
00230 extern void YY_SSLScanner_RESTART YY_PROTO(( YY_SSLScanner_IFILE *input_file ));
00231 extern void YY_SSLScanner_SWITCH_TO_BUFFER YY_PROTO(( YY_BUFFER_STATE new_buffer ));
00232 extern void YY_SSLScanner_LOAD_BUFFER_STATE YY_PROTO(( void ));
00233 extern YY_BUFFER_STATE YY_SSLScanner_CREATE_BUFFER YY_PROTO(( YY_SSLScanner_IFILE *file, int size ));
00234 extern void YY_SSLScanner_DELETE_BUFFER YY_PROTO(( YY_BUFFER_STATE b ));
00235 extern void YY_SSLScanner_INIT_BUFFER YY_PROTO(( YY_BUFFER_STATE b, YY_SSLScanner_IFILE *file ));
00236
00237 #if YY_SSLScanner_DEBUG != 0
00238 extern int YY_SSLScanner_DEBUG_FLAG ;
00239 #endif
00240 extern YY_SSLScanner_CHAR *YY_SSLScanner_TEXT;
00241 extern int YY_SSLScanner_LENG;
00242 extern YY_SSLScanner_IFILE *YY_SSLScanner_IN;
00243 extern YY_SSLScanner_OFILE *YY_SSLScanner_OUT;
00244 #ifdef YY_SSLScanner_LEX_DEFINED
00245 extern YY_SSLScanner_LEX_RETURN YY_SSLScanner_LEX ( YY_SSLScanner_LEX_PARAM )
00246 YY_SSLScanner_LEX_PARAM_DEF
00247 #else
00248 #ifndef YY_DECL
00249 extern YY_SSLScanner_LEX_RETURN YY_SSLScanner_LEX ( YY_SSLScanner_LEX_PARAM )
00250 YY_SSLScanner_LEX_PARAM_DEF
00251 #else
00252
00253 #endif
00254 #endif
00255 #else
00256
00257 #ifndef YY_SSLScanner_CURRENT_BUFFER
00258 #define YY_SSLScanner_CURRENT_BUFFER YY_CURRENT_BUFFER
00259 #endif
00260 #ifndef YY_SSLScanner_CLASS
00261 #define YY_SSLScanner_CLASS SSLScanner
00262 #endif
00263 #ifndef YY_SSLScanner_ECHO
00264 #define YY_SSLScanner_ECHO yy_echo
00265 #endif
00266 #ifdef YY_SSLScanner_ECHO_PURE
00267 #define YY_SSLScanner_ECHO_NOCODE
00268 #endif
00269
00270 #ifndef YY_SSLScanner_ECHO_CODE
00271 #ifndef YY_SSLScanner_IOSTREAM
00272 #define YY_SSLScanner_ECHO_CODE fwrite( (char *) YY_SSLScanner_TEXT, YY_SSLScanner_LENG, 1, YY_SSLScanner_OUT );
00273 #else
00274 #define YY_SSLScanner_ECHO_CODE (YY_SSLScanner_OUT->write( (char *) YY_SSLScanner_TEXT, YY_SSLScanner_LENG));
00275 #endif
00276 #endif
00277
00278 #ifndef YY_SSLScanner_INPUT
00279 #define YY_SSLScanner_INPUT yy_input
00280 #endif
00281 #ifdef YY_SSLScanner_INPUT_PURE
00282 #define YY_SSLScanner_INPUT_NOCODE
00283 #endif
00284
00285 #ifndef YY_SSLScanner_INPUT_CODE
00286 #ifndef YY_SSLScanner_IOSTREAM
00287 #define YY_SSLScanner_INPUT_CODE return result= fread( buffer, 1,max_size,YY_SSLScanner_IN );
00288 #else
00289 #define YY_SSLScanner_INPUT_CODE if(YY_SSLScanner_IN->eof()) result=0;else {YY_SSLScanner_IN->read(buffer,max_size);result=YY_SSLScanner_IN->gcount();YY_SSLScanner_IN->clear(YY_SSLScanner_IN->rdstate()&(~ios::failbit));if(YY_SSLScanner_IN->bad()) result= -1;} return result;
00290 #endif
00291 #endif
00292
00293 #ifdef YY_SSLScanner_FATAL_ERROR_PURE
00294 #define YY_SSLScanner_FATAL_ERRO_NOCODE
00295 #endif
00296 #ifndef YY_SSLScanner_FATAL_ERROR
00297 #define YY_SSLScanner_FATAL_ERROR yy_fatal_error
00298 #endif
00299
00300 #ifndef YY_SSLScanner_FATAL_ERROR_CODE
00301 #ifndef YY_SSLScanner_IOSTREAM
00302 #define YY_SSLScanner_FATAL_ERROR_CODE fputs( msg, YY_SSLScanner_ERRFILE );putc( '\n', YY_SSLScanner_ERRFILE );exit( 1 );
00303 #else
00304 #define YY_SSLScanner_FATAL_ERROR_CODE YY_SSLScanner_ERRFILE<< msg <<endl;exit( 1 );
00305 #endif
00306 #endif
00307
00308 #ifndef YY_SSLScanner_WRAP
00309 #define YY_SSLScanner_WRAP yy_wrap
00310 #endif
00311 #ifdef YY_SSLScanner_WRAP_PURE
00312 #define YY_SSLScanner_WRAP_NOCODE
00313 #endif
00314 #ifndef YY_SSLScanner_WRAP_CODE
00315 #define YY_SSLScanner_WRAP_CODE return 1;
00316 #endif
00317
00318
00319 #ifndef YY_SSLScanner_INHERIT
00320 #define YY_SSLScanner_INHERIT
00321 #endif
00322 #ifndef YY_SSLScanner_MEMBERS
00323 #define YY_SSLScanner_MEMBERS
00324 #endif
00325 #ifndef YY_SSLScanner_CONSTRUCTOR_PARAM
00326 #define YY_SSLScanner_CONSTRUCTOR_PARAM
00327 #endif
00328 #ifndef YY_SSLScanner_CONSTRUCTOR_CODE
00329 #define YY_SSLScanner_CONSTRUCTOR_CODE
00330 #endif
00331 #ifndef YY_SSLScanner_CONSTRUCTOR_INIT
00332 #define YY_SSLScanner_CONSTRUCTOR_INIT
00333 #endif
00334 #ifndef YY_SSLScanner_DESTRUCTOR_CODE
00335 #define YY_SSLScanner_DESTRUCTOR_CODE
00336 #endif
00337 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00338
00339 class YY_SSLScanner_CLASS YY_SSLScanner_INHERIT
00340 {
00341 private:
00342 YY_SSLScanner_CHAR *yy_c_buf_p;
00343 YY_SSLScanner_CHAR yy_hold_char;
00344 int yy_n_chars;
00345 int yy_init;
00346 int yy_start;
00347 int yy_did_buffer_switch_on_eof;
00348 private:
00349 void yy_initialize();
00350 int input();
00351 int yyinput() {return input();};
00352 int yy_get_next_buffer();
00353 void yyunput( YY_SSLScanner_CHAR c, YY_SSLScanner_CHAR *buf_ptr );
00354
00355 long yy_get_previous_state_ ( void );
00356 long yy_try_NUL_trans_ ( long current_state_ );
00357 protected:
00358 YY_BUFFER_STATE YY_SSLScanner_CURRENT_BUFFER;
00359 void YY_SSLScanner_RESTART ( YY_SSLScanner_IFILE *input_file );
00360 void YY_SSLScanner_SWITCH_TO_BUFFER( YY_BUFFER_STATE new_buffer );
00361 void YY_SSLScanner_LOAD_BUFFER_STATE( void );
00362 YY_BUFFER_STATE YY_SSLScanner_CREATE_BUFFER( YY_SSLScanner_IFILE *file, int size );
00363 void YY_SSLScanner_DELETE_BUFFER( YY_BUFFER_STATE b );
00364 void YY_SSLScanner_INIT_BUFFER( YY_BUFFER_STATE b, YY_SSLScanner_IFILE *file );
00365 protected:
00366 virtual void YY_SSLScanner_ECHO()
00367 #ifdef YY_SSLScanner_ECHO_PURE
00368 =0
00369 #endif
00370 ;
00371 virtual int YY_SSLScanner_INPUT(char *buf,int &result,int max_size)
00372 #ifdef YY_SSLScanner_INPUT_PURE
00373 =0
00374 #endif
00375 ;
00376 virtual void YY_SSLScanner_FATAL_ERROR(char *msg)
00377 #ifdef YY_SSLScanner_FATAL_ERROR_PURE
00378 =0
00379 #endif
00380 ;
00381 virtual int YY_SSLScanner_WRAP()
00382 #ifdef YY_SSLScanner_WRAP_PURE
00383 =0
00384 #endif
00385 ;
00386 public:
00387 YY_SSLScanner_CHAR *YY_SSLScanner_TEXT;
00388 int YY_SSLScanner_LENG;
00389 YY_SSLScanner_IFILE *YY_SSLScanner_IN;
00390 YY_SSLScanner_OFILE *YY_SSLScanner_OUT;
00391 YY_SSLScanner_LEX_RETURN YY_SSLScanner_LEX ( YY_SSLScanner_LEX_PARAM);
00392 YY_SSLScanner_CLASS(YY_SSLScanner_CONSTRUCTOR_PARAM) ;
00393 virtual ~YY_SSLScanner_CLASS() ;
00394 #if YY_SSLScanner_DEBUG != 0
00395 int YY_SSLScanner_DEBUG_FLAG;
00396 #endif
00397 public:
00398 YY_SSLScanner_MEMBERS
00399 };
00400 #endif
00401
00402
00403
00404
00405
00406
00407 #line 327 "sslscanner.l"
00408 #endif
00409 #line 375 "//usr/local/lib/flexskel.h"
00410
00411