fred-mod-eppd-2.20.1
epp_gen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 CZ.NIC, z. s. p. o.
3  *
4  * This file is part of FRED.
5  *
6  * FRED is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * FRED is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with FRED. If not, see <https://www.gnu.org/licenses/>.
18  */
24 #ifndef EPP_GEN_H
25 #define EPP_GEN_H
26 
27 #include "epp_common.h"
28 
32 #define XSI "http://www.w3.org/2001/XMLSchema-instance"
33 
37 typedef enum {
42  /*
43  * following errors may appear only if response validation is turned on
44  */
49 } gen_status;
50 
62  void *pool,
63  const char *svid,
64  const char *date,
65  const eppd_server_xml_conf *xml_schema,
66  char **greeting);
67 
84  epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata,
85  char **response, qhead *valerr);
86 
93 #define epp_gen_dummy_response(p_epp_ctx, p_cdata, pp_response) \
94  epp_gen_response(p_epp_ctx, 0, NULL, LANG_EN, p_cdata, pp_response, NULL)
95 
96 #endif /* EPP_GEN_H */
97 
98 /* vim: set ts=4 sw=4: */
Something what is not xml was generated.
Definition: epp_gen.h:45
Could not create xml buffer.
Definition: epp_gen.h:39
This structure is central to the concept of the whole module.
Definition: epp_common.h:909
No error appeared, everything was allright.
Definition: epp_gen.h:38
gen_status epp_gen_greeting(void *pool, const char *svid, const char *date, const eppd_server_xml_conf *xml_schema, char **greeting)
Routine makes up epp greeting frame.
Definition: epp_gen.c:112
Configuration of entities enabled in xml schemas.
Definition: epp_common.h:408
Error when building xml document.
Definition: epp_gen.h:41
EPP context is a group of variables used often together.
Definition: epp_common.h:45
gen_status
XML generator status values.
Definition: epp_gen.h:37
Malloc failure during response validation.
Definition: epp_gen.h:46
epp_lang
definition of languages (english is default)
Definition: epp_common.h:145
Error when parsing xml schema used for validation.
Definition: epp_gen.h:47
gen_status epp_gen_response(epp_context *epp_ctx, int validate, void *schema, epp_lang lang, epp_command_data *cdata, char **response, qhead *valerr)
Generate command response in XML format.
Definition: epp_gen.c:1001
Could not create xml writer.
Definition: epp_gen.h:40
Queue structure used on countless places throughout the program.
Definition: epp_common.h:309
Response does not validate.
Definition: epp_gen.h:48
The most important structures, function definitions and routine declarations are found in this file...