fred-mod-eppd
/build/mod-eppd-2.29.0/epp-client.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_CLIENT_H
25#define EPP_CLIENT_H
26
27#include "EPP.h"
28#include "epp_common.h"
29
34#define MAX_RETRIES 3
36#define RETR_SLEEP 100000
37
39#define raised_exception(ev) ((ev)->_major != CORBA_NO_EXCEPTION)
40
41
43#define DB_FIELD_SIZE 2000
44
46#define IS_NOT_COMM_FAILURE_EXCEPTION(_ev) \
47 (strcmp((_ev)->_id, "IDL:omg.org/CORBA/COMM_FAILURE:1.0"))
49#define IS_EPP_ERROR(_ev) (!strcmp((_ev)->_id, "IDL:ccReg/EPP/EppError:1.0"))
51#define IS_NO_MESSAGES(_ev) (!strcmp((_ev)->_id, "IDL:ccReg/EPP/NoMessages:1.0"))
52
54typedef enum {
62
64typedef void *service_EPP;
66typedef void *service_Logger;
67
78char *wrap_str(const char *str);
79
91int epp_call_hello(epp_context *epp_ctx, service_EPP service, char **version, char **curdate);
92
108 epp_context *epp_ctx, service_EPP service, unsigned long long *loginid,
109 const ccReg_TID request_id, epp_lang *lang, const char *fingerprint,
110 epp_command_data *cdata);
111
123 epp_context *epp_ctx, service_EPP service, unsigned long long *loginid,
124 const ccReg_TID request_id, epp_command_data *cdata);
125
142 epp_context *epp_ctx, service_EPP service, unsigned long long loginid,
143 const ccReg_TID request_id,
144 epp_command_data *cdata);
145
159 epp_context *epp_ctx, service_EPP service, epp_command_data *cdata, const char *xml);
160
168void epp_call_CloseSession(epp_context *epp_ctx, service_EPP service, unsigned long long loginid);
169
170
171#define MAX_ERROR_MSG_LEN 100
172
173#endif /* EPP_CLIENT_H */
corba_status epp_call_logout(epp_context *epp_ctx, service_EPP service, unsigned long long *loginid, const ccReg_TID request_id, epp_command_data *cdata)
Definition: epp-client.c:742
corba_status
Definition: epp-client.h:54
@ CORBA_INT_ERROR
Definition: epp-client.h:58
@ CORBA_ERROR
Definition: epp-client.h:57
@ CORBA_OK
Definition: epp-client.h:55
@ CORBA_REMOTE_ERROR
Definition: epp-client.h:60
void epp_call_save_output_xml(epp_context *epp_ctx, service_EPP service, epp_command_data *cdata, const char *xml)
int epp_call_hello(epp_context *epp_ctx, service_EPP service, char **version, char **curdate)
Definition: epp-client.c:257
void * service_Logger
Definition: epp-client.h:66
corba_status epp_call_login(epp_context *epp_ctx, service_EPP service, unsigned long long *loginid, const ccReg_TID request_id, epp_lang *lang, const char *fingerprint, epp_command_data *cdata)
Definition: epp-client.c:647
void * service_EPP
Definition: epp-client.h:64
char * wrap_str(const char *str)
Definition: epp-client.c:137
corba_status epp_call_cmd(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
Definition: epp-client.c:5086
void epp_call_CloseSession(epp_context *epp_ctx, service_EPP service, unsigned long long loginid)
Definition: epp-client.c:5294
epp_lang
Definition: epp_common.h:151
Definition: epp_common.h:932
Definition: epp_common.h:46