fred-mod-eppd-2.16.0
epp_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 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, version 2 of the License.
9  *
10  * FRED is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FRED. If not, see <http://www.gnu.org/licenses/>.
17  */
27 #ifndef EPP_COMMON_H
28 #define EPP_COMMON_H
29 
31 typedef enum {
32  EPP_FATAL = 1,
37 } epp_loglevel;
38 
44 typedef struct
45 {
46  void *pool;
47  void *conn;
48  int session;
49 } epp_context;
50 
55 typedef enum {
56  EPP_UNKNOWN_CMD = 0,
57  /*
58  * 'dummy' is not a command from point of view of epp client, but is
59  * command from central repository's point of view
60  */
61  EPP_DUMMY,
62  /* session commands */
63  EPP_LOGIN,
64  EPP_LOGOUT,
65  /* query commands */
66  EPP_CHECK_CONTACT,
67  EPP_CHECK_DOMAIN,
68  EPP_CHECK_NSSET,
69  EPP_CHECK_KEYSET,
70  EPP_INFO_CONTACT,
71  EPP_INFO_DOMAIN,
72  EPP_INFO_NSSET,
73  EPP_INFO_KEYSET,
74  EPP_LIST_CONTACT,
75  EPP_LIST_DOMAIN,
76  EPP_LIST_NSSET,
77  EPP_LIST_KEYSET,
78  EPP_POLL_REQ,
79  EPP_POLL_ACK,
80  /* transform commands */
81  EPP_CREATE_CONTACT,
82  EPP_CREATE_DOMAIN,
83  EPP_CREATE_NSSET,
84  EPP_CREATE_KEYSET,
85  EPP_DELETE_CONTACT,
86  EPP_DELETE_DOMAIN,
87  EPP_DELETE_NSSET,
88  EPP_DELETE_KEYSET,
89  EPP_UPDATE_CONTACT,
90  EPP_UPDATE_DOMAIN,
91  EPP_UPDATE_NSSET,
92  EPP_UPDATE_KEYSET,
93  EPP_TRANSFER_CONTACT,
94  EPP_TRANSFER_DOMAIN,
95  EPP_TRANSFER_NSSET,
96  EPP_TRANSFER_KEYSET,
97  EPP_RENEW_DOMAIN,
98  /* protocol extensions */
99  EPP_SENDAUTHINFO_CONTACT,
100  EPP_SENDAUTHINFO_DOMAIN,
101  EPP_SENDAUTHINFO_NSSET,
102  EPP_SENDAUTHINFO_KEYSET,
103  EPP_TEST_NSSET,
104  EPP_CREDITINFO,
105  /* info functions */
106  EPP_INFO_LIST_CONTACTS,
107  EPP_INFO_LIST_DOMAINS,
108  EPP_INFO_LIST_NSSETS,
109  EPP_INFO_LIST_KEYSETS,
110  EPP_INFO_DOMAINS_BY_NSSET,
111  EPP_INFO_DOMAINS_BY_KEYSET,
112  EPP_INFO_DOMAINS_BY_CONTACT,
113  EPP_INFO_NSSETS_BY_CONTACT,
114  EPP_INFO_NSSETS_BY_NS,
115  EPP_INFO_KEYSETS_BY_CONTACT,
116  EPP_INFO_GET_RESULTS
118 
122 typedef enum { EPP_EXT_ENUMVAL, EPP_EXT_MAILING_ADDR } epp_ext_type;
123 
127 typedef enum {
128  EPP_UNKNOWN_OBJ = 0,
129  EPP_CONTACT,
130  EPP_DOMAIN,
131  EPP_NSSET,
132  EPP_KEYSET
134 
138 typedef enum {
139  LANG_EN = 0,
140  LANG_CS,
141 } epp_lang;
142 
150 typedef enum {
151  errspec_poll_msgID = 0,
152  errspec_contact_handle,
153  errspec_contact_cc,
154  errspec_nsset_handle,
155  errspec_nsset_tech,
156  errspec_nsset_dns_name,
157  errspec_nsset_dns_addr,
158  errspec_nsset_dns_name_add,
159  errspec_nsset_dns_name_rem,
160  errspec_nsset_tech_add,
161  errspec_nsset_tech_rem,
162  errspec_keyset_handle,
163  errspec_keyset_tech,
164  errspec_keyset_dnskey,
165  errspec_keyset_dnskey_add,
166  errspec_keyset_dnskey_rem,
167  errspec_keyset_tech_add,
168  errspec_keyset_tech_rem,
169  errspec_registrar_author,
170  errspec_domain_fqdn,
171  errspec_domain_registrant,
172  errspec_domain_nsset,
173  errspec_domain_keyset,
174  errspec_domain_period,
175  errspec_domain_admin,
176  errspec_domain_tmpcontact,
177  errspec_domain_ext_valDate,
178  errspec_domain_ext_valDate_missing,
179  errspec_domain_curExpDate,
180  errspec_domain_admin_add,
181  errspec_domain_admin_rem,
182  /* input errors */
183  errspec_not_valid,
184  errspec_poll_msgID_missing,
185  errspec_contact_identtype_missing,
186  errspec_transfer_op
187 } epp_errorspec;
188 
196 typedef struct
197 {
199  char *value;
214  char *reason;
216  int position;
217 } epp_error;
218 
225 typedef enum
226 {
227  incorrect_epp_action_type = 0,
228  ClientLogin = 100,
229  ClientLogout = 101,
230  ClientGreeting = 105,
231  PollAcknowledgement = 120,
232  PollResponse = 121,
233  ContactCheck = 200,
234  ContactInfo = 201,
235  ContactDelete = 202,
236  ContactUpdate = 203,
237  ContactCreate = 204,
238  ContactTransfer = 205,
239  NSsetCheck = 400,
240  NSsetInfo = 401,
241  NSsetDelete = 402,
242  NSsetUpdate = 403,
243  NSsetCreate = 404,
244  NSsetTransfer = 405,
245  DomainCheck = 500,
246  DomainInfo = 501,
247  DomainDelete = 502,
248  DomainUpdate = 503,
249  DomainCreate = 504,
250  DomainTransfer = 505,
251  DomainRenew = 506,
252  DomainTrade = 507,
253  KeysetCheck = 600,
254  KeysetInfo = 601,
255  KeysetDelete = 602,
256  KeysetUpdate = 603,
257  KeysetCreate = 604,
258  KeysetTransfer = 605,
259  UnknownAction = 1000,
260  ListContact = 1002,
261  ListNSset = 1004,
262  ListDomain = 1005,
263  ListKeySet = 1006,
264  ClientCredit = 1010,
265  nssetTest = 1012,
266  ContactSendAuthInfo = 1101,
267  NSSetSendAuthInfo = 1102,
268  DomainSendAuthInfo = 1103,
269  KeySetSendAuthInfo = 1106,
270  InfoListContacts = 1200,
271  InfoListDomains = 1201,
272  InfoListNssets = 1202,
273  InfoListKeysets = 1203,
274  InfoDomainsByNsset = 1204,
275  InfoDomainsByKeyset = 1205,
276  InfoDomainsByContact = 1206,
277  InfoNssetsByContact = 1207,
278  InfoNssetsByNs = 1208,
279  InfoKeysetsByContact = 1209,
280  InfoGetResults = 1210
282 
291 typedef struct qitem
292 {
293  struct qitem *next;
294  void *content;
295 } qitem;
296 
302 typedef struct
303 {
304  int count;
307 } qhead;
308 
310 #define q_length(_qhead) ((_qhead).count)
311 
312 #define q_next(_qhead) ((_qhead)->cur = ((_qhead)->cur) ? (_qhead)->cur->next : NULL)
313 
314 #define q_content(_qhead) ((_qhead)->cur->content)
315 
316 #define q_reset(_qhead) ((_qhead)->cur = (_qhead)->body)
317 
321 #define q_foreach(_qhead) \
322  for ((_qhead)->cur = (_qhead)->body; (_qhead)->cur != NULL; (_qhead)->cur = (_qhead)->cur->next)
323 
331 int q_add(void *pool, qhead *head, void *data);
332 
336 /* ********************************************************************* */
337 
338 
342 typedef struct
343 {
344  char *value;
345  char *text;
346 } epp_status;
347 
351 typedef struct
352 {
353  char *name;
354  char *org;
356  char *city;
357  char *sp;
358  char *pc;
359  char *cc;
361 
370 typedef struct
371 {
380  char flag;
381  unsigned char name;
382  unsigned char org;
383  unsigned char addr;
384  unsigned char voice;
385  unsigned char fax;
386  unsigned char email;
387  unsigned char vat;
388  unsigned char ident;
390  unsigned char notifyEmail;
391 } epp_discl;
392 
396 typedef struct
397 {
398  char *name;
400 } epp_ns;
401 
403 typedef struct
404 {
405  unsigned short flags;
406  unsigned char protocol;
407  unsigned char alg;
408  char *public_key;
409 } epp_dnskey;
410 
412 typedef enum {
419 } epp_identType;
420 
421 typedef enum { TIMEUNIT_MONTH, TIMEUNIT_YEAR } epp_timeunit;
422 
424 typedef struct
425 {
426  int avail;
427  char *reason;
428 } epp_avail;
429 
431 typedef struct
432 {
433  char *zone;
434  char *credit;
436 
437 typedef struct
438 {
439  char *ext_enumval;
440  int publish;
442 } epp_ext_enum;
443 
444 typedef struct
445 {
446  char *Street1;
447  char *Street2;
448  char *Street3;
449  char *City;
451  char *PostalCode;
452  char *CountryCode;
454 
455 typedef enum { mailing_addr_info, mailing_addr_set, mailing_addr_remove } epp_mailingAddrCommand;
456 
459 typedef struct
460 {
462 
463 typedef struct
464 {
465  epp_mailingAddrCommand command;
466  union
467  {
471  } data;
473 
474 
475 typedef struct
476 {
478  union
479  {
482  } ext;
483 } epp_ext_item;
484 
486 typedef enum {
506 } epp_pollType;
507 
509 typedef struct
510 {
511  char *testname;
512  int status;
513  char *note;
515 
516 /* ********************************************************************* */
517 
518 
520 typedef struct
521 {
522  char *clID;
523  char *pw;
524  char *newPW;
527  unsigned lang;
528 } epps_login;
529 
531 typedef struct
532 {
535 } epps_check;
536 
538 typedef struct
539 {
540  char *id;
541  char *handle;
542  char *roid;
545  char *voice;
546  char *fax;
547  char *email;
548  char *clID;
549  char *crID;
550  char *crDate;
551  char *upID;
552  char *upDate;
553  char *trDate;
554  char *authInfo;
556  char *vat;
557  char *ident;
559  char *notify_email;
562 
564 typedef struct
565 {
566  char *name;
567  char *handle;
568  char *roid;
570  char *registrant;
573  char *nsset;
574  char *keyset;
575  char *clID;
576  char *crID;
577  char *crDate;
578  char *exDate;
579  char *upID;
580  char *upDate;
581  char *trDate;
582  char *authInfo;
585 
587 typedef struct
588 {
589  char *id;
590  char *handle;
591  char *roid;
593  char *clID;
594  char *crID;
595  char *crDate;
596  char *upID;
597  char *upDate;
598  char *trDate;
599  char *authInfo;
602  int level;
604 
606 typedef struct
607 {
608  char *id;
609  char *handle;
610  char *roid;
612  char *clID;
613  char *crID;
614  char *crDate;
615  char *upID;
616  char *upDate;
617  char *trDate;
618  char *authInfo;
622 
624 typedef struct
625 {
626  unsigned long long count;
627  char *msgid;
628  char *qdate;
630  union
631  {
632  char *handle;
633  struct
634  {
635  char *handle;
636  char *date;
637  char *clID;
638  } hdt;
639  struct
640  {
641  char *handle;
642  char *date;
643  } hd;
644  struct
645  {
646  char *handle;
647  qhead fqdns;
648  qhead tests;
649  } tc;
650  struct
651  {
652  char *zone;
653  char *limit;
654  char *credit;
655  } lc;
656  struct
657  {
658  char *period_from;
659  char *period_to;
660  unsigned long long total_free_count;
661  unsigned long long used_count;
662  char *price;
663  } rfi;
664  struct
665  {
666  char *optrid;
667  unsigned long long pollid;
668  epps_info_domain old_data;
669  epps_info_domain new_data;
670  } upd;
671  struct
672  {
673  char *optrid;
674  unsigned long long pollid;
675  epps_info_nsset old_data;
676  epps_info_nsset new_data;
677  } upn;
678  struct
679  {
680  char *optrid;
681  unsigned long long pollid;
682  epps_info_keyset old_data;
683  epps_info_keyset new_data;
684  } upk;
685  } msg;
686 } epps_poll_req;
687 
689 typedef struct
690 {
691  char *msgid;
692  unsigned long long count;
693  char *newmsgid;
694 } epps_poll_ack;
695 
697 typedef struct
698 {
699  char *id;
701  char *voice;
702  char *fax;
703  char *email;
704  char *authInfo;
706  char *vat;
707  char *ident;
709  char *notify_email;
710  char *crDate;
713 
715 typedef struct
716 {
717  char *name;
718  char *registrant;
720  char *nsset;
721  char *keyset;
722  int period;
723  epp_timeunit unit;
724  char *authInfo;
726  char *crDate;
727  char *exDate;
729 
731 typedef struct
732 {
733  char *id;
734  char *authInfo;
737  char *crDate;
738  int level;
740 
742 typedef struct
743 {
744  char *id;
745  char *authInfo;
748  char *crDate;
750 
752 typedef struct
753 {
754  char *id;
755 } epps_delete;
756 
758 typedef struct
759 {
760  char *name;
761  char *curExDate;
762  int period;
763  epp_timeunit unit;
765  char *exDate;
766 } epps_renew;
767 
769 typedef struct
770 {
771  char *id;
773  char *voice;
774  char *fax;
775  char *email;
776  char *authInfo;
778  char *vat;
779  char *ident;
781  char *notify_email;
784 
786 typedef struct
787 {
788  char *name;
789  char *registrant;
793  char *nsset;
794  char *keyset;
795  char *authInfo;
798 
800 typedef struct
801 {
802  char *id;
807  char *authInfo;
808  int level;
810 
812 typedef struct
813 {
814  char *id;
819  char *authInfo;
821 
823 typedef struct
824 {
825  char *id;
826  char *authInfo;
827 } epps_transfer;
828 
830 typedef struct
831 {
832  char *id;
834 
836 typedef struct
837 {
840 
842 typedef struct
843 {
844  char *id;
846  int level;
847 } epps_test;
848 
850 typedef struct
851 {
853 } epps_list;
854 
860 typedef struct
861 {
862  char *handle;
863  unsigned int count;
864 } epps_info;
865 
875 typedef struct
876 {
877  char *clTRID;
878  char *svTRID;
879  int rc;
880  char *msg;
881  char *xml_in;
883  /* parsed_doc and xpath_ctx are needed for error reporting. */
884  void *parsed_doc;
885  void *xpath_ctx;
887  short noresdata;
890 
900  void *data;
902 
903 
904 /* ********************************************************************* */
905 
913 void epplog(epp_context *epp_ctx, epp_loglevel level, const char *fmt, ...);
914 
931 void *epp_malloc(void *pool, unsigned size);
932 
940 void *epp_calloc(void *pool, unsigned size);
941 
950 char *epp_strdup(void *pool, const char *str);
951 
964 char *epp_strcat(void *pool, const char *str1, const char *str2);
965 
973 char *epp_sprintf(void *pool, const char *fmt, ...);
974 
979 #endif /* EPP_COMMON_H */
qhead tech
List of technical contacts for keyset.
Definition: epp_common.h:747
char * id
Id of wanted contact (input).
Definition: epp_common.h:540
unsigned char alg
algorithm type
Definition: epp_common.h:407
Queue item type.
Definition: epp_common.h:291
char * credit
Credit.
Definition: epp_common.h:434
Definition: epp_common.h:463
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:780
qhead admin
Admin contact for domain.
Definition: epp_common.h:719
char * Street2
street - line #2
Definition: epp_common.h:447
char * xml_in
XML as it is received from client.
Definition: epp_common.h:881
char flag
Value 1 means following items are exception to server policy, which is assumed to be private (hide al...
Definition: epp_common.h:380
char * crDate
Creation date of nsset.
Definition: epp_common.h:737
char * authInfo
Authorization information.
Definition: epp_common.h:618
ICO.
Definition: epp_common.h:417
qhead extensions
List of extensions.
Definition: epp_common.h:560
char * authInfo
Authorization information.
Definition: epp_common.h:724
The struct represents one epp error in ExtValue element.
Definition: epp_common.h:196
char * clID
Owner&#39;s ID.
Definition: epp_common.h:593
unsigned int count
Count of results.
Definition: epp_common.h:863
char * zone
True if object is available, false otherwise.
Definition: epp_common.h:433
Technical check results.
Definition: epp_common.h:493
char * msg
Text message coresponding to return code.
Definition: epp_common.h:880
char * city
City.
Definition: epp_common.h:356
Number of passport.
Definition: epp_common.h:415
char * authInfo
Authorization information.
Definition: epp_common.h:776
char * reason
If object is not available, here is the reason.
Definition: epp_common.h:427
qhead extensions
List of domain extensions.
Definition: epp_common.h:583
int period
Renew period.
Definition: epp_common.h:762
char * exDate
Expiration date of domain.
Definition: epp_common.h:727
epp_ext_mailingAddr ext_mailing_addr
Extensions for mailing contact addresses.
Definition: epp_common.h:481
char * id
Id of wanted keyset (input).
Definition: epp_common.h:744
Domain changed.
Definition: epp_common.h:503
Delete parameters.
Definition: epp_common.h:752
qitem * cur
Currently selected item.
Definition: epp_common.h:306
qhead rem_tech
Technical contacts to be removed.
Definition: epp_common.h:816
qhead extensions
List of domain extensions.
Definition: epp_common.h:764
Errors which are not serious but should be logged.
Definition: epp_common.h:34
qhead status
Keyset&#39;s status.
Definition: epp_common.h:611
Definition: epp_common.h:475
char * upID
ID of last updater.
Definition: epp_common.h:551
Info nsset parameters.
Definition: epp_common.h:587
char * nsset
Nsset of domain.
Definition: epp_common.h:720
qhead tech
List of technical contacts for nsset.
Definition: epp_common.h:601
char * roid
ROID of object.
Definition: epp_common.h:610
Error, the module is not in operational state.
Definition: epp_common.h:32
char * curExDate
Current expiration date.
Definition: epp_common.h:761
char * epp_strdup(void *pool, const char *str)
Duplicate string from argument, the memory will be allocated from memory pool.
Definition: mod_eppd.c:236
int publish
Flag determining if this domain can be published in the ENUM dictionary.
Definition: epp_common.h:440
char * svTRID
server&#39;s TRID
Definition: epp_common.h:878
qhead zonecredits
List of credits for individual zones.
Definition: epp_common.h:838
qhead addr
List of ip addresses.
Definition: epp_common.h:399
Domain expired.
Definition: epp_common.h:496
unsigned char org
Contact&#39;s organization is exceptional.
Definition: epp_common.h:382
qhead handles
List of handles.
Definition: epp_common.h:852
char * id
Id of wanted nsset (input).
Definition: epp_common.h:733
char * registrant
Registrant of domain.
Definition: epp_common.h:570
This is the default log level.
Definition: epp_common.h:35
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:788
char * nsset
Nsset of domain.
Definition: epp_common.h:793
Credit of registrator is low.
Definition: epp_common.h:501
void * conn
Connection handler.
Definition: epp_common.h:47
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:626
Poll acknoledge parameters.
Definition: epp_common.h:689
qhead tech
List of technical contacts for keyset.
Definition: epp_common.h:620
char * upDate
Last updated.
Definition: epp_common.h:552
unsigned long long count
Count of waiting messages.
Definition: epp_common.h:692
char * upDate
Last updated.
Definition: epp_common.h:597
epp_postalInfo pi
Postal info.
Definition: epp_common.h:700
char * value
Status name.
Definition: epp_common.h:344
epp_postalInfo pi
Postal info.
Definition: epp_common.h:544
Structure for holding status&#39; names and values.
Definition: epp_common.h:342
char * vat
VAT tax ID.
Definition: epp_common.h:706
char * ext_enumval
Domain validation.
Definition: epp_common.h:439
epp_ext_type
Enumeration of implemented extensions.
Definition: epp_common.h:122
char * fax
Fax number.
Definition: epp_common.h:774
char * name
Name.
Definition: epp_common.h:353
qhead extensions
List of extensions.
Definition: epp_common.h:782
int position
Position of faulty element if it is part of list.
Definition: epp_common.h:216
epp_discl discl
Disclose information section.
Definition: epp_common.h:705
This structure is central to the concept of the whole module.
Definition: epp_common.h:875
qhead rem_admin
Admin contacts to be removed.
Definition: epp_common.h:791
char * notify_email
Notification email.
Definition: epp_common.h:559
char * voice
Telephone number.
Definition: epp_common.h:545
Domain was deleted.
Definition: epp_common.h:500
char * exDate
Expiration date.
Definition: epp_common.h:578
char * crDate
Creation date.
Definition: epp_common.h:614
Structure holding answer to EPP check command.
Definition: epp_common.h:424
Error caused usually by client, module is operational.
Definition: epp_common.h:33
unsigned char email
Contact&#39;s email address is exceptional.
Definition: epp_common.h:386
char * trDate
Last transfered.
Definition: epp_common.h:598
Domain validation will expire soon.
Definition: epp_common.h:497
Info keyset parameters.
Definition: epp_common.h:606
char * upDate
Last updated.
Definition: epp_common.h:616
char * authInfo
Authorization information.
Definition: epp_common.h:826
epp_action_type
EPP action types for now only a copy of current enum_action.
Definition: epp_common.h:225
qhead exturi
currently not used
Definition: epp_common.h:526
epp_timeunit unit
Registration period&#39;s unit.
Definition: epp_common.h:723
Structure holding answer to EPP creditInfo command.
Definition: epp_common.h:431
char * authInfo
Authorization information.
Definition: epp_common.h:734
Requests price/count info.
Definition: epp_common.h:502
Create nsset parameters.
Definition: epp_common.h:731
char * handle
Id of wanted nsset (output).
Definition: epp_common.h:590
char * Street3
street - line #3
Definition: epp_common.h:448
Contact was deleted because not used.
Definition: epp_common.h:488
void * xpath_ctx
XPath context.
Definition: epp_common.h:885
qhead keys
List of DNS Key records.
Definition: epp_common.h:619
Domain validation expired.
Definition: epp_common.h:498
Date of birth.
Definition: epp_common.h:418
unsigned short flags
key properties.
Definition: epp_common.h:405
char * upDate
Last updated.
Definition: epp_common.h:580
char * registrant
Registrant of domain.
Definition: epp_common.h:718
epp_identType
Type of identification number used in contact object.
Definition: epp_common.h:412
char * id
Handle of object.
Definition: epp_common.h:832
char * crDate
Creation date.
Definition: epp_common.h:595
qhead extensions
List of extensions.
Definition: epp_common.h:711
char * reason
Human readable reason of error.
Definition: epp_common.h:214
qhead tech
List of technical contacts for nsset.
Definition: epp_common.h:736
char * crDate
Creation date of contact.
Definition: epp_common.h:710
char * id
Id of transfered object.
Definition: epp_common.h:825
char * roid
ROID of object.
Definition: epp_common.h:542
char * id
Id of wanted nsset (input).
Definition: epp_common.h:589
char * PostalCode
postal code
Definition: epp_common.h:451
char * authInfo
Authorization information.
Definition: epp_common.h:582
char * clTRID
client&#39;s TRID
Definition: epp_common.h:877
char * ident
Contact&#39;s unique ident.
Definition: epp_common.h:779
char * msgid
ID of acknoledged message.
Definition: epp_common.h:691
char * trDate
Last transfered.
Definition: epp_common.h:553
Create contact parameters.
Definition: epp_common.h:697
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:254
unsigned lang
Language.
Definition: epp_common.h:527
char * handle
Search key.
Definition: epp_common.h:862
char * keyset
Keyset for domain.
Definition: epp_common.h:574
Nsset was transferred.
Definition: epp_common.h:489
int level
Report level.
Definition: epp_common.h:602
Domain was transferred.
Definition: epp_common.h:494
char * voice
Telephone number.
Definition: epp_common.h:701
qhead errors
List of validation errors or errors from central repository.
Definition: epp_common.h:889
char * trDate
Last transfered.
Definition: epp_common.h:581
Test parameters.
Definition: epp_common.h:842
Update contact parameters.
Definition: epp_common.h:769
KeySet was transferred.
Definition: epp_common.h:491
char * id
Id of wanted contact (input).
Definition: epp_common.h:699
KeySet was deleted because not used.
Definition: epp_common.h:492
int level
Report level.
Definition: epp_common.h:738
NSSet changed.
Definition: epp_common.h:504
Number of ID card.
Definition: epp_common.h:414
epp_ext_enum ext_enum
Extensions for ENUM.
Definition: epp_common.h:480
qhead extensions
List of domain extensions.
Definition: epp_common.h:725
Definition: epp_common.h:459
char * id
Id of wanted keyset (input).
Definition: epp_common.h:814
char * cc
Country code.
Definition: epp_common.h:359
char * qdate
Date of message submission.
Definition: epp_common.h:628
KeySet changed.
Definition: epp_common.h:505
char * id
Id of wanted keyset (input).
Definition: epp_common.h:608
qhead ns
List of nameservers.
Definition: epp_common.h:735
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:558
char * handle
Id of wanted keyset (output).
Definition: epp_common.h:609
char * id
ID of tested nsset.
Definition: epp_common.h:844
char * notify_email
Notification email.
Definition: epp_common.h:781
void * epp_calloc(void *pool, unsigned size)
Allocate memory from memory pool and prezero it.
Definition: mod_eppd.c:218
Create domain parameters.
Definition: epp_common.h:715
unsigned char protocol
= 3
Definition: epp_common.h:406
DNS Key record - http://rfc-ref.org/RFC-TEXTS/4034/chapter2.html.
Definition: epp_common.h:403
char * pw
Password.
Definition: epp_common.h:523
Contact was transferred.
Definition: epp_common.h:487
Parameters of obsolete command &#39;list&#39; and getResults command.
Definition: epp_common.h:850
Login parameters.
Definition: epp_common.h:520
void * pool
Pool for allocations.
Definition: epp_common.h:46
char * id
ID of object to be deleted.
Definition: epp_common.h:754
SendAuthInfo parameters.
Definition: epp_common.h:830
char * roid
ROID of object.
Definition: epp_common.h:568
char * epp_sprintf(void *pool, const char *fmt,...)
Print formatted string.
Definition: mod_eppd.c:271
char * clID
Owner&#39;s ID.
Definition: epp_common.h:612
epp_pollType
Type of poll message.
Definition: epp_common.h:486
Structure gathers postal info about contact.
Definition: epp_common.h:351
Update keyset parameters.
Definition: epp_common.h:812
epp_timeunit unit
Registration period&#39;s unit.
Definition: epp_common.h:763
char * exDate
New expiration date.
Definition: epp_common.h:765
qhead ids
IDs of checked objects.
Definition: epp_common.h:533
qhead add_ns
Nameservers to be added.
Definition: epp_common.h:805
char * authInfo
Authorization information.
Definition: epp_common.h:795
char * City
city
Definition: epp_common.h:449
Check contact, domain and nsset parameters.
Definition: epp_common.h:531
qhead names
Fqdns of domains to be tested with nsset.
Definition: epp_common.h:845
Info contact parameters.
Definition: epp_common.h:538
epp_ext_type extType
Identifier of extension.
Definition: epp_common.h:477
char * org
Organization.
Definition: epp_common.h:354
EPP context is a group of variables used often together.
Definition: epp_common.h:44
char * crDate
Creation date of domain.
Definition: epp_common.h:726
char * StateOrProvince
state or province
Definition: epp_common.h:450
unsigned char vat
Contact&#39;s VAT is exceptional.
Definition: epp_common.h:387
epp_discl discl
Disclose information section.
Definition: epp_common.h:777
Update domain parameters.
Definition: epp_common.h:786
char * vat
VAT tax ID.
Definition: epp_common.h:778
char * email
Email address.
Definition: epp_common.h:775
void * parsed_doc
Parsed XML document tree.
Definition: epp_common.h:884
char * Street1
street - line #1
Definition: epp_common.h:446
epp_lang
definition of languages (english is default)
Definition: epp_common.h:138
char * crID
ID of creator.
Definition: epp_common.h:576
char * fax
Fax number.
Definition: epp_common.h:702
Disclose information of contact.
Definition: epp_common.h:370
epp_errorspec spec
Specification of surrounding XML tags.
Definition: epp_common.h:205
int level
Report level.
Definition: epp_common.h:808
unsigned char voice
Contact&#39;s voice (tel.
Definition: epp_common.h:384
qhead rem_tmpcontact
Temporary contact used for migration.
Definition: epp_common.h:792
epp_identType identtype
Type of unique ident.
Definition: epp_common.h:708
qhead streets
3x street.
Definition: epp_common.h:355
char * authInfo
Authorization information.
Definition: epp_common.h:554
epp_errorspec
In case that central repository finds out that some parameter is bad, there has to be way how to prop...
Definition: epp_common.h:150
unsigned char ident
Contact&#39;s ident is exceptional.
Definition: epp_common.h:388
char * email
Email address.
Definition: epp_common.h:703
qhead add_dnskey
DNSKEYs to be added.
Definition: epp_common.h:817
char * handle
FQDN of wanted domain (output).
Definition: epp_common.h:567
char * CountryCode
country code - 2 char ISO country code
Definition: epp_common.h:452
qhead rem_ns
Nameservers to be removed.
Definition: epp_common.h:806
char * crDate
Creation date.
Definition: epp_common.h:550
Number assigned by "ministry of work and ...".
Definition: epp_common.h:416
char * registrant
Registrant of domain.
Definition: epp_common.h:789
char * voice
Telephone number.
Definition: epp_common.h:773
char * clID
Owner&#39;s ID.
Definition: epp_common.h:548
qhead add_tech
Technical contacts to be added.
Definition: epp_common.h:803
unsigned char notifyEmail
Contact&#39;s notification emai is exceptional.
Definition: epp_common.h:390
Renew domain parameters.
Definition: epp_common.h:758
short noresdata
True if there should be no resdata section or msgQ section.
Definition: epp_common.h:887
char * authInfo
Authorization information.
Definition: epp_common.h:704
char * newmsgid
ID of first message in a queue.
Definition: epp_common.h:693
char * sp
State or province.
Definition: epp_common.h:357
epp_command_type
Enumeration of codes of all EPP commands this module is able to handle.
Definition: epp_common.h:55
void * content
Pointer to content of item.
Definition: epp_common.h:294
char * trDate
Last transfered.
Definition: epp_common.h:617
char * clID
Client ID.
Definition: epp_common.h:522
char * pc
Postal code.
Definition: epp_common.h:358
Nsset was deleted because not used.
Definition: epp_common.h:490
char * crDate
Creation date of keyset.
Definition: epp_common.h:748
char * crID
ID of creator.
Definition: epp_common.h:613
Domain was outaged from zone.
Definition: epp_common.h:499
unsigned char fax
Contact&#39;s fax number is exceptional.
Definition: epp_common.h:385
qhead tmpcontact
Temporary contact used for migration.
Definition: epp_common.h:571
char * authInfo
Authorization information.
Definition: epp_common.h:745
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:566
char * crID
ID of creator.
Definition: epp_common.h:549
void epplog(epp_context *epp_ctx, epp_loglevel level, const char *fmt,...)
Write a log message to eppd log file.
Definition: mod_eppd.c:307
Definition: epp_common.h:437
struct qitem qitem
Queue item type.
int level
Level of tests (-1 if not overriden).
Definition: epp_common.h:846
char * upID
ID of last updater.
Definition: epp_common.h:596
qhead admin
Admin contact for domain.
Definition: epp_common.h:572
qhead ns
List of nameservers.
Definition: epp_common.h:600
Poll request parameters.
Definition: epp_common.h:624
void * epp_malloc(void *pool, unsigned size)
Allocate memory from memory pool.
Definition: mod_eppd.c:200
qhead rem_tech
Technical contacts to be removed.
Definition: epp_common.h:804
char * id
Id of wanted nsset (input).
Definition: epp_common.h:802
char * email
Email address.
Definition: epp_common.h:547
char * nsset
Nsset of domain.
Definition: epp_common.h:573
epp_command_type type
Identification of epp command.
Definition: epp_common.h:895
Nameserver has a name and possibly more than one ip address.
Definition: epp_common.h:396
char * vat
VAT tax ID.
Definition: epp_common.h:556
char * name
fqdn of nameserver.
Definition: epp_common.h:398
qhead status
Nsset&#39;s status.
Definition: epp_common.h:592
char * newPW
New password.
Definition: epp_common.h:524
qhead avails
Booleans + reasons.
Definition: epp_common.h:534
All Info functions, which accept single key on input and count on output (domainsByNsset, domainsByContact, nssetsByContact, nssetsByNs).
Definition: epp_common.h:860
qhead rem_dnskey
DNSKEYs to be removed.
Definition: epp_common.h:818
qhead keys
List of DNS Key records.
Definition: epp_common.h:746
int avail
True if object is available, false otherwise.
Definition: epp_common.h:426
int rc
EPP return code defined in standard.
Definition: epp_common.h:879
char * text
Status value.
Definition: epp_common.h:345
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:30
unsigned char name
Contact&#39;s name is exceptional.
Definition: epp_common.h:381
qhead status
Domain&#39;s status.
Definition: epp_common.h:569
Contents of requests and responses are logged.
Definition: epp_common.h:36
Domain will expire in near future.
Definition: epp_common.h:495
Info domain parameters.
Definition: epp_common.h:564
Create keyset parameters.
Definition: epp_common.h:742
char * value
Client provided input which caused the error.
Definition: epp_common.h:199
char * authInfo
Authorization information.
Definition: epp_common.h:807
epp_object_type
Enumeration of EPP objects which this server operates on.
Definition: epp_common.h:127
char * name
FQDN of wanted domain (input).
Definition: epp_common.h:717
char * clID
Owner&#39;s ID.
Definition: epp_common.h:575
void * data
Command data (Input + output parameters for all possible epp commands).
Definition: epp_common.h:900
epp_postalInfo * pi
Postal info.
Definition: epp_common.h:772
char * msgid
ID of next message in a queue.
Definition: epp_common.h:627
char * handle
Id of wanted contact (output).
Definition: epp_common.h:541
char * name
Name of renewed domain.
Definition: epp_common.h:760
qhead add_admin
Admin contacts to be added.
Definition: epp_common.h:790
Queue structure used on countless places throughout the program.
Definition: epp_common.h:302
char * keyset
Keyset for domain.
Definition: epp_common.h:721
char * id
Id of wanted contact (input).
Definition: epp_common.h:771
Definition: epp_common.h:444
Update nsset parameters.
Definition: epp_common.h:800
char * upID
ID of last updater.
Definition: epp_common.h:615
char * notify_email
Notification email.
Definition: epp_common.h:709
char * ident
Contact&#39;s unique ident.
Definition: epp_common.h:557
char * crDate
Creation date.
Definition: epp_common.h:577
epp_loglevel
Log levels used for logging to eppd log file.
Definition: epp_common.h:31
qhead add_tech
Technical contacts to be added.
Definition: epp_common.h:815
qitem * body
Items in a queue.
Definition: epp_common.h:305
CreditInfo parameters.
Definition: epp_common.h:836
char * upID
ID of last updater.
Definition: epp_common.h:579
unsigned char addr
Contact&#39;s address is exceptional.
Definition: epp_common.h:383
char * authInfo
Authorization information.
Definition: epp_common.h:819
int count
Optimization for length() function.
Definition: epp_common.h:304
char * roid
ROID of object.
Definition: epp_common.h:591
struct qitem * next
Link to next item in a queue.
Definition: epp_common.h:293
int period
Registration period in months.
Definition: epp_common.h:722
qhead objuri
currently not used
Definition: epp_common.h:525
qhead status
Contact&#39;s status.
Definition: epp_common.h:543
char * authInfo
Authorization information.
Definition: epp_common.h:599
char * public_key
base64 encoded public key
Definition: epp_common.h:408
qhead extensions
List of domain extensions.
Definition: epp_common.h:796
char * crID
ID of creator.
Definition: epp_common.h:594
char * keyset
Keyset of domain.
Definition: epp_common.h:794
Unknown value can also mean undefined.
Definition: epp_common.h:413
Structure containing result of one technical test.
Definition: epp_common.h:509
Transfer parameters.
Definition: epp_common.h:823
char * ident
Contact&#39;s unique ident.
Definition: epp_common.h:707
char * fax
Fax number.
Definition: epp_common.h:546
epp_discl discl
Disclose information section.
Definition: epp_common.h:555
epp_pollType type
Type of poll message.
Definition: epp_common.h:629