/*
* The table below should be moved to the ODR structure itself and
* be an image of the association context: To help
/*
* The table below should be moved to the ODR structure itself and
* be an image of the association context: To help
encoding CHOICE {
single-ASN1-type [0] ABSTRACT_SYNTAX.&Type,
octet-aligned [1] IMPLICIT OCTET STRING,
encoding CHOICE {
single-ASN1-type [0] ABSTRACT_SYNTAX.&Type,
octet-aligned [1] IMPLICIT OCTET STRING,
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_userInfo1,
(Odr_fun)z_OtherInformation, 0},
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_userFacets,
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_userInfo1,
(Odr_fun)z_OtherInformation, 0},
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_userFacets,
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_charSetandLanguageNegotiation,
(Odr_fun)z_CharSetandLanguageNegotiation, 0},
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_acfPrompt1,
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_charSetandLanguageNegotiation,
(Odr_fun)z_CharSetandLanguageNegotiation, 0},
{ODR_EXPLICIT, ODR_CONTEXT, 0, Z_External_acfPrompt1,
Odr_oct *oct;
int r;
if (!odr_implicit_tag(o, odr_octetstring, &oct,
Odr_oct *oct;
int r;
if (!odr_implicit_tag(o, odr_octetstring, &oct,
- ODR_CONTEXT, 1, 0, "octetaligned"))
+ ODR_CONTEXT, 1, 0, "octetaligned"))
r = (*type->fun)(o, &voidp, 0, 0);
(*p)->which = type->what;
(*p)->u.single_ASN1_type = (Odr_any*) voidp;
r = (*type->fun)(o, &voidp, 0, 0);
(*p)->which = type->what;
(*p)->u.single_ASN1_type = (Odr_any*) voidp;
/* It's single ASN.1 type, bias the CHOICE. */
odr_choice_bias(o, type->what);
}
/* It's single ASN.1 type, bias the CHOICE. */
odr_choice_bias(o, type->what);
}
Z_External *z_ext_record_oid(ODR o, const Odr_oid *oid, const char *buf, int len)
{
Z_External *thisext;
Z_External *z_ext_record_oid(ODR o, const Odr_oid *oid, const char *buf, int len)
{
Z_External *thisext;
if (!oid)
return 0;
thisext = (Z_External *) odr_malloc(o, sizeof(*thisext));
thisext->descriptor = 0;
thisext->indirect_reference = 0;
if (!oid)
return 0;
thisext = (Z_External *) odr_malloc(o, sizeof(*thisext));
thisext->descriptor = 0;
thisext->indirect_reference = 0;
thisext->direct_reference = odr_oiddup(o, oid);
if (len < 0) /* Structured data */
thisext->direct_reference = odr_oiddup(o, oid);
if (len < 0) /* Structured data */
thisext->which = Z_External_sutrs;
thisext->u.sutrs = sutrs;
sutrs->buf = (unsigned char *)odr_malloc(o, len);
thisext->which = Z_External_sutrs;
thisext->u.sutrs = sutrs;
sutrs->buf = (unsigned char *)odr_malloc(o, len);
if (!oid)
return 0;
thisext = (Z_External *) odr_malloc(o, sizeof(*thisext));
thisext->descriptor = 0;
thisext->indirect_reference = 0;
if (!oid)
return 0;
thisext = (Z_External *) odr_malloc(o, sizeof(*thisext));
thisext->descriptor = 0;
thisext->indirect_reference = 0;
thisext->direct_reference = odr_oiddup(o, oid);
thisext->which = Z_External_single;
thisext->direct_reference = odr_oiddup(o, oid);
thisext->which = Z_External_single;