55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
|
|
||
|
|
||
|
//
|
||
|
// http://tools.ietf.org/html/draft-tan-epp-launchphase-12
|
||
|
//
|
||
|
|
||
|
typedef
|
||
|
struct {
|
||
|
int n;
|
||
|
const char **names;
|
||
|
}
|
||
|
eppArgDefs;
|
||
|
|
||
|
|
||
|
const char *cmdNames[9] = { "check", "info", "poll", "transfer query",
|
||
|
"create", "renew", "update", "delete", "transfer" };
|
||
|
|
||
|
static eppArgDefs eppArgs[9];
|
||
|
|
||
|
const char *checkArgs[3] = { "domain", "launch phase", "claim type" };
|
||
|
const char *infoArgs[8] = { "name", "roid", "status", "registrant", "contact admin", "contact tech",
|
||
|
"*clID", "phase" };
|
||
|
const char *pollArgs[1] = { "clTRID" };
|
||
|
const char *transferQueryArgs[2] = { "domain", "phase" };
|
||
|
const char *createArgs[2] = { "domain", "phase" };
|
||
|
const char *renewArgs[2] = { "domain", "phase" };
|
||
|
const char *updateArgs[2] = { "*ns", "phase" };
|
||
|
const char *deleteArgs[2] = { "domain", "phase" };
|
||
|
const char *transferArgs[2] = { "domain", "phase" };
|
||
|
|
||
|
void initEPPArgs() {
|
||
|
|
||
|
eppArgs[0].n = 3;
|
||
|
eppArgs[0].names = checkArgs;
|
||
|
eppArgs[1].n = 8;
|
||
|
eppArgs[1].names = infoArgs;
|
||
|
eppArgs[2].n = 1;
|
||
|
eppArgs[2].names = pollArgs;
|
||
|
eppArgs[3].n = 2;
|
||
|
eppArgs[3].names = transferQueryArgs;
|
||
|
eppArgs[4].n = 2;
|
||
|
eppArgs[4].names = createArgs;
|
||
|
eppArgs[5].n = 2;
|
||
|
eppArgs[5].names = renewArgs;
|
||
|
eppArgs[6].n = 2;
|
||
|
eppArgs[6].names = updateArgs;
|
||
|
eppArgs[7].n = 2;
|
||
|
eppArgs[7].names = deleteArgs;
|
||
|
eppArgs[8].n = 2;
|
||
|
eppArgs[8].names = transferArgs;
|
||
|
|
||
|
}
|
||
|
|
||
|
|