ssl_expr.c revision ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc
/* Copyright 2000-2004 Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* _ _
* _ __ ___ ___ __| | ___ ___| | mod_ssl
* | '_ ` _ \ / _ \ / _` | / __/ __| | Apache Interface to OpenSSL
* | | | | | | (_) | (_| | \__ \__ \ |
* |_| |_| |_|\___/ \__,_|___|___/___/_|
* |_____|
* Expression Handling
*/
/* ``It is hard to fly with
the eagles when you work
with the turkeys.''
-- Unknown */
#include "mod_ssl.h"
/* _________________________________________________________________
**
** Expression Handling
** _________________________________________________________________
*/
char *ssl_expr_error;
{
ssl_expr_info.pool = p;
if (ssl_expr_yyparse())
return NULL;
return ssl_expr_info.expr;
}
char *ssl_expr_get_error(void)
{
if (ssl_expr_error == NULL)
return "";
return ssl_expr_error;
}
{
return node;
}
{
if (ssl_expr_error != NULL)
return (-1);
else
return (rc ? 1 : 0);
}