X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-grs.c;h=08c5ca6cae9705bc576d26f7feb3e33a04f86654;hp=72c595ca62b075a4c10af393289166af9e5074a2;hb=a7827306d9d9fd634a4b4336944bee781fa61e32;hpb=63cafe41a93427118959a74201b3e331169a71d9 diff --git a/asn/prt-grs.c b/asn/prt-grs.c index 72c595c..08c5ca6 100644 --- a/asn/prt-grs.c +++ b/asn/prt-grs.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-grs.c,v $ - * Revision 1.4 1995-09-29 17:11:55 quinn + * Revision 1.6 1997-05-14 06:53:23 adam + * C++ support. + * + * Revision 1.5 1995/10/18 16:12:20 quinn + * Added a couple of special cases to handle the WAIS server. + * + * Revision 1.4 1995/09/29 17:11:55 quinn * Smallish * * Revision 1.3 1995/09/27 15:02:43 quinn @@ -179,6 +185,8 @@ int z_Triple(ODR o, Z_Triple **p, int opt) { {ODR_NONE, -1, -1, Z_Triple_integer, odr_integer}, {ODR_NONE, -1, -1, Z_Triple_internationalString, z_InternationalString}, + /* The entry below provides some backwards compatibility */ + {ODR_NONE, -1, -1, Z_Triple_internationalString, odr_visiblestring}, {ODR_NONE, -1, -1, Z_Triple_octetString, odr_octetstring}, {ODR_NONE, -1, -1, Z_Triple_oid, odr_oid}, {ODR_NONE, -1, -1, Z_Triple_boolean, odr_bool}, @@ -192,7 +200,7 @@ int z_Triple(ODR o, Z_Triple **p, int opt) return opt && odr_ok(o); return odr_implicit(o, odr_oid, &(*p)->variantSetId, ODR_CONTEXT, 0, 1) && - odr_implicit(o, odr_integer, &(*p)->class, ODR_CONTEXT, 1, 0) && + odr_implicit(o, odr_integer, &(*p)->zclass, ODR_CONTEXT, 1, 0) && odr_implicit(o, odr_integer, &(*p)->type, ODR_CONTEXT, 2, 0) && odr_constructed_begin(o, &(*p)->value, ODR_CONTEXT, 3) && odr_choice(o, arm, &(*p)->value, &(*p)->which) &&