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.
20
_ __ ___ ___ __| | ___ ___| | mod_ssl
21
| '_ ` _ \ / _ \ / _` | / __/ __| | Apache Interface to OpenSSL
22
| | | | | | (_) | (_| | \__ \__ \ |
23
|_| |_| |_|\___/ \__,_|___|___/___/_|
27
* @brief Expression Handling (Header).
28
* ``May all your PUSHes be POPed.''
30
* @defgroup MOD_SSL_EXPR Expression Handling
35
#ifndef __SSL_EXPR_H__
36
#define __SSL_EXPR_H__
51
#define MIN(a,b) (((a)<(b))?(a):(b))
55
#define BOOL unsigned int
59
#define NULL (void *)0
71
op_NOP, op_ListElement, op_OidListElement,
72
op_True, op_False, op_Not, op_Or, op_And, op_Comp,
73
op_EQ, op_NE, op_LT, op_LE, op_GT, op_GE, op_IN, op_REG, op_NRE,
74
op_Digit, op_String, op_Regex, op_Var, op_Func
78
ssl_expr_node_op node_op;
84
typedef ssl_expr_node ssl_expr;
94
extern ssl_expr_info_type ssl_expr_info;
95
extern char *ssl_expr_error;
97
#define yylval ssl_expr_yylval
98
#define yyerror ssl_expr_yyerror
99
#define yyinput ssl_expr_yyinput
101
extern int ssl_expr_yyparse(void);
102
extern int ssl_expr_yyerror(char *);
103
extern int ssl_expr_yylex(void);
105
extern ssl_expr *ssl_expr_comp(apr_pool_t *, char *);
106
extern int ssl_expr_exec(request_rec *, ssl_expr *);
107
extern char *ssl_expr_get_error(void);
108
extern ssl_expr *ssl_expr_make(ssl_expr_node_op, void *, void *);
109
extern BOOL ssl_expr_eval(request_rec *, ssl_expr *);
111
#endif /* __SSL_EXPR_H__ */