1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * _ __ ___ ___ __| | ___ ___| | mod_ssl
19 * | '_ ` _ \ / _ \ / _` | / __/ __| | Apache Interface to OpenSSL
20 * | | | | | | (_) | (_| | \__ \__ \ |
21 * |_| |_| |_|\___/ \__,_|___|___/___/_|
24 * Expression Handling (Header)
26 /* ``May all your PUSHes be POPed.'' */
28 #ifndef __SSL_EXPR_H__
29 #define __SSL_EXPR_H__
44 #define MIN(a,b) (((a)<(b))?(a):(b))
48 #define BOOL unsigned int
52 #define NULL (void *)0
64 op_NOP, op_ListElement,
65 op_True, op_False, op_Not, op_Or, op_And, op_Comp,
66 op_EQ, op_NE, op_LT, op_LE, op_GT, op_GE, op_IN, op_REG, op_NRE,
67 op_Digit, op_String, op_Regex, op_Var, op_Func
71 ssl_expr_node_op node_op;
77 typedef ssl_expr_node ssl_expr;
87 extern ssl_expr_info_type ssl_expr_info;
88 extern char *ssl_expr_error;
90 #define yylval ssl_expr_yylval
91 #define yyerror ssl_expr_yyerror
92 #define yyinput ssl_expr_yyinput
94 extern int ssl_expr_yyparse(void);
95 extern int ssl_expr_yyerror(char *);
96 extern int ssl_expr_yylex(void);
98 extern ssl_expr *ssl_expr_comp(apr_pool_t *, char *);
99 extern int ssl_expr_exec(request_rec *, ssl_expr *);
100 extern char *ssl_expr_get_error(void);
101 extern ssl_expr *ssl_expr_make(ssl_expr_node_op, void *, void *);
102 extern BOOL ssl_expr_eval(request_rec *, ssl_expr *);
104 #endif /* __SSL_EXPR_H__ */