fred-mod-eppd-2.20.2
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
35 
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"))
48 
49 #define IS_EPP_ERROR(_ev) (!strcmp((_ev)->_id, "IDL:ccReg/EPP/EppError:1.0"))
50 
51 #define IS_NO_MESSAGES(_ev) (!strcmp((_ev)->_id, "IDL:ccReg/EPP/NoMessages:1.0"))
52 
54 typedef enum {
61 } corba_status;
62 
64 typedef void *service_EPP;
66 typedef void *service_Logger;
67 
78 char *wrap_str(const char *str);
79 
91 int 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 
168 void 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 */
epps_create_contact::discl
epp_discl discl
Disclose information section.
Definition: epp_common.h:738
epp_mailingAddr
Definition: epp_common.h:469
epps_poll_req
Poll request parameters.
Definition: epp_common.h:650
epp_call_hello
int epp_call_hello(epp_context *epp_ctx, service_EPP service, char **version, char **curdate)
Purpose of this function is to get version string of ccReg from corba server, which is used as part o...
Definition: epp-client.c:257
epp_call_creditinfo
static corba_status epp_call_creditinfo(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
Retrieve information about available credit of registrar.
Definition: epp-client.c:4697
pt_delete_keyset
@ pt_delete_keyset
KeySet was deleted because not used.
Definition: epp_common.h:517
pt_impvalidation
@ pt_impvalidation
Domain validation will expire soon.
Definition: epp_common.h:522
epps_info_domain::handle
char * handle
FQDN of wanted domain (output).
Definition: epp_common.h:593
pt_transfer_contact
@ pt_transfer_contact
Contact was transferred.
Definition: epp_common.h:512
epp_ns::name
char * name
fqdn of nameserver.
Definition: epp_common.h:422
epps_transfer::id
char * id
Id of transfered object.
Definition: epp_common.h:859
epilog_success
static corba_status epilog_success(epp_context *epp_ctx, epp_command_data *cdata, ccReg_Response *response)
This is common routine for all corba function calls (except hello call) executed at the end of comman...
Definition: epp-client.c:357
error_translator
static int error_translator[][2]
Error code translation table.
Definition: epp-client.c:54
pt_update_domain
@ pt_update_domain
Domain changed.
Definition: epp_common.h:529
epps_create_domain::period
int period
Registration period in months.
Definition: epp_common.h:755
epps_info_domain::upID
char * upID
ID of last updater.
Definition: epp_common.h:605
epp_ext_item
Definition: epp_common.h:500
epps_info_contact::trDate
char * trDate
Last transfered.
Definition: epp_common.h:579
epps_info_keyset::roid
char * roid
ROID of object.
Definition: epp_common.h:636
epps_create_keyset::id
char * id
Id of wanted keyset (input).
Definition: epp_common.h:777
epps_list
Parameters of obsolete command 'list' and getResults command.
Definition: epp_common.h:884
info_keyset_data_copy
int info_keyset_data_copy(epp_context *epp_ctx, epps_info_keyset *info_keyset, ccReg_KeySet *c_keyset, CORBA_Environment *ev)
Helper function for copy keyset data from corba to internal structure.
Definition: epp-client.c:1718
epps_renew::exDate
char * exDate
New expiration date.
Definition: epp_common.h:798
epps_info_domain::crID
char * crID
ID of creator.
Definition: epp_common.h:602
epp_call_test_nsset
static corba_status epp_call_test_nsset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
Issue technical test on nsset.
Definition: epp-client.c:4786
epps_update_domain::extensions
qhead extensions
List of domain extensions.
Definition: epp_common.h:830
epps_info_domain::tmpcontact
qhead tmpcontact
Temporary contact used for migration.
Definition: epp_common.h:597
epp_call_info_keyset
static corba_status epp_call_info_keyset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP info keyset.
Definition: epp-client.c:1826
epp_postalInfo::sp
char * sp
State or province.
Definition: epp_common.h:364
epps_poll_req::qdate
char * qdate
Date of message submission.
Definition: epp_common.h:654
epps_info_keyset::keys
qhead keys
List of DNS Key records.
Definition: epp_common.h:645
epps_info_domain::name
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:592
epps_update_contact::notify_email
char * notify_email
Notification email.
Definition: epp_common.h:815
epps_update_domain::rem_admin
qhead rem_admin
Admin contacts to be removed.
Definition: epp_common.h:825
epps_info_contact::id
char * id
Id of wanted contact (input).
Definition: epp_common.h:566
epps_create_domain::admin
qhead admin
Admin contact for domain.
Definition: epp_common.h:752
epps_check::ids
qhead ids
IDs of checked objects.
Definition: epp_common.h:559
ident_ICO
@ ident_ICO
ICO.
Definition: epp_common.h:442
epps_create_domain::crDate
char * crDate
Creation date of domain.
Definition: epp_common.h:759
epps_info_contact::roid
char * roid
ROID of object.
Definition: epp_common.h:568
epp_command_data::noresdata
short noresdata
True if there should be no resdata section or msgQ section.
Definition: epp_common.h:921
pt_validation
@ pt_validation
Domain validation expired.
Definition: epp_common.h:523
epp_postalInfo::name
char * name
Name.
Definition: epp_common.h:360
epps_transfer::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:860
IS_NO_MESSAGES
#define IS_NO_MESSAGES(_ev)
True if exception is NO_MESSAGES.
Definition: epp-client.h:51
epps_poll_req::msg
union epps_poll_req::@2 msg
Message data.
epps_renew
Renew domain parameters.
Definition: epp_common.h:791
epps_update_contact::voice
char * voice
Telephone number.
Definition: epp_common.h:806
MAX_RETRIES
#define MAX_RETRIES
Maximum number of retries when connection failure occurs before the failure is announced to a caller.
Definition: epp-client.h:34
epp_call_CloseSession
void epp_call_CloseSession(epp_context *epp_ctx, service_EPP service, unsigned long long loginid)
Let the CR know that client has closed tcp session.
Definition: epp-client.c:5244
epp_command_data::errors
qhead errors
List of validation errors or errors from central repository.
Definition: epp_common.h:923
epps_renew::extensions
qhead extensions
List of domain extensions.
Definition: epp_common.h:797
epps_info_contact
Info contact parameters.
Definition: epp_common.h:564
epps_sendAuthInfo::id
char * id
Handle of object.
Definition: epp_common.h:866
epps_create_contact::vat
char * vat
VAT tax ID.
Definition: epp_common.h:739
epp_call_poll_req
static corba_status epp_call_poll_req(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, ccReg_TID request_id, epp_command_data *cdata)
EPP poll request.
Definition: epp-client.c:1900
epps_info_keyset::status
qhead status
Keyset's status.
Definition: epp_common.h:637
err_idl2epp
static int err_idl2epp(int idlcode)
Translate error code from IDL code to mod_eppd's code.
Definition: epp-client.c:100
epps_update_contact::vat
char * vat
VAT tax ID.
Definition: epp_common.h:812
epps_update_contact::email
char * email
Email address.
Definition: epp_common.h:808
epps_info_domain::admin
qhead admin
Admin contact for domain.
Definition: epp_common.h:598
epp_command_data::msg
char * msg
Text message coresponding to return code.
Definition: epp_common.h:914
qhead::count
int count
Optimization for length() function.
Definition: epp_common.h:311
epps_poll_req::rfi
struct epps_poll_req::@2::@7 rfi
Request fee info structure.
epp_ext_item::ext_mailing_addr
epp_ext_mailingAddr ext_mailing_addr
Extensions for mailing contact addresses.
Definition: epp_common.h:506
epps_create_nsset
Create nsset parameters.
Definition: epp_common.h:764
epps_info::count
unsigned int count
Count of results.
Definition: epp_common.h:897
epp_call_renew_domain
static corba_status epp_call_renew_domain(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP renew domain.
Definition: epp-client.c:3402
pt_delete_nsset
@ pt_delete_nsset
Nsset was deleted because not used.
Definition: epp_common.h:515
epps_update_nsset::rem_tech
qhead rem_tech
Technical contacts to be removed.
Definition: epp_common.h:838
epp_call_info_domain
static corba_status epp_call_info_domain(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP info domain.
Definition: epp-client.c:1456
epps_list::handles
qhead handles
List of handles.
Definition: epp_common.h:886
q_foreach
#define q_foreach(_qhead)
Iterate through items in a list.
Definition: epp_common.h:328
epps_info_keyset::trDate
char * trDate
Last transfered.
Definition: epp_common.h:643
epps_update_domain::rem_tmpcontact
qhead rem_tmpcontact
Temporary contact used for migration.
Definition: epp_common.h:826
epps_login::lang
unsigned lang
Language.
Definition: epp_common.h:553
epps_poll_req::upn
struct epps_poll_req::@2::@10 upn
Update nsset info.
epp_ns
Nameserver has a name and possibly more than one ip address.
Definition: epp_common.h:420
epps_update_nsset
Update nsset parameters.
Definition: epp_common.h:834
epps_login::newPW
char * newPW
New password.
Definition: epp_common.h:550
qhead::cur
qitem * cur
Currently selected item.
Definition: epp_common.h:313
wrap_str_upd
static char * wrap_str_upd(const char *str)
Function works the same way as wrap_str(), but empty strings are substituted by IDL-defined string wi...
Definition: epp-client.c:155
epp_call_delete
static corba_status epp_call_delete(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, epp_object_type obj)
EPP delete for domain, nsset and contact is so similar that it is worth of having the code in one fun...
Definition: epp-client.c:3331
epp_error::reason
char * reason
Human readable reason of error.
Definition: epp_common.h:221
info_contact_data_copy
static int info_contact_data_copy(epp_context *epp_ctx, epps_info_contact *info_contact, const ccReg_Contact *c_contact, CORBA_Environment *ev)
Helper function for copy contact data from corba to internal structure.
Definition: epp-client.c:953
epp_call_login
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)
Call corba login function, which sets up a session variables.
Definition: epp-client.c:620
epps_update_domain::keyset
char * keyset
Keyset of domain.
Definition: epp_common.h:828
epp_strdup
char * epp_strdup(void *pool, const char *str)
Duplicate string from argument, the memory will be allocated from memory pool.
Definition: mod_eppd.c:404
epps_create_domain::registrant
char * registrant
Registrant of domain.
Definition: epp_common.h:751
epps_create_nsset::crDate
char * crDate
Creation date of nsset.
Definition: epp_common.h:770
epps_update_contact::discl
epp_discl discl
Disclose information section.
Definition: epp_common.h:811
epps_poll_ack::msgid
char * msgid
ID of acknoledged message.
Definition: epp_common.h:724
epps_create_contact
Create contact parameters.
Definition: epp_common.h:730
epps_info_nsset::ns
qhead ns
List of nameservers.
Definition: epp_common.h:626
epps_renew::curExDate
char * curExDate
Current expiration date.
Definition: epp_common.h:794
unwrap_str
static char * unwrap_str(void *pool, const char *str, int *cerrno)
Function unwraps strings passed through CORBA - empty strings are transformed to NULL strings.
Definition: epp-client.c:176
epps_info_domain::clID
char * clID
Owner's ID.
Definition: epp_common.h:601
epps_update_contact::discl_update
unsigned char discl_update
Use disclose information section.
Definition: epp_common.h:810
epp_error::position
int position
Position of faulty element if it is part of list.
Definition: epp_common.h:223
epps_info_nsset::level
int level
Report level.
Definition: epp_common.h:628
epp_call_create_nsset
static corba_status epp_call_create_nsset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP create nsset.
Definition: epp-client.c:2949
epps_login::clID
char * clID
Client ID.
Definition: epp_common.h:548
epp_mailingAddr::City
char * City
city
Definition: epp_common.h:474
ident_BIRTHDAY
@ ident_BIRTHDAY
Date of birth.
Definition: epp_common.h:443
epps_create_contact::voice
char * voice
Telephone number.
Definition: epp_common.h:734
EPP_DEBUG
@ EPP_DEBUG
Contents of requests and responses are logged.
Definition: epp_common.h:37
epps_info_keyset::tech
qhead tech
List of technical contacts for keyset.
Definition: epp_common.h:646
ident_UNKNOWN
@ ident_UNKNOWN
Unknown value can also mean undefined.
Definition: epp_common.h:438
epps_poll_req::msgid
char * msgid
ID of next message in a queue.
Definition: epp_common.h:653
epp_strcat
char * epp_strcat(void *pool, const char *str1, const char *str2)
Concatenate two strings in arguments, the memory will be allocated from memory pool.
Definition: mod_eppd.c:422
service_Logger
void * service_Logger
Reference to fred-logd CORBA service.
Definition: epp-client.h:66
CLEAR_CERRNO
#define CLEAR_CERRNO(_cerrno)
Clear errno variable to non-error state.
Definition: epp-client.c:49
epps_info_domain::crDate
char * crDate
Creation date.
Definition: epp_common.h:603
RETR_SLEEP
#define RETR_SLEEP
Number of microseconds between retries when connection failure occurs.
Definition: epp-client.h:36
epps_create_domain::keyset
char * keyset
Keyset for domain.
Definition: epp_common.h:754
epps_info
All Info functions, which accept single key on input and count on output (domainsByNsset,...
Definition: epp_common.h:894
epp_avail
Structure holding answer to EPP check command.
Definition: epp_common.h:449
epps_login::pw
char * pw
Password.
Definition: epp_common.h:549
epp_postalInfo::org
char * org
Organization.
Definition: epp_common.h:361
epps_info_domain::trDate
char * trDate
Last transfered.
Definition: epp_common.h:607
epps_poll_ack::count
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:725
epps_update_contact
Update contact parameters.
Definition: epp_common.h:802
epps_renew::name
char * name
Name of renewed domain.
Definition: epp_common.h:793
epps_create_domain::name
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:750
epps_update_keyset::id
char * id
Id of wanted keyset (input).
Definition: epp_common.h:848
epps_update_domain::nsset
char * nsset
Nsset of domain.
Definition: epp_common.h:827
epp_call_update_contact
static corba_status epp_call_update_contact(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP update contact.
Definition: epp-client.c:3766
epps_check::avails
qhead avails
Booleans + reasons.
Definition: epp_common.h:560
epps_update_keyset::add_tech
qhead add_tech
Technical contacts to be added.
Definition: epp_common.h:849
epps_info_contact::fax
char * fax
Fax number.
Definition: epp_common.h:572
epplog
void epplog(epp_context *epp_ctx, epp_loglevel level, const char *fmt,...)
Write a log message to eppd log file.
Definition: mod_eppd.c:475
epps_update_contact::identtype
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:814
epp_call_login
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 *certID, epp_command_data *cdata)
Call corba login function, which sets up a session variables.
Definition: epp-client.c:620
epps_create_nsset::tech
qhead tech
List of technical contacts for nsset.
Definition: epp_common.h:769
epp_zonecredit::zone
char * zone
True if object is available, false otherwise.
Definition: epp_common.h:458
epp_call_sendauthinfo
static corba_status epp_call_sendauthinfo(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, epp_object_type obj)
SendAuthInfo command.
Definition: epp-client.c:4612
epps_info_keyset::crDate
char * crDate
Creation date.
Definition: epp_common.h:640
epps_update_nsset::add_ns
qhead add_ns
Nameservers to be added.
Definition: epp_common.h:839
epps_info_contact::handle
char * handle
Id of wanted contact (output).
Definition: epp_common.h:567
epps_info_nsset::id
char * id
Id of wanted nsset (input).
Definition: epp_common.h:615
epps_info_domain::keyset
char * keyset
Keyset for domain.
Definition: epp_common.h:600
create_dummy_answer
static corba_status create_dummy_answer(epp_context *epp_ctx, epp_command_data *cdata)
This function creates answer even though it has not enough data for that from CORBA server.
Definition: epp-client.c:320
epp_context
EPP context is a group of variables used often together.
Definition: epp_common.h:45
epp_dnskey::public_key
char * public_key
base64 encoded public key
Definition: epp_common.h:432
handle_exception
static corba_status handle_exception(epp_context *epp_ctx, epp_command_data *cdata, CORBA_Environment *ev)
Common code for handling exceptions from corba calls.
Definition: epp-client.c:434
epp_calloc
void * epp_calloc(void *pool, unsigned size)
Allocate memory from memory pool and prezero it.
Definition: mod_eppd.c:386
epps_update_nsset::add_tech
qhead add_tech
Technical contacts to be added.
Definition: epp_common.h:837
epps_create_contact::crDate
char * crDate
Creation date of contact.
Definition: epp_common.h:743
epps_info_contact::pi
epp_postalInfo pi
Postal info.
Definition: epp_common.h:570
epps_update_contact::pi
epp_postalInfo * pi
Postal info.
Definition: epp_common.h:805
epps_info_keyset::crID
char * crID
ID of creator.
Definition: epp_common.h:639
epp_dnskey::alg
unsigned char alg
algorithm type
Definition: epp_common.h:431
raised_exception
#define raised_exception(ev)
Quick test if corba exception was raised.
Definition: epp-client.h:39
epp_lang
epp_lang
definition of languages (english is default)
Definition: epp_common.h:145
epps_test
Test parameters.
Definition: epp_common.h:876
epps_poll_req::type
epp_pollType type
Type of poll message.
Definition: epp_common.h:655
epp_call_info
static corba_status epp_call_info(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, ccReg_InfoType c_infotype)
Info functions handler.
Definition: epp-client.c:4885
epp_call_info_nsset
static corba_status epp_call_info_nsset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP info nsset.
Definition: epp-client.c:1646
epp_call_save_output_xml
void epp_call_save_output_xml(epp_context *epp_ctx, service_EPP service, epp_command_data *cdata, const char *xml)
This function calls corba function which saves generated XML in database.
epps_info_contact::discl
epp_discl discl
Disclose information section.
Definition: epp_common.h:581
CORBA_INT_ERROR
@ CORBA_INT_ERROR
This should occur unusualy (e.g.
Definition: epp-client.h:58
epps_poll_req::tc
struct epps_poll_req::@2::@5 tc
Structure with results of technical tests.
epp_command_data::xml_schema
eppd_server_xml_conf xml_schema
Entities enabled in xml schemas.
Definition: epp_common.h:930
epp_command_data::clTRID
char * clTRID
client's TRID
Definition: epp_common.h:911
epp_command_data::data
void * data
Command data (Input + output parameters for all possible epp commands).
Definition: epp_common.h:935
epp_ext_item::extType
epp_ext_type extType
Identifier of extension.
Definition: epp_common.h:502
wrap_str
char * wrap_str(const char *str)
Function wraps strings passed from XML parser into strings accepted by CORBA.
Definition: epp-client.c:137
epp_call_create_keyset
static corba_status epp_call_create_keyset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP create keyset.
Definition: epp-client.c:3138
epps_create_domain
Create domain parameters.
Definition: epp_common.h:748
epps_update_domain::registrant
char * registrant
Registrant of domain.
Definition: epp_common.h:823
epp_dnskey::flags
unsigned short flags
key properties.
Definition: epp_common.h:429
epps_info_contact::extensions
qhead extensions
List of extensions.
Definition: epp_common.h:586
epps_info_contact::email
char * email
Email address.
Definition: epp_common.h:573
epps_create_contact::email
char * email
Email address.
Definition: epp_common.h:736
pt_lowcredit
@ pt_lowcredit
Credit of registrator is low.
Definition: epp_common.h:526
unwrap_str_req
static char * unwrap_str_req(epp_context *epp_ctx, const char *str, int *cerrno, const char *id)
Does the same thing as unwrap_str() but in addition input string is required not to be empty.
Definition: epp-client.c:202
epp_mailingAddr::Street2
char * Street2
street - line #2
Definition: epp_common.h:472
epps_info_contact::ident
char * ident
Contact's unique ident.
Definition: epp_common.h:583
epps_info_contact::crDate
char * crDate
Creation date.
Definition: epp_common.h:576
epp_call_dummy
static corba_status epp_call_dummy(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
"dummy" call is dummy because it only retrieves unique svTRID and error message from central reposito...
Definition: epp-client.c:492
epp_command_data::svTRID
char * svTRID
server's TRID
Definition: epp_common.h:912
epps_info_contact::clID
char * clID
Owner's ID.
Definition: epp_common.h:574
epps_info_domain::upDate
char * upDate
Last updated.
Definition: epp_common.h:606
epps_update_keyset::rem_tech
qhead rem_tech
Technical contacts to be removed.
Definition: epp_common.h:850
epps_login
Login parameters.
Definition: epp_common.h:546
epps_create_nsset::level
int level
Report level.
Definition: epp_common.h:771
epps_update_nsset::level
int level
Report level.
Definition: epp_common.h:842
epps_create_domain::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:757
pt_impexpiration
@ pt_impexpiration
Domain will expire in near future.
Definition: epp_common.h:520
epp_call_create_domain
static corba_status epp_call_create_domain(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP create domain.
Definition: epp-client.c:2456
epps_update_contact::id
char * id
Id of wanted contact (input).
Definition: epp_common.h:804
epps_poll_ack
Poll acknoledge parameters.
Definition: epp_common.h:722
epps_info_nsset::trDate
char * trDate
Last transfered.
Definition: epp_common.h:624
pt_transfer_domain
@ pt_transfer_domain
Domain was transferred.
Definition: epp_common.h:519
epps_update_keyset::rem_dnskey
qhead rem_dnskey
DNSKEYs to be removed.
Definition: epp_common.h:852
epps_update_nsset::id
char * id
Id of wanted nsset (input).
Definition: epp_common.h:836
epps_update_keyset
Update keyset parameters.
Definition: epp_common.h:846
epps_create_keyset::keys
qhead keys
List of DNS Key records.
Definition: epp_common.h:779
epp_call_transfer
static corba_status epp_call_transfer(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, epp_object_type obj)
EPP transfer for domain, contact, nsset and keyset is so similar that it is worth of having the code ...
Definition: epp-client.c:4422
epp_testResult
Structure containing result of one technical test.
Definition: epp_common.h:535
epps_create_nsset::ns
qhead ns
List of nameservers.
Definition: epp_common.h:768
epp_call_CloseSession
void epp_call_CloseSession(epp_context *epp_ctx, service_EPP service, unsigned long long loginid)
Let the CR know that client has closed tcp session.
Definition: epp-client.c:5244
epp_identType
epp_identType
Type of identification number used in contact object.
Definition: epp_common.h:436
epps_info_domain
Info domain parameters.
Definition: epp_common.h:590
epp_mailingAddr::Street1
char * Street1
street - line #1
Definition: epp_common.h:471
epps_info_contact::notify_email
char * notify_email
Notification email.
Definition: epp_common.h:585
epps_test::names
qhead names
Fqdns of domains to be tested with nsset.
Definition: epp_common.h:879
epps_info_domain::registrant
char * registrant
Registrant of domain.
Definition: epp_common.h:596
epps_info_contact::upID
char * upID
ID of last updater.
Definition: epp_common.h:577
epp_error::spec
epp_errorspec spec
Specification of surrounding XML tags.
Definition: epp_common.h:212
epps_info_contact::crID
char * crID
ID of creator.
Definition: epp_common.h:575
epps_update_domain
Update domain parameters.
Definition: epp_common.h:820
EPP_ERROR
@ EPP_ERROR
Error caused usually by client, module is operational.
Definition: epp_common.h:34
epps_create_domain::extensions
qhead extensions
List of domain extensions.
Definition: epp_common.h:758
epp_context::pool
void * pool
Pool for allocations.
Definition: epp_common.h:47
epp_mailingAddr::StateOrProvince
char * StateOrProvince
state or province
Definition: epp_common.h:475
CORBA_REMOTE_ERROR
@ CORBA_REMOTE_ERROR
Epp server is responding but the response is not valid.
Definition: epp-client.h:60
epps_info_nsset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:625
epps_info_nsset::upID
char * upID
ID of last updater.
Definition: epp_common.h:622
CORBA_ERROR
@ CORBA_ERROR
Corba function call failed (e.g.
Definition: epp-client.h:57
epp_controlled_privacy_data_mask
Definition: epp_common.h:392
epps_create_contact::identtype
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:741
epp_call_hello
int epp_call_hello(epp_context *epp_ctx, service_EPP service, char **version, char **curdate)
Purpose of this function is to get version string of ccReg from corba server, which is used as part o...
Definition: epp-client.c:257
epps_info::handle
char * handle
Search key.
Definition: epp_common.h:896
ident_PASSPORT
@ ident_PASSPORT
Number of passport.
Definition: epp_common.h:440
epps_create_contact::fax
char * fax
Fax number.
Definition: epp_common.h:735
pt_update_keyset
@ pt_update_keyset
KeySet changed.
Definition: epp_common.h:531
epps_create_nsset::id
char * id
Id of wanted nsset (input).
Definition: epp_common.h:766
pt_outzone
@ pt_outzone
Domain was outaged from zone.
Definition: epp_common.h:524
convIdentType
static ccReg_identtyp convIdentType(epp_identType our_ident)
Convert our SSN enum to IDL's SSNtyp enum.
Definition: epp-client.c:2646
epps_info_domain::status
qhead status
Domain's status.
Definition: epp_common.h:595
epps_renew::unit
epp_timeunit unit
Registration period's unit.
Definition: epp_common.h:796
epps_create_keyset::crDate
char * crDate
Creation date of keyset.
Definition: epp_common.h:781
pt_update_nsset
@ pt_update_nsset
NSSet changed.
Definition: epp_common.h:530
epps_delete
Delete parameters.
Definition: epp_common.h:785
epp_call_info_contact
static corba_status epp_call_info_contact(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, ccReg_TID request_id, epp_command_data *cdata)
EPP info contact.
Definition: epp-client.c:1235
pt_expiration
@ pt_expiration
Domain expired.
Definition: epp_common.h:521
epps_poll_req::lc
struct epps_poll_req::@2::@6 lc
Low credit structure.
epps_poll_req::count
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:652
epps_update_domain::name
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:822
epps_create_domain::unit
epp_timeunit unit
Registration period's unit.
Definition: epp_common.h:756
qhead::body
qitem * body
Items in a queue.
Definition: epp_common.h:312
epp_call_logout
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)
Call corba logout function.
Definition: epp-client.c:715
epps_create_contact::extensions
qhead extensions
List of extensions.
Definition: epp_common.h:744
epp_zonecredit::credit
char * credit
Credit.
Definition: epp_common.h:459
epps_info_keyset::id
char * id
Id of wanted keyset (input).
Definition: epp_common.h:634
epp_call_update_domain
static corba_status epp_call_update_domain(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP update domain.
Definition: epp-client.c:3550
epps_renew::period
int period
Renew period.
Definition: epp_common.h:795
epps_test::id
char * id
ID of tested nsset.
Definition: epp_common.h:878
epps_update_domain::add_admin
qhead add_admin
Admin contacts to be added.
Definition: epp_common.h:824
epps_info_domain::extensions
qhead extensions
List of domain extensions.
Definition: epp_common.h:609
epp_avail::avail
int avail
True if object is available, false otherwise.
Definition: epp_common.h:451
info_nsset_data_copy
int info_nsset_data_copy(epp_context *epp_ctx, epps_info_nsset *info_nsset, ccReg_NSSet *c_nsset, CORBA_Environment *ev)
Helper function for copy nsset data from corba to internal structure.
Definition: epp-client.c:1530
epps_info_domain::nsset
char * nsset
Nsset of domain.
Definition: epp_common.h:599
epp_status
Structure for holding status' names and values.
Definition: epp_common.h:349
epilog_failure
static int epilog_failure(epp_context *epp_ctx, epp_command_data *cdata, ccReg_EPP_EppError *exc)
This function is called in case of invalid parameter which is signalled to module by throwing Invalid...
Definition: epp-client.c:384
epps_create_keyset
Create keyset parameters.
Definition: epp_common.h:775
epps_update_nsset::rem_ns
qhead rem_ns
Nameservers to be removed.
Definition: epp_common.h:840
epp_call_update_nsset
static corba_status epp_call_update_nsset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP update nsset.
Definition: epp-client.c:4003
epps_poll_req::hd
struct epps_poll_req::@2::@4 hd
Handle, date structure.
epps_info_domain::roid
char * roid
ROID of object.
Definition: epp_common.h:594
epp_dnskey
DNS Key record - http://rfc-ref.org/RFC-TEXTS/4034/chapter2.html.
Definition: epp_common.h:427
epps_update_nsset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:841
epp_postalInfo::pc
char * pc
Postal code.
Definition: epp_common.h:365
epp_status::text
char * text
Status value.
Definition: epp_common.h:352
wrap_str
char * wrap_str(const char *str)
Function wraps strings passed from XML parser into strings accepted by CORBA.
Definition: epp-client.c:137
epps_update_contact::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:809
epps_poll_req::hdt
struct epps_poll_req::@2::@3 hdt
Handle, date, registrator structure.
epp_postalInfo::city
char * city
City.
Definition: epp_common.h:363
epps_info_keyset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:644
epps_sendAuthInfo
SendAuthInfo parameters.
Definition: epp_common.h:864
epps_create_keyset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:778
epp_ns::addr
qhead addr
List of ip addresses.
Definition: epp_common.h:423
epps_test::level
int level
Level of tests (-1 if not overriden).
Definition: epp_common.h:880
corba_status
corba_status
Possible return values of functions from corba module.
Definition: epp-client.h:54
epps_info_contact::vat
char * vat
VAT tax ID.
Definition: epp_common.h:582
epp_call_cmd
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)
Call generic command corba handler which decides what to do on the basis of cdata content.
Definition: epp-client.c:5031
epps_update_keyset::add_dnskey
qhead add_dnskey
DNSKEYs to be added.
Definition: epp_common.h:851
pt_transfer_nsset
@ pt_transfer_nsset
Nsset was transferred.
Definition: epp_common.h:514
epp_malloc
void * epp_malloc(void *pool, unsigned size)
Allocate memory from memory pool.
epps_create_contact::id
char * id
Id of wanted contact (input).
Definition: epp_common.h:732
epp_mailingAddr::Street3
char * Street3
street - line #3
Definition: epp_common.h:473
ident_OP
@ ident_OP
Number of ID card.
Definition: epp_common.h:439
epp_call_update_keyset
static corba_status epp_call_update_keyset(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP update keyset.
Definition: epp-client.c:4208
epps_info_nsset::crID
char * crID
ID of creator.
Definition: epp_common.h:620
epps_info_keyset
Info keyset parameters.
Definition: epp_common.h:632
epp_postalInfo::cc
char * cc
Country code.
Definition: epp_common.h:366
epps_create_keyset::tech
qhead tech
List of technical contacts for keyset.
Definition: epp_common.h:780
epps_info_nsset::status
qhead status
Nsset's status.
Definition: epp_common.h:618
epp_object_type
epp_object_type
Enumeration of EPP objects which this server operates on.
Definition: epp_common.h:134
epps_update_keyset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:853
epp_status::value
char * value
Status name.
Definition: epp_common.h:351
epps_poll_req::upc
struct epps_poll_req::@2::@8 upc
Update contact info.
pt_transfer_keyset
@ pt_transfer_keyset
KeySet was transferred.
Definition: epp_common.h:516
epps_update_contact::fax
char * fax
Fax number.
Definition: epp_common.h:807
epp_call_getInfoResults
static corba_status epp_call_getInfoResults(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
Get results of info search.
Definition: epp-client.c:4961
epps_info_keyset::upDate
char * upDate
Last updated.
Definition: epp_common.h:642
epp_command_data::rc
int rc
EPP return code defined in standard.
Definition: epp_common.h:913
info_domain_data_copy
int info_domain_data_copy(epp_context *epp_ctx, epps_info_domain *info_domain, ccReg_Domain *c_domain, CORBA_Environment *ev)
Helper function for copy domain data from corba to internal structure.
Definition: epp-client.c:1316
epp_call_create_contact
static corba_status epp_call_create_contact(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, ccReg_TID request_id, epp_command_data *cdata)
EPP create contact.
Definition: epp-client.c:2681
epp_ext_item::ext_enum
epp_ext_enum ext_enum
Extensions for ENUM.
Definition: epp_common.h:505
epp_error
The struct represents one epp error in ExtValue element.
Definition: epp_common.h:203
epp_command_data::xml_in
char * xml_in
XML as it is received from client.
Definition: epp_common.h:915
epp_zonecredit
Structure holding answer to EPP creditInfo command.
Definition: epp_common.h:456
epps_poll_req::upd
struct epps_poll_req::@2::@9 upd
Update domain info.
epp_call_poll_ack
static corba_status epp_call_poll_ack(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata)
EPP poll acknowledge.
Definition: epp-client.c:2377
ident_MPSV
@ ident_MPSV
Number assigned by "ministry of work and ...".
Definition: epp_common.h:441
epps_info_domain::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:608
epp_call_list
static corba_status epp_call_list(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, epp_object_type obj)
List command for domain, contact and nsset is so similar that it is worth of having the code in one f...
Definition: epp-client.c:4514
pt_delete_contact
@ pt_delete_contact
Contact was deleted because not used.
Definition: epp_common.h:513
epps_info_contact::identtype
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:584
epps_info_keyset::upID
char * upID
ID of last updater.
Definition: epp_common.h:641
epps_poll_req::upk
struct epps_poll_req::@2::@11 upk
Update nsset info.
epps_info_nsset::roid
char * roid
ROID of object.
Definition: epp_common.h:617
pt_request_fee_info
@ pt_request_fee_info
Requests price/count info.
Definition: epp_common.h:527
epps_check
Check contact, domain and nsset parameters.
Definition: epp_common.h:557
epps_create_domain::nsset
char * nsset
Nsset of domain.
Definition: epp_common.h:753
epps_info_domain::exDate
char * exDate
Expiration date.
Definition: epp_common.h:604
epps_info_keyset::handle
char * handle
Id of wanted keyset (output).
Definition: epp_common.h:635
epps_creditInfo
CreditInfo parameters.
Definition: epp_common.h:870
epp_ext_enum::publish
int publish
Flag determining if this domain can be published in the ENUM dictionary.
Definition: epp_common.h:465
eppd_server_xml_conf::has_contact_mailing_address_extension
int has_contact_mailing_address_extension
Contacts feature mailing address extension.
Definition: epp_common.h:410
epps_poll_ack::newmsgid
char * newmsgid
ID of first message in a queue.
Definition: epp_common.h:726
epps_update_contact::ident
char * ident
Contact's unique ident.
Definition: epp_common.h:813
epp_call_logout
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)
Call corba logout function.
Definition: epp-client.c:715
epps_info_keyset::clID
char * clID
Owner's ID.
Definition: epp_common.h:638
epps_info_contact::status
qhead status
Contact's status.
Definition: epp_common.h:569
epps_create_nsset::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:767
epps_update_contact::extensions
qhead extensions
List of extensions.
Definition: epp_common.h:816
epp_mailingAddr::CountryCode
char * CountryCode
country code - 2 char ISO country code
Definition: epp_common.h:477
epps_info_nsset::clID
char * clID
Owner's ID.
Definition: epp_common.h:619
IS_EPP_ERROR
#define IS_EPP_ERROR(_ev)
True if exception is EPP_ERROR.
Definition: epp-client.h:49
service_EPP
void * service_EPP
Reference to EPP CORBA service.
Definition: epp-client.h:64
epp_avail::reason
char * reason
If object is not available, here is the reason.
Definition: epp_common.h:452
IS_NOT_COMM_FAILURE_EXCEPTION
#define IS_NOT_COMM_FAILURE_EXCEPTION(_ev)
True if exception is COMM_FAILURE, which is used in retry loop.
Definition: epp-client.h:46
err_epp2idl
static int err_epp2idl(int eppcode)
Translate error code from mod_eppd's code to IDL code.
Definition: epp-client.c:121
epp_command_data
This structure is central to the concept of the whole module.
Definition: epp_common.h:909
pt_update_contact
@ pt_update_contact
Contact changed.
Definition: epp_common.h:528
epps_create_contact::pi
epp_postalInfo pi
Postal info.
Definition: epp_common.h:733
epp_postalInfo::streets
qhead streets
3x street.
Definition: epp_common.h:362
epp_ext_enum::ext_enumval
char * ext_enumval
Domain validation.
Definition: epp_common.h:464
epps_create_contact::ident
char * ident
Contact's unique ident.
Definition: epp_common.h:740
epps_create_contact::notify_email
char * notify_email
Notification email.
Definition: epp_common.h:742
epps_info_nsset
Info nsset parameters.
Definition: epp_common.h:613
epp_command_data::type
epp_command_type type
Identification of epp command.
Definition: epp_common.h:929
epps_transfer
Transfer parameters.
Definition: epp_common.h:857
q_content
#define q_content(_qhead)
Get content of current item.
Definition: epp_common.h:321
epp_common.h
epps_info_contact::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:580
epp_call_check
static corba_status epp_call_check(epp_context *epp_ctx, service_EPP service, unsigned long long loginid, const ccReg_TID request_id, epp_command_data *cdata, epp_object_type obj)
EPP check for domain, nsset and contact is so similar that it is worth of having the code in one func...
Definition: epp-client.c:778
q_length
#define q_length(_qhead)
Get length of a queue.
Definition: epp_common.h:317
epp_call_cmd
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)
Call generic command corba handler which decides what to do on the basis of cdata content.
Definition: epp-client.c:5031
epps_create_domain::exDate
char * exDate
Expiration date of domain.
Definition: epp_common.h:760
epps_info_contact::upDate
char * upDate
Last updated.
Definition: epp_common.h:578
epp_dnskey::protocol
unsigned char protocol
= 3
Definition: epp_common.h:430
epps_info_contact::voice
char * voice
Telephone number.
Definition: epp_common.h:571
epps_info_nsset::handle
char * handle
Id of wanted nsset (output).
Definition: epp_common.h:616
epps_info_nsset::crDate
char * crDate
Creation date.
Definition: epp_common.h:621
pt_techcheck
@ pt_techcheck
Technical check results.
Definition: epp_common.h:518
q_add
int q_add(void *pool, qhead *head, void *data)
Add new item to a queue (the item will be enqueued at the end of queue).
Definition: epp_common.c:31
epps_create_contact::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:737
epp_ext_item::ext
union epp_ext_item::@1 ext
Extension.
pt_delete_domain
@ pt_delete_domain
Domain was deleted.
Definition: epp_common.h:525
epps_update_domain::authInfo
char * authInfo
Authorization information.
Definition: epp_common.h:829
epps_creditInfo::zonecredits
qhead zonecredits
List of credits for individual zones.
Definition: epp_common.h:872
epps_info_nsset::tech
qhead tech
List of technical contacts for nsset.
Definition: epp_common.h:627
CORBA_OK
@ CORBA_OK
No errors.
Definition: epp-client.h:55
epp_mailingAddr::PostalCode
char * PostalCode
postal code
Definition: epp_common.h:476
epp-client.h
epps_info_nsset::upDate
char * upDate
Last updated.
Definition: epp_common.h:623