Files
pokerth/src/third_party/asn1/AuthMessage.c
T

81 lines
2.6 KiB
C
Raw Normal View History

2009-10-10 20:30:35 +00:00
/*
2010-11-28 00:14:03 +00:00
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
2009-10-10 20:30:35 +00:00
* From ASN.1 module "POKERTH-PROTOCOL"
* found in "../../../docs/pokerth.asn1"
2010-08-01 19:51:34 +00:00
* `asn1c -fskeletons-copy`
2009-10-10 20:30:35 +00:00
*/
#include "AuthMessage.h"
static asn_TYPE_member_t asn_MBR_AuthMessage_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerChallenge),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AuthServerChallenge,
0, /* Defer constraints checking to the member type */
0, /* PER is not compiled, use -gen-PER */
0,
"authServerChallenge"
},
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authClientResponse),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AuthClientResponse,
0, /* Defer constraints checking to the member type */
0, /* PER is not compiled, use -gen-PER */
0,
"authClientResponse"
},
{ ATF_NOFLAGS, 0, offsetof(struct AuthMessage, choice.authServerVerification),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_AuthServerVerification,
0, /* Defer constraints checking to the member type */
0, /* PER is not compiled, use -gen-PER */
0,
"authServerVerification"
},
};
static ber_tlv_tag_t asn_DEF_AuthMessage_tags_1[] = {
(ASN_TAG_CLASS_APPLICATION | (2 << 2))
2009-10-10 20:30:35 +00:00
};
static asn_TYPE_tag2member_t asn_MAP_AuthMessage_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* authServerChallenge at 127 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authClientResponse at 128 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* authServerVerification at 130 */
2009-10-10 20:30:35 +00:00
};
static asn_CHOICE_specifics_t asn_SPC_AuthMessage_specs_1 = {
sizeof(struct AuthMessage),
offsetof(struct AuthMessage, _asn_ctx),
offsetof(struct AuthMessage, present),
sizeof(((struct AuthMessage *)0)->present),
asn_MAP_AuthMessage_tag2el_1,
3, /* Count of tags in the map */
0,
3 /* Extensions start */
};
asn_TYPE_descriptor_t asn_DEF_AuthMessage = {
"AuthMessage",
"AuthMessage",
CHOICE_free,
CHOICE_print,
CHOICE_constraint,
CHOICE_decode_ber,
CHOICE_encode_der,
CHOICE_decode_xer,
CHOICE_encode_xer,
0, 0, /* No PER support, use "-gen-PER" to enable */
CHOICE_outmost_tag,
asn_DEF_AuthMessage_tags_1,
sizeof(asn_DEF_AuthMessage_tags_1)
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
asn_DEF_AuthMessage_tags_1, /* Same as above */
sizeof(asn_DEF_AuthMessage_tags_1)
/sizeof(asn_DEF_AuthMessage_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_AuthMessage_1,
3, /* Elements count */
&asn_SPC_AuthMessage_specs_1 /* Additional specs */
};