Go to the documentation of this file.
32 #define XSI "http://www.w3.org/2001/XMLSchema-instance"
85 char **response,
qhead *valerr);
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)
char * epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position)
Get subtree of XML document based on xpath expression.
Definition: epp_xmlcommon.c:169
Poll request parameters.
Definition: epp_common.h:650
@ pt_delete_keyset
KeySet was deleted because not used.
Definition: epp_common.h:517
@ pt_impvalidation
Domain validation will expire soon.
Definition: epp_common.h:522
char * handle
FQDN of wanted domain (output).
Definition: epp_common.h:593
@ pt_transfer_contact
Contact was transferred.
Definition: epp_common.h:512
char * name
fqdn of nameserver.
Definition: epp_common.h:422
@ pt_update_domain
Domain changed.
Definition: epp_common.h:529
#define NS_EXTRAADDR
Our custom namespace used for extra contact address extension.
Definition: epp_xmlcommon.h:47
#define XSI
Namespace used for specifing location of a schema in xml document.
Definition: epp_gen.h:32
char * upID
ID of last updater.
Definition: epp_common.h:605
Definition: epp_common.h:500
gen_status
XML generator status values.
Definition: epp_gen.h:37
char * roid
ROID of object.
Definition: epp_common.h:636
char * id
Id of wanted keyset (input).
Definition: epp_common.h:777
Parameters of obsolete command 'list' and getResults command.
Definition: epp_common.h:884
char * exDate
New expiration date.
Definition: epp_common.h:798
char * crID
ID of creator.
Definition: epp_common.h:602
qhead tmpcontact
Temporary contact used for migration.
Definition: epp_common.h:597
char * sp
State or province.
Definition: epp_common.h:364
char * qdate
Date of message submission.
Definition: epp_common.h:654
#define LOC_ENUMVAL
Namespace + location of enumval xml schema.
Definition: epp_xmlcommon.h:63
qhead keys
List of DNS Key records.
Definition: epp_common.h:645
@ GEN_EBUILD
Error when building xml document.
Definition: epp_gen.h:41
qhead ids
IDs of checked objects.
Definition: epp_common.h:559
@ ident_ICO
ICO.
Definition: epp_common.h:442
char * crDate
Creation date of domain.
Definition: epp_common.h:759
short noresdata
True if there should be no resdata section or msgQ section.
Definition: epp_common.h:921
@ pt_validation
Domain validation expired.
Definition: epp_common.h:523
char * name
Name.
Definition: epp_common.h:360
@ GEN_EINTERNAL
Malloc failure during response validation.
Definition: epp_gen.h:46
union epps_poll_req::@2 msg
Message data.
Renew domain parameters.
Definition: epp_common.h:791
#define NS_NSSET
Our custom namespace used for nsset object.
Definition: epp_xmlcommon.h:39
qhead errors
List of validation errors or errors from central repository.
Definition: epp_common.h:923
qhead status
Keyset's status.
Definition: epp_common.h:637
#define WRITE_STRING(writer, err_handler, str)
Wrapper around libxml's xmlTestWriterWriteString() function.
Definition: epp_gen.c:82
static char gen_poll_message(xmlTextWriterPtr writer, epps_poll_req *msgdata, const eppd_server_xml_conf *xml_schema)
This is assistant function for generating poll message.
Definition: epp_gen.c:626
qhead admin
Admin contact for domain.
Definition: epp_common.h:598
char * msg
Text message coresponding to return code.
Definition: epp_common.h:914
static char gen_info_domain(xmlTextWriterPtr writer, epps_info_domain *info_domain)
This is assistant function for generating info domain <resData> xml subtree.
Definition: epp_gen.c:446
struct epps_poll_req::@2::@7 rfi
Request fee info structure.
epp_ext_mailingAddr ext_mailing_addr
Extensions for mailing contact addresses.
Definition: epp_common.h:506
Create nsset parameters.
Definition: epp_common.h:764
unsigned int count
Count of results.
Definition: epp_common.h:897
@ pt_delete_nsset
Nsset was deleted because not used.
Definition: epp_common.h:515
qhead handles
List of handles.
Definition: epp_common.h:886
#define q_foreach(_qhead)
Iterate through items in a list.
Definition: epp_common.h:328
char * trDate
Last transfered.
Definition: epp_common.h:643
Configuration of entities enabled in xml schemas.
Definition: epp_common.h:408
struct epps_poll_req::@2::@10 upn
Update nsset info.
Nameserver has a name and possibly more than one ip address.
Definition: epp_common.h:420
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
@ VAL_EINTERNAL
Internal error (malloc failed).
Definition: epp_xmlcommon.h:74
char * reason
Human readable reason of error.
Definition: epp_common.h:221
#define LOC_DOMAIN
Namespace + location of domain xml schema.
Definition: epp_xmlcommon.h:55
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
char * crDate
Creation date of nsset.
Definition: epp_common.h:770
qhead ns
List of nameservers.
Definition: epp_common.h:626
char * clID
Owner's ID.
Definition: epp_common.h:601
int position
Position of faulty element if it is part of list.
Definition: epp_common.h:223
int level
Report level.
Definition: epp_common.h:628
char * City
city
Definition: epp_common.h:474
@ ident_BIRTHDAY
Date of birth.
Definition: epp_common.h:443
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
qhead tech
List of technical contacts for keyset.
Definition: epp_common.h:646
char * msgid
ID of next message in a queue.
Definition: epp_common.h:653
char * crDate
Creation date.
Definition: epp_common.h:603
#define END_ELEMENT(writer, err_handler)
Wrapper around libxml's xmlTestWriterEndElement() function.
Definition: epp_gen.c:101
All Info functions, which accept single key on input and count on output (domainsByNsset,...
Definition: epp_common.h:894
@ GEN_ESCHEMA
Error when parsing xml schema used for validation.
Definition: epp_gen.h:47
Structure holding answer to EPP check command.
Definition: epp_common.h:449
char * org
Organization.
Definition: epp_common.h:361
char * trDate
Last transfered.
Definition: epp_common.h:607
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:725
char * name
Name of renewed domain.
Definition: epp_common.h:793
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:750
qhead avails
Booleans + reasons.
Definition: epp_common.h:560
char * zone
True if object is available, false otherwise.
Definition: epp_common.h:458
char * crDate
Creation date.
Definition: epp_common.h:640
char * keyset
Keyset for domain.
Definition: epp_common.h:600
#define LOC_EXTRAADDR
Namespace + location of extraaddr xml schema.
Definition: epp_xmlcommon.h:65
EPP context is a group of variables used often together.
Definition: epp_common.h:45
char * public_key
base64 encoded public key
Definition: epp_common.h:432
#define NS_DOMAIN
Our custom namespace used for domain object.
Definition: epp_xmlcommon.h:37
char * crID
ID of creator.
Definition: epp_common.h:639
#define NS_KEYSET
Our custom namespace used for keyset object.
Definition: epp_xmlcommon.h:41
unsigned char alg
algorithm type
Definition: epp_common.h:431
#define LOC_KEYSET
Namespace + location of keyset xml schema.
Definition: epp_xmlcommon.h:59
epp_lang
definition of languages (english is default)
Definition: epp_common.h:145
epp_pollType type
Type of poll message.
Definition: epp_common.h:655
#define q_reset(_qhead)
Reset current item to the first one.
Definition: epp_common.h:323
struct epps_poll_req::@2::@5 tc
Structure with results of technical tests.
eppd_server_xml_conf xml_schema
Entities enabled in xml schemas.
Definition: epp_common.h:930
char * clTRID
client's TRID
Definition: epp_common.h:911
void * data
Command data (Input + output parameters for all possible epp commands).
Definition: epp_common.h:935
epp_ext_type extType
Identifier of extension.
Definition: epp_common.h:502
Create domain parameters.
Definition: epp_common.h:748
unsigned short flags
key properties.
Definition: epp_common.h:429
#define NS_ENUMVAL
Our custom namespace used for enum validation extension.
Definition: epp_xmlcommon.h:45
@ pt_lowcredit
Credit of registrator is low.
Definition: epp_common.h:526
char * Street2
street - line #2
Definition: epp_common.h:472
char * svTRID
server's TRID
Definition: epp_common.h:912
char * upDate
Last updated.
Definition: epp_common.h:606
@ VAL_NOT_VALID
Document does not validate.
Definition: epp_xmlcommon.h:72
@ pt_impexpiration
Domain will expire in near future.
Definition: epp_common.h:520
Poll acknoledge parameters.
Definition: epp_common.h:722
char * trDate
Last transfered.
Definition: epp_common.h:624
@ pt_transfer_domain
Domain was transferred.
Definition: epp_common.h:519
static char * get_bad_xml(void *pool, epp_command_data *cdata, epp_error *e)
Function gets element (including its content) from input XML document which caused an error.
Definition: epp_gen.c:889
Structure containing result of one technical test.
Definition: epp_common.h:535
@ GEN_NOT_XML
Something what is not xml was generated.
Definition: epp_gen.h:45
Info domain parameters.
Definition: epp_common.h:590
char * Street1
street - line #1
Definition: epp_common.h:471
valid_status
Enumaration of statuses returned by validator.
Definition: epp_xmlcommon.h:70
char * registrant
Registrant of domain.
Definition: epp_common.h:596
epp_errorspec spec
Specification of surrounding XML tags.
Definition: epp_common.h:212
void * pool
Pool for allocations.
Definition: epp_common.h:47
char * StateOrProvince
state or province
Definition: epp_common.h:475
char * authInfo
Authorization information.
Definition: epp_common.h:625
char * upID
ID of last updater.
Definition: epp_common.h:622
Definition: epp_common.h:392
#define WRITE_ATTRIBUTE(writer, err_handler, attr_name, attr_value)
Wrapper around libxml's xmlTestWriterWriteAttribute() function.
Definition: epp_gen.c:91
@ ident_PASSPORT
Number of passport.
Definition: epp_common.h:440
static char gen_info_keyset(xmlTextWriterPtr writer, epps_info_keyset *info_keyset)
This is assistant function for generating info keyset <resData> xml subtree.
Definition: epp_gen.c:562
@ pt_update_keyset
KeySet changed.
Definition: epp_common.h:531
char * id
Id of wanted nsset (input).
Definition: epp_common.h:766
@ pt_outzone
Domain was outaged from zone.
Definition: epp_common.h:524
qhead status
Domain's status.
Definition: epp_common.h:595
char * crDate
Creation date of keyset.
Definition: epp_common.h:781
@ pt_update_nsset
NSSet changed.
Definition: epp_common.h:530
@ pt_expiration
Domain expired.
Definition: epp_common.h:521
struct epps_poll_req::@2::@6 lc
Low credit structure.
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:652
#define LOC_EPP
Namespace + location of epp xml schema.
Definition: epp_xmlcommon.h:51
#define LOC_CONTACT
Namespace + location of contact xml schema.
Definition: epp_xmlcommon.h:53
qitem * body
Items in a queue.
Definition: epp_common.h:312
char * credit
Credit.
Definition: epp_common.h:459
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
qhead extensions
List of domain extensions.
Definition: epp_common.h:609
int avail
True if object is available, false otherwise.
Definition: epp_common.h:451
static char gen_info_nsset(xmlTextWriterPtr writer, epps_info_nsset *info_nsset)
This is assistant function for generating info nsset <resData> xml subtree.
Definition: epp_gen.c:498
char * nsset
Nsset of domain.
Definition: epp_common.h:599
Structure for holding status' names and values.
Definition: epp_common.h:349
Create keyset parameters.
Definition: epp_common.h:775
struct epps_poll_req::@2::@4 hd
Handle, date structure.
char * roid
ROID of object.
Definition: epp_common.h:594
DNS Key record - http://rfc-ref.org/RFC-TEXTS/4034/chapter2.html.
Definition: epp_common.h:427
char * pc
Postal code.
Definition: epp_common.h:365
char * text
Status value.
Definition: epp_common.h:352
struct epps_poll_req::@2::@3 hdt
Handle, date, registrator structure.
char * city
City.
Definition: epp_common.h:363
char * authInfo
Authorization information.
Definition: epp_common.h:644
qhead addr
List of ip addresses.
Definition: epp_common.h:423
@ VAL_ESCHEMA
Error when loading or parsing schema.
Definition: epp_xmlcommon.h:73
#define q_next(_qhead)
Shift to next item in a queue.
Definition: epp_common.h:319
@ pt_transfer_nsset
Nsset was transferred.
Definition: epp_common.h:514
char * Street3
street - line #3
Definition: epp_common.h:473
@ ident_OP
Number of ID card.
Definition: epp_common.h:439
char * crID
ID of creator.
Definition: epp_common.h:620
Info keyset parameters.
Definition: epp_common.h:632
char * cc
Country code.
Definition: epp_common.h:366
char * value
Client provided input which caused the error.
Definition: epp_common.h:206
qhead status
Nsset's status.
Definition: epp_common.h:618
char * value
Status name.
Definition: epp_common.h:351
struct epps_poll_req::@2::@8 upc
Update contact info.
#define LOC_FRED
Namespace + location of fred xml schema.
Definition: epp_xmlcommon.h:61
@ pt_transfer_keyset
KeySet was transferred.
Definition: epp_common.h:516
@ GEN_EWRITER
Could not create xml writer.
Definition: epp_gen.h:40
char * upDate
Last updated.
Definition: epp_common.h:642
Queue structure used on countless places throughout the program.
Definition: epp_common.h:309
@ GEN_EBUFFER
Could not create xml buffer.
Definition: epp_gen.h:39
int rc
EPP return code defined in standard.
Definition: epp_common.h:913
#define NS_CONTACT
Our custom namespace used for contact object.
Definition: epp_xmlcommon.h:35
epp_ext_enum ext_enum
Extensions for ENUM.
Definition: epp_common.h:505
#define LOC_NSSET
Namespace + location of nsset xml schema.
Definition: epp_xmlcommon.h:57
The struct represents one epp error in ExtValue element.
Definition: epp_common.h:203
@ GEN_NOT_VALID
Response does not validate.
Definition: epp_gen.h:48
Structure holding answer to EPP creditInfo command.
Definition: epp_common.h:456
struct epps_poll_req::@2::@9 upd
Update domain info.
@ ident_MPSV
Number assigned by "ministry of work and ...".
Definition: epp_common.h:441
char * authInfo
Authorization information.
Definition: epp_common.h:608
@ pt_delete_contact
Contact was deleted because not used.
Definition: epp_common.h:513
#define START_ELEMENT(writer, err_handler, elem)
Wrapper around libxml's xmlTestWriterStartElement() function.
Definition: epp_gen.c:65
char * upID
ID of last updater.
Definition: epp_common.h:641
struct epps_poll_req::@2::@11 upk
Update nsset info.
char * roid
ROID of object.
Definition: epp_common.h:617
#define NS_EPP
Standard EPP xml namespace.
Definition: epp_xmlcommon.h:33
@ pt_request_fee_info
Requests price/count info.
Definition: epp_common.h:527
Check contact, domain and nsset parameters.
Definition: epp_common.h:557
valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list)
Function for validating xml document.
Definition: epp_xmlcommon.c:136
char * exDate
Expiration date.
Definition: epp_common.h:604
char * handle
Id of wanted keyset (output).
Definition: epp_common.h:635
CreditInfo parameters.
Definition: epp_common.h:870
int publish
Flag determining if this domain can be published in the ENUM dictionary.
Definition: epp_common.h:465
int has_contact_mailing_address_extension
Contacts feature mailing address extension.
Definition: epp_common.h:410
char * newmsgid
ID of first message in a queue.
Definition: epp_common.h:726
char * clID
Owner's ID.
Definition: epp_common.h:638
@ VAL_OK
Document is valid.
Definition: epp_xmlcommon.h:71
char * CountryCode
country code - 2 char ISO country code
Definition: epp_common.h:477
@ GEN_OK
No error appeared, everything was allright.
Definition: epp_gen.h:38
char * clID
Owner's ID.
Definition: epp_common.h:619
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
char * reason
If object is not available, here is the reason.
Definition: epp_common.h:452
This structure is central to the concept of the whole module.
Definition: epp_common.h:909
@ pt_update_contact
Contact changed.
Definition: epp_common.h:528
qhead streets
3x street.
Definition: epp_common.h:362
char * ext_enumval
Domain validation.
Definition: epp_common.h:464
#define NS_FRED
Our custom namespace used for extensions definition.
Definition: epp_xmlcommon.h:43
Info nsset parameters.
Definition: epp_common.h:613
epp_command_type type
Identification of epp command.
Definition: epp_common.h:929
#define q_content(_qhead)
Get content of current item.
Definition: epp_common.h:321
#define WRITE_ELEMENT(writer, err_handler, elem, str)
Wrapper around libxml's xmlTestWriterWriteElement() function.
Definition: epp_gen.c:73
char * exDate
Expiration date of domain.
Definition: epp_common.h:760
unsigned char protocol
= 3
Definition: epp_common.h:430
char * handle
Id of wanted nsset (output).
Definition: epp_common.h:616
char * crDate
Creation date.
Definition: epp_common.h:621
@ pt_techcheck
Technical check results.
Definition: epp_common.h:518
union epp_ext_item::@1 ext
Extension.
@ pt_delete_domain
Domain was deleted.
Definition: epp_common.h:525
qhead zonecredits
List of credits for individual zones.
Definition: epp_common.h:872
qhead tech
List of technical contacts for nsset.
Definition: epp_common.h:627
static char gen_info_contact(xmlTextWriterPtr writer, epps_info_contact *info_contact, const eppd_server_xml_conf *xml_schema)
This is assistant function for generating info contact <resData> xml subtree.
Definition: epp_gen.c:238
char * PostalCode
postal code
Definition: epp_common.h:476
char * upDate
Last updated.
Definition: epp_common.h:623