|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: D
Length: 43899 (0xab7b) Names: »DESCRIPTION«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦041b9c0f8⟧ »EurOpenD22/isode/pepsy.system-6.0.Z« └─⟦d49939f05⟧ └─⟦6a28ec38e⟧ »pepsy.tar« └─⟦this⟧ »pepsy/doc/DESCRIPTION«
0x0000…0020 0a 0a 0a 0a 0a 0a 5f 08 31 2e 20 20 5f 08 4f 5f 08 76 5f 08 65 5f 08 72 5f 08 76 5f 08 69 5f 08 ┆ _ 1. _ O_ v_ e_ r_ v_ i_ ┆ 0x0020…0040 65 5f 08 77 20 5f 08 6f 5f 08 66 20 5f 08 70 5f 08 65 5f 08 70 5f 08 73 5f 08 79 20 5f 08 73 5f ┆e_ w _ o_ f _ p_ e_ p_ s_ y _ s_┆ 0x0040…0060 08 79 5f 08 73 5f 08 74 5f 08 65 5f 08 6d 0a 0a 20 20 20 20 20 54 68 69 73 20 20 73 65 63 74 69 ┆ y_ s_ t_ e_ m This secti┆ 0x0060…0080 6f 6e 20 20 64 65 73 63 72 69 62 65 73 20 20 68 6f 77 20 20 74 68 65 20 20 76 61 72 69 6f 75 73 ┆on describes how the various┆ 0x0080…00a0 20 20 70 61 72 74 73 20 20 66 69 74 0a 74 6f 67 65 74 68 65 72 20 20 74 6f 20 20 6d 61 6b 65 20 ┆ parts fit together to make ┆ 0x00a0…00c0 20 74 68 65 20 20 73 79 73 74 65 6d 20 20 77 6f 72 6b 2e 20 20 54 68 65 20 70 72 69 6e 63 69 70 ┆ the system work. The princip┆ 0x00c0…00e0 6c 65 20 62 65 68 69 6e 64 0a 70 65 70 73 79 20 69 73 20 66 61 69 72 6c 79 20 73 69 6d 70 6c 65 ┆le behind pepsy is fairly simple┆ 0x00e0…0100 2e 20 20 54 68 65 20 41 53 4e 2e 31 20 69 73 20 73 75 6d 6d 61 72 69 73 65 64 20 20 61 73 20 20 ┆. The ASN.1 is summarised as ┆ 0x0100…0120 74 61 62 6c 65 73 0a 6f 66 20 69 6e 74 65 67 65 72 73 2e 20 20 54 68 65 73 65 20 74 61 62 6c 65 ┆tables of integers. These table┆ 0x0120…0140 73 20 61 72 65 20 72 65 61 64 20 62 79 20 64 72 69 76 65 72 20 72 6f 75 74 69 6e 65 73 20 77 68 ┆s are read by driver routines wh┆ 0x0140…0160 69 63 68 0a 65 6e 63 6f 64 65 20 6f 72 20 64 65 63 6f 64 65 20 64 61 74 61 20 74 6f 20 6f 72 20 ┆ich encode or decode data to or ┆ 0x0160…0180 66 72 6f 6d 20 74 68 65 20 20 69 6e 74 65 72 6e 61 6c 20 20 66 6f 72 6d 61 74 20 20 74 68 61 74 ┆from the internal format that┆ 0x0180…01a0 0a 49 53 4f 44 45 20 20 4f 53 49 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 75 73 65 73 2e ┆ ISODE OSI implementation uses.┆ 0x01a0…01c0 20 20 49 6e 20 49 53 4f 44 45 20 73 70 65 63 69 66 69 63 20 66 75 6e 63 74 69 6f 6e 73 0a 61 72 ┆ In ISODE specific functions ar┆ 0x01c0…01e0 65 20 67 65 6e 65 72 61 74 65 64 20 66 6f 72 20 65 61 63 68 20 41 53 4e 2e 31 20 74 79 70 65 20 ┆e generated for each ASN.1 type ┆ 0x01e0…0200 64 65 66 69 6e 65 64 20 20 69 6e 20 20 63 6f 6e 74 72 61 73 74 20 20 74 68 65 0a 70 65 70 73 79 ┆defined in contrast the pepsy┆ 0x0200…0220 20 20 6d 65 72 65 6c 79 20 67 65 6e 65 72 61 74 65 73 20 61 20 6e 65 77 20 74 61 62 6c 65 20 6f ┆ merely generates a new table o┆ 0x0220…0240 66 20 64 61 74 61 20 77 68 69 63 68 20 69 73 20 66 61 72 20 66 61 72 0a 73 6d 61 6c 6c 65 72 2e ┆f data which is far far smaller.┆ 0x0240…0260 0a 0a 20 20 20 20 20 41 73 20 74 68 65 72 65 20 69 73 20 61 20 67 72 65 61 74 20 64 65 61 6c 20 ┆ As there is a great deal ┆ 0x0260…0280 20 6f 66 20 20 65 66 66 6f 72 74 20 20 69 6e 76 65 73 74 65 64 20 20 69 6e 20 20 74 68 65 0a 49 ┆ of effort invested in the I┆ 0x0280…02a0 53 4f 44 45 20 20 69 6e 74 65 72 66 61 63 65 20 20 74 6f 20 20 74 68 65 20 20 65 6e 63 6f 64 69 ┆SODE interface to the encodi┆ 0x02a0…02c0 6e 67 2f 64 65 63 6f 64 69 6e 67 20 20 72 6f 75 74 69 6e 65 73 20 70 65 70 73 79 0a 61 75 74 6f ┆ng/decoding routines pepsy auto┆ 0x02c0…02e0 6d 61 74 69 63 61 6c 6c 79 20 70 72 6f 76 69 64 65 73 20 6d 61 63 72 6f 73 20 77 68 69 63 68 20 ┆matically provides macros which ┆ 0x02e0…0300 6d 61 70 20 74 68 65 20 20 6f 72 69 67 69 6e 61 6c 20 20 66 75 6e 63 2d 0a 74 69 6f 6e 73 20 20 ┆map the original func- tions ┆ 0x0300…0320 69 6e 74 6f 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 66 75 6e 63 74 69 6f 6e 20 63 61 ┆into the appropriate function ca┆ 0x0320…0340 6c 6c 20 6f 66 20 61 20 64 72 69 76 65 72 2e 20 20 54 68 69 73 0a 61 6c 6c 6f 77 73 20 65 78 69 ┆ll of a driver. This allows exi┆ 0x0340…0360 73 74 69 6e 67 20 70 6f 73 79 20 75 73 69 6e 67 20 63 6f 64 65 20 74 6f 20 73 77 69 74 63 68 20 ┆sting posy using code to switch ┆ 0x0360…0380 74 6f 20 74 68 65 20 70 65 70 73 79 20 20 73 79 73 2d 0a 74 65 6d 20 20 77 69 74 68 20 20 6e 6f ┆to the pepsy sys- tem with no┆ 0x0380…03a0 20 20 63 68 61 6e 67 65 73 20 20 74 6f 20 20 74 68 65 20 20 63 6f 64 65 20 20 70 72 6f 76 69 64 ┆ changes to the code provid┆ 0x03a0…03c0 65 64 20 20 6e 6f 20 66 75 6e 63 74 69 6f 6e 0a 70 6f 69 6e 74 65 72 73 20 61 72 65 20 75 73 65 ┆ed no function pointers are use┆ 0x03c0…03e0 64 20 74 6f 20 74 68 65 20 20 6f 72 69 67 69 6e 61 6c 20 20 49 53 4f 44 45 20 20 66 75 6e 63 74 ┆d to the original ISODE funct┆ 0x03e0…0400 69 6f 6e 73 2e 20 20 20 45 76 65 6e 0a 77 68 65 6e 20 20 74 68 65 72 65 20 20 61 72 65 20 66 75 ┆ions. Even when there are fu┆ 0x0400…0420 6e 63 74 69 6f 6e 20 70 6f 69 6e 74 65 72 73 20 75 73 65 64 20 74 68 65 20 63 68 61 6e 67 65 73 ┆nction pointers used the changes┆ 0x0420…0440 20 61 72 65 20 76 65 72 79 0a 73 69 6d 70 6c 65 20 61 6e 64 20 74 61 6b 65 20 6f 6e 6c 79 20 61 ┆ are very simple and take only a┆ 0x0440…0460 20 66 65 77 20 68 6f 75 72 73 20 74 6f 20 69 6d 70 6c 65 6d 65 6e 74 2e 0a 0a 5f 08 31 2e 5f 08 ┆ few hours to implement. _ 1._ ┆ 0x0460…0480 31 2e 20 20 5f 08 42 5f 08 72 5f 08 69 5f 08 65 5f 08 66 20 5f 08 64 5f 08 65 5f 08 73 5f 08 63 ┆1. _ B_ r_ i_ e_ f _ d_ e_ s_ c┆ 0x0480…04a0 5f 08 72 5f 08 69 5f 08 70 5f 08 74 5f 08 69 5f 08 6f 5f 08 6e 20 5f 08 6f 5f 08 66 20 5f 08 74 ┆_ r_ i_ p_ t_ i_ o_ n _ o_ f _ t┆ 0x04a0…04c0 5f 08 68 5f 08 65 20 5f 08 75 5f 08 73 5f 08 65 20 5f 08 6f 5f 08 66 20 5f 08 74 5f 08 68 5f 08 ┆_ h_ e _ u_ s_ e _ o_ f _ t_ h_ ┆ 0x04c0…04e0 65 20 5f 08 70 5f 08 65 5f 08 70 5f 08 73 5f 08 79 20 5f 08 73 5f 08 79 5f 08 73 5f 08 74 5f 08 ┆e _ p_ e_ p_ s_ y _ s_ y_ s_ t_ ┆ 0x04e0…0500 65 5f 08 6d 2e 0a 0a 5f 08 31 2e 5f 08 31 2e 5f 08 31 2e 20 20 5f 08 4f 5f 08 75 5f 08 74 5f 08 ┆e_ m. _ 1._ 1._ 1. _ O_ u_ t_ ┆ 0x0500…0520 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 6f 5f 08 66 20 5f 08 74 5f 08 68 5f 08 65 20 5f 08 66 5f ┆l_ i_ n_ e _ o_ f _ t_ h_ e _ f_┆ 0x0520…0540 08 69 5f 08 6c 5f 08 65 5f 08 73 20 5f 08 70 5f 08 72 5f 08 6f 5f 08 64 5f 08 75 5f 08 63 5f 08 ┆ i_ l_ e_ s _ p_ r_ o_ d_ u_ c_ ┆ 0x0540…0560 65 5f 08 64 20 5f 08 75 5f 08 6e 5f 08 64 5f 08 65 5f 08 72 20 5f 08 74 5f 08 68 5f 08 65 20 20 ┆e_ d _ u_ n_ d_ e_ r _ t_ h_ e ┆ 0x0560…0580 5f 08 70 5f 08 65 5f 08 70 5f 08 73 5f 08 79 20 20 5f 08 73 5f 08 79 5f 08 73 5f 08 2d 0a 5f 08 ┆_ p_ e_ p_ s_ y _ s_ y_ s_ - _ ┆ 0x0580…05a0 74 5f 08 65 5f 08 6d 2e 0a 0a 20 20 20 20 20 54 68 65 20 70 65 70 73 79 20 73 79 73 74 65 6d 20 ┆t_ e_ m. The pepsy system ┆ 0x05a0…05c0 63 6f 6e 73 69 73 74 73 20 20 6f 66 20 20 61 20 20 70 72 6f 67 72 61 6d 20 20 63 61 6c 6c 65 64 ┆consists of a program called┆ 0x05c0…05e0 20 20 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 0a 77 68 69 63 68 20 20 74 72 61 6e 73 6c 61 74 65 73 ┆ _ p_ o_ s_ y which translates┆ 0x05e0…0600 20 41 53 4e 2e 31 20 6d 6f 64 75 6c 65 73 20 69 6e 74 6f 20 61 20 73 65 74 20 6f 66 20 74 61 62 ┆ ASN.1 modules into a set of tab┆ 0x0600…0620 6c 65 73 2c 20 63 61 6c 6c 65 64 0a 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 20 61 74 20 74 68 65 20 ┆les, called _ p_ o_ s_ y at the ┆ 0x0620…0640 6d 6f 6d 65 6e 74 2c 20 61 6e 64 20 6c 69 62 72 61 72 79 20 6f 66 20 64 72 69 76 65 72 20 20 72 ┆moment, and library of driver r┆ 0x0640…0660 6f 75 74 69 6e 65 73 2c 20 20 63 61 6c 6c 65 64 0a 5f 08 6c 5f 08 69 5f 08 62 5f 08 70 5f 08 65 ┆outines, called _ l_ i_ b_ p_ e┆ 0x0660…0680 5f 08 70 5f 08 73 5f 08 79 2e 5f 08 61 2e 20 20 20 52 75 6e 6e 69 6e 67 20 20 74 68 69 73 20 20 ┆_ p_ s_ y._ a. Running this ┆ 0x0680…06a0 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 20 20 70 72 6f 67 72 61 6d 20 6f 6e 20 74 68 65 20 41 53 4e ┆_ p_ o_ s_ y program on the ASN┆ 0x06a0…06c0 2e 31 20 66 69 6c 65 0a 77 69 6c 6c 20 70 72 6f 64 75 63 65 20 73 65 76 65 72 61 6c 20 66 69 6c ┆.1 file will produce several fil┆ 0x06c0…06e0 65 73 2e 20 20 49 66 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 41 53 4e 2e 31 20 6d 6f ┆es. If the name of the ASN.1 mo┆ 0x06e0…0700 64 75 6c 65 0a 69 73 20 4d 4f 44 55 4c 45 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 69 6c ┆dule is MODULE the following fil┆ 0x0700…0720 65 73 20 61 72 65 20 67 65 6e 65 72 61 74 65 64 3a 0a 0a 4d 4f 44 55 4c 45 2d 74 79 70 65 73 2e ┆es are generated: MODULE-types.┆ 0x0720…0740 68 0a 20 20 20 20 20 77 68 69 63 68 20 63 6f 6e 74 61 69 6e 73 20 43 20 73 74 72 75 63 74 75 72 ┆h which contains C structur┆ 0x0740…0760 65 20 64 65 66 69 6e 69 74 69 6f 6e 73 2e 20 20 20 54 68 65 20 20 75 73 65 72 20 20 6f 66 0a 20 ┆e definitions. The user of ┆ 0x0760…0780 20 20 20 20 74 68 65 20 20 6c 69 62 72 61 72 79 20 20 70 72 6f 76 69 64 65 73 20 64 61 74 61 20 ┆ the library provides data ┆ 0x0780…07a0 61 73 20 61 20 6c 69 6e 6b 65 64 20 6c 69 73 74 20 6f 66 20 74 68 65 73 65 20 43 0a 20 20 20 20 ┆as a linked list of these C ┆ 0x07a0…07c0 20 64 61 74 61 20 73 74 72 75 63 74 75 72 65 73 20 61 6e 64 20 65 78 70 65 63 74 73 20 74 6f 20 ┆ data structures and expects to ┆ 0x07c0…07e0 72 65 63 65 69 76 65 20 64 61 74 61 20 62 61 63 6b 20 20 61 73 20 20 61 0a 20 20 20 20 20 73 69 ┆receive data back as a si┆ 0x07e0…0800 6d 69 6c 61 72 20 6c 69 6e 6b 65 64 20 6c 69 73 74 2e 20 20 54 68 65 73 65 20 64 61 74 61 20 73 ┆milar linked list. These data s┆ 0x0800…0820 74 72 75 63 74 75 72 65 73 20 61 72 65 20 65 78 61 63 74 6c 79 0a 20 20 20 20 20 74 68 65 20 73 ┆tructures are exactly the s┆ 0x0820…0840 61 6d 65 20 61 73 20 74 68 6f 73 65 20 70 72 6f 64 75 63 65 64 20 62 79 20 74 68 65 20 6f 72 69 ┆ame as those produced by the ori┆ 0x0840…0860 67 69 6e 61 6c 20 20 49 53 4f 44 45 20 20 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 0a 20 20 20 20 20 ┆ginal ISODE _ p_ o_ s_ y ┆ 0x0860…0880 73 6f 20 74 68 61 74 20 65 78 69 73 74 69 6e 67 20 73 6f 66 74 77 61 72 65 20 77 72 69 74 74 65 ┆so that existing software writte┆ 0x0880…08a0 6e 20 66 6f 72 20 74 68 65 20 6f 6c 64 20 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 20 70 72 6f 2d 0a ┆n for the old _ p_ o_ s_ y pro- ┆ 0x08a0…08c0 20 20 20 20 20 67 72 61 6d 20 6e 65 65 64 73 20 6e 6f 20 63 68 61 6e 67 65 2e 20 20 46 6f 72 20 ┆ gram needs no change. For ┆ 0x08c0…08e0 64 65 74 61 69 6c 73 20 6f 6e 20 74 68 65 20 43 20 64 61 74 61 20 73 74 72 75 63 2d 0a 20 20 20 ┆details on the C data struc- ┆ 0x08e0…0900 20 20 74 75 72 65 73 20 74 79 70 65 73 20 67 65 6e 65 72 61 74 65 64 20 73 65 65 20 74 68 65 20 ┆ tures types generated see the ┆ 0x0900…0920 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 6f 72 69 2d 0a 20 20 20 20 20 67 ┆documentation of the ori- g┆ 0x0920…0940 69 6e 61 6c 20 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 20 70 72 6f 67 72 61 6d 20 69 6e 20 76 6f 6c ┆inal _ p_ o_ s_ y program in vol┆ 0x0940…0960 75 6d 65 20 34 20 43 68 61 70 74 65 72 20 35 20 6f 66 20 20 74 68 65 20 20 49 53 4f 44 45 0a 20 ┆ume 4 Chapter 5 of the ISODE ┆ 0x0960…0980 20 20 20 20 6d 61 6e 75 61 6c 73 2e 0a 0a 4d 4f 44 55 4c 45 5f 74 61 62 6c 65 73 2e 63 0a 20 20 ┆ manuals. MODULE_tables.c ┆ 0x0980…09a0 20 20 20 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 74 61 62 6c 65 73 ┆ This file contains the tables┆ 0x09a0…09c0 20 67 65 6e 65 72 61 74 65 64 20 62 79 20 74 68 65 20 6e 65 77 20 5f 08 70 5f 08 6f 5f 08 73 5f ┆ generated by the new _ p_ o_ s_┆ 0x09c0…09e0 08 79 0a 20 20 20 20 20 70 72 6f 67 72 61 6d 2e 20 20 20 54 68 65 73 65 20 20 74 61 62 6c 65 73 ┆ y program. These tables┆ 0x09e0…0a00 20 20 63 6f 6e 73 69 73 74 20 20 6f 66 20 20 74 68 72 65 65 20 70 61 72 74 73 2c 20 74 68 65 0a ┆ consist of three parts, the ┆ 0x0a00…0a20 20 20 20 20 20 66 69 72 73 74 20 77 68 69 63 68 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 73 75 ┆ first which contains the su┆ 0x0a20…0a40 6d 6d 61 72 79 20 6f 66 20 41 53 4e 2e 31 20 74 79 70 65 73 2e 20 20 20 45 61 63 68 0a 20 20 20 ┆mmary of ASN.1 types. Each ┆ 0x0a40…0a60 20 20 74 79 70 65 20 20 69 73 20 20 73 75 6d 6d 61 72 69 73 65 64 20 20 61 73 20 20 61 6e 20 61 ┆ type is summarised as an a┆ 0x0a60…0a80 72 72 61 79 20 6f 66 20 61 20 70 72 69 6d 69 74 69 76 65 20 74 79 70 65 2c 0a 20 20 20 20 20 73 ┆rray of a primitive type, s┆ 0x0a80…0aa0 74 72 75 63 74 20 70 74 65 2c 20 66 6f 72 20 65 6e 63 6f 64 69 6e 67 20 61 6e 64 20 64 65 63 6f ┆truct pte, for encoding and deco┆ 0x0aa0…0ac0 64 69 6e 67 2c 20 61 6e 64 20 73 74 72 75 63 74 20 20 70 74 70 65 0a 20 20 20 20 20 66 6f 72 20 ┆ding, and struct ptpe for ┆ 0x0ac0…0ae0 20 70 72 69 6e 74 69 6e 67 2e 20 20 20 41 73 20 69 6d 70 6c 69 65 64 20 74 68 65 72 65 20 69 73 ┆ printing. As implied there is┆ 0x0ae0…0b00 20 6f 6e 65 20 61 72 72 61 79 20 66 6f 72 20 65 61 63 68 0a 20 20 20 20 20 74 79 70 65 20 66 6f ┆ one array for each type fo┆ 0x0b00…0b20 72 20 65 61 63 68 20 6f 66 20 65 6e 63 6f 64 69 6e 67 2c 20 20 64 65 63 6f 64 69 6e 67 20 20 61 ┆r each of encoding, decoding a┆ 0x0b20…0b40 6e 64 20 20 70 72 69 6e 74 69 6e 67 20 20 61 73 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆nd printing as ┆ 0x0b40…0b60 20 20 20 20 20 20 20 20 20 20 4a 61 6e 75 61 72 79 20 32 33 2c 20 31 39 39 30 0a 0a 0a 0a 0a 0a ┆ January 23, 1990 ┆ 0x0b60…0b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 20 32 20 2d ┆ - 2 -┆ 0x0b80…0ba0 0a 0a 0a 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 20 77 68 65 6e 20 5f 08 70 5f 08 6f 5f 08 ┆ specified when _ p_ o_ ┆ 0x0ba0…0bc0 73 5f 08 79 20 69 73 20 72 75 6e 2e 20 20 54 68 65 20 6e 65 78 74 20 70 61 72 74 20 63 6f 6e 74 ┆s_ y is run. The next part cont┆ 0x0bc0…0be0 61 69 6e 73 20 75 70 0a 20 20 20 20 20 74 6f 20 74 68 72 65 65 20 74 61 62 6c 65 73 20 6f 66 20 ┆ains up to three tables of ┆ 0x0be0…0c00 70 6f 69 6e 74 65 72 73 20 74 6f 20 74 68 65 73 65 20 61 72 72 61 79 73 2e 20 20 20 45 61 63 68 ┆pointers to these arrays. Each┆ 0x0c00…0c20 20 20 6f 66 0a 20 20 20 20 20 74 68 65 20 74 68 72 65 65 20 64 69 66 66 65 72 65 6e 74 20 74 79 ┆ of the three different ty┆ 0x0c20…0c40 70 65 73 20 6f 66 20 61 72 72 61 79 73 2c 20 65 6e 63 6f 64 69 6e 67 2c 20 64 65 63 6f 64 69 6e ┆pes of arrays, encoding, decodin┆ 0x0c40…0c60 67 0a 20 20 20 20 20 61 6e 64 20 70 72 69 6e 74 69 6e 67 2c 20 68 61 73 20 69 74 73 20 6f 77 6e ┆g and printing, has its own┆ 0x0c60…0c80 20 74 61 62 6c 65 20 6f 66 20 20 70 6f 69 6e 74 65 72 73 2e 20 20 20 46 69 6e 61 6c 6c 79 0a 20 ┆ table of pointers. Finally ┆ 0x0c80…0ca0 20 20 20 20 74 68 65 72 65 20 69 73 20 74 68 65 20 6d 6f 64 75 6c 65 20 74 79 70 65 20 64 65 66 ┆ there is the module type def┆ 0x0ca0…0cc0 69 6e 69 74 69 6f 6e 20 77 68 69 63 68 20 63 6f 6e 74 61 69 6e 73 20 63 6f 6e 2d 0a 20 20 20 20 ┆inition which contains con- ┆ 0x0cc0…0ce0 20 74 61 69 6e 73 20 70 6f 69 6e 74 65 72 73 20 74 6f 20 74 68 65 73 65 20 74 61 62 6c 65 73 20 ┆ tains pointers to these tables ┆ 0x0ce0…0d00 61 6e 64 20 20 73 6f 6d 65 20 20 6f 74 68 65 72 20 20 75 73 65 66 75 6c 0a 20 20 20 20 20 69 6e ┆and some other useful in┆ 0x0d00…0d20 66 6f 72 6d 61 74 69 6f 6e 20 20 61 62 6f 75 74 20 20 74 68 65 20 20 6d 6f 64 75 6c 65 20 73 75 ┆formation about the module su┆ 0x0d20…0d40 63 68 20 61 73 20 69 74 73 20 6e 61 6d 65 2e 20 20 54 68 69 73 0a 20 20 20 20 20 6d 6f 64 75 6c ┆ch as its name. This modul┆ 0x0d40…0d60 65 20 74 79 70 65 20 73 74 72 75 63 74 75 72 65 2c 20 77 68 69 63 68 20 69 73 20 74 79 70 65 64 ┆e type structure, which is typed┆ 0x0d60…0d80 65 66 65 64 20 74 6f 20 6d 6f 64 74 79 70 2c 20 69 73 0a 20 20 20 20 20 74 68 65 20 6f 6e 6c 79 ┆efed to modtyp, is the only┆ 0x0d80…0da0 20 70 69 65 63 65 20 6f 66 20 64 61 74 61 20 77 68 69 63 68 20 69 73 20 67 6c 6f 62 61 6c 2c 20 ┆ piece of data which is global, ┆ 0x0da0…0dc0 61 6c 6c 20 74 68 65 20 72 65 73 74 20 6f 66 0a 20 20 20 20 20 74 68 65 20 64 61 74 61 20 69 73 ┆all the rest of the data is┆ 0x0dc0…0de0 20 73 74 61 74 69 63 20 61 6e 64 20 69 73 20 6f 6e 6c 79 20 61 64 64 72 65 73 73 61 62 6c 65 20 ┆ static and is only addressable ┆ 0x0de0…0e00 76 69 61 20 74 68 65 20 6d 6f 64 2d 0a 20 20 20 20 20 74 79 70 20 20 64 61 74 61 20 20 73 74 72 ┆via the mod- typ data str┆ 0x0e00…0e20 75 63 74 75 72 65 2e 20 20 54 68 69 73 20 20 70 72 6f 76 69 64 65 73 20 20 61 20 6b 69 6e 64 20 ┆ucture. This provides a kind ┆ 0x0e20…0e40 6f 66 20 6f 62 6a 65 63 74 0a 20 20 20 20 20 6f 72 69 65 6e 74 65 64 20 61 70 70 72 6f 61 63 68 ┆of object oriented approach┆ 0x0e40…0e60 20 74 6f 20 68 61 6e 64 6c 69 6e 67 20 74 68 65 20 74 61 62 6c 65 73 2e 20 20 4f 6e 63 65 20 79 ┆ to handling the tables. Once y┆ 0x0e60…0e80 6f 75 20 61 72 65 0a 20 20 20 20 20 70 61 73 73 65 64 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 ┆ou are passed a pointer to ┆ 0x0e80…0ea0 61 6e 20 41 53 4e 2e 31 27 73 20 6d 6f 64 74 79 70 20 73 74 72 75 63 74 75 72 65 20 79 6f 75 20 ┆an ASN.1's modtyp structure you ┆ 0x0ea0…0ec0 63 61 6e 0a 20 20 20 20 20 65 6e 63 6f 64 65 2c 20 64 65 63 6f 64 65 20 61 6e 64 20 70 72 69 6e ┆can encode, decode and prin┆ 0x0ec0…0ee0 74 20 61 6e 79 20 6f 66 20 69 74 73 20 20 74 79 70 65 73 20 20 62 79 20 20 63 61 6c 6c 69 6e 67 ┆t any of its types by calling┆ 0x0ee0…0f00 0a 20 20 20 20 20 74 68 65 20 20 20 61 70 70 72 6f 70 72 69 61 74 65 20 20 6c 69 62 70 65 70 73 ┆ the appropriate libpeps┆ 0x0f00…0f20 79 2e 61 20 20 72 6f 75 74 69 6e 65 20 20 77 69 74 68 20 20 69 74 73 20 20 74 79 70 65 0a 20 20 ┆y.a routine with its type ┆ 0x0f20…0f40 20 20 20 6e 75 6d 62 65 72 2e 0a 0a 4d 4f 44 55 4c 45 5f 70 72 65 5f 64 65 66 73 2e 68 0a 20 20 ┆ number. MODULE_pre_defs.h ┆ 0x0f40…0f60 20 20 20 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 23 64 65 66 69 6e 65 73 20 73 ┆ This file contains #defines s┆ 0x0f60…0f80 79 6d 62 6f 6c 20 6f 66 20 65 61 63 68 20 6f 66 20 74 68 65 20 41 53 4e 2e 31 0a 20 20 20 20 20 ┆ymbol of each of the ASN.1 ┆ 0x0f80…0fa0 74 79 70 65 73 20 20 74 6f 20 69 74 73 20 74 79 70 65 20 6e 75 6d 62 65 72 2c 20 77 68 69 63 68 ┆types to its type number, which┆ 0x0fa0…0fc0 20 69 73 20 75 73 65 64 20 77 68 65 6e 20 63 61 6c 6c 69 6e 67 20 61 0a 20 20 20 20 20 6c 69 62 ┆ is used when calling a lib┆ 0x0fc0…0fe0 70 65 70 73 79 2e 61 20 72 6f 75 74 69 6e 65 2e 20 20 45 61 63 68 20 73 79 6d 62 6f 6c 20 20 69 ┆pepsy.a routine. Each symbol i┆ 0x0fe0…1000 73 20 20 5f 5a 74 79 70 65 2d 6e 61 6d 65 4d 4f 44 55 4c 45 0a 20 20 20 20 20 77 68 65 72 65 20 ┆s _Ztype-nameMODULE where ┆ 0x1000…1020 5f 08 74 5f 08 79 5f 08 70 5f 08 65 2d 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 69 73 20 74 68 65 ┆_ t_ y_ p_ e-_ n_ a_ m_ e is the┆ 0x1020…1040 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 74 79 70 65 20 77 69 74 68 20 64 61 73 68 65 73 20 28 2d ┆ name of the type with dashes (-┆ 0x1040…1060 29 0a 20 20 20 20 20 74 75 72 6e 65 64 20 69 6e 74 6f 20 75 6e 64 65 72 73 63 6f 72 65 73 20 28 ┆) turned into underscores (┆ 0x1060…1080 5f 29 20 61 6e 64 20 5f 08 4d 5f 08 4f 5f 08 44 5f 08 55 5f 08 4c 5f 08 45 20 69 73 20 74 68 65 ┆_) and _ M_ O_ D_ U_ L_ E is the┆ 0x1080…10a0 20 20 6e 61 6d 65 20 20 6f 66 0a 20 20 20 20 20 74 68 65 20 20 6d 6f 64 75 6c 65 2e 20 20 20 46 ┆ name of the module. F┆ 0x10a0…10c0 6f 72 20 20 65 78 61 6d 70 6c 65 20 6f 66 20 74 68 65 20 41 53 4e 2e 31 20 75 6e 69 76 65 72 73 ┆or example of the ASN.1 univers┆ 0x10c0…10e0 61 6c 20 74 79 70 65 0a 20 20 20 20 20 5f 08 47 5f 08 72 5f 08 61 5f 08 70 5f 08 68 5f 08 69 5f ┆al type _ G_ r_ a_ p_ h_ i_┆ 0x10e0…1100 08 63 5f 08 53 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 20 77 6f 75 6c 64 20 20 68 61 76 65 ┆ c_ S_ t_ r_ i_ n_ g would have┆ 0x1100…1120 20 20 74 68 65 20 20 23 64 65 66 69 6e 65 20 20 73 79 6d 62 6f 6c 20 20 5f 5a 47 72 61 2d 0a 20 ┆ the #define symbol _ZGra- ┆ 0x1120…1140 20 20 20 20 70 68 69 63 53 74 72 69 6e 67 55 4e 49 56 2e 20 20 54 68 65 20 5f 5f 08 5a 20 69 73 ┆ phicStringUNIV. The __ Z is┆ 0x1140…1160 20 70 72 65 70 65 6e 64 65 64 20 74 6f 20 74 72 79 20 74 6f 20 6d 61 6b 65 20 74 68 65 0a 20 20 ┆ prepended to try to make the ┆ 0x1160…1180 20 20 20 73 79 6d 62 6f 6c 73 20 75 6e 69 71 75 65 2e 20 20 54 68 69 73 20 66 69 6c 65 20 20 61 ┆ symbols unique. This file a┆ 0x1180…11a0 6c 73 6f 20 20 63 6f 6e 74 61 69 6e 73 20 20 61 6e 64 20 20 65 78 74 65 72 6e 0a 20 20 20 20 20 ┆lso contains and extern ┆ 0x11a0…11c0 64 65 63 6c 61 72 61 74 69 6f 6e 20 66 6f 72 20 74 68 65 20 6d 6f 64 74 79 70 20 64 61 74 61 20 ┆declaration for the modtyp data ┆ 0x11c0…11e0 66 6f 72 20 69 74 73 20 6d 6f 64 75 6c 65 2e 0a 0a 4d 4f 44 55 4c 45 5f 64 65 66 73 2e 68 0a 20 ┆for its module. MODULE_defs.h ┆ 0x11e0…1200 20 20 20 20 54 68 69 73 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 6d 61 63 72 6f 73 20 66 6f ┆ This file contains macros fo┆ 0x1200…1220 72 20 20 61 6c 6c 20 74 68 65 20 65 6e 63 6f 64 69 6e 67 2c 20 64 65 63 6f 64 2d 0a 20 20 20 20 ┆r all the encoding, decod- ┆ 0x1220…1240 20 69 6e 67 20 20 61 6e 64 20 70 72 69 6e 74 69 6e 67 20 66 75 6e 63 74 69 6f 6e 73 20 74 68 61 ┆ ing and printing functions tha┆ 0x1240…1260 74 20 74 68 65 20 5f 08 70 5f 08 65 5f 08 70 5f 08 79 20 70 72 6f 67 72 61 6d 20 77 6f 75 6c 64 ┆t the _ p_ e_ p_ y program would┆ 0x1260…1280 0a 20 20 20 20 20 68 61 76 65 20 66 6f 72 20 74 68 65 73 65 20 41 53 4e 2e 31 20 74 79 70 65 73 ┆ have for these ASN.1 types┆ 0x1280…12a0 2e 20 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 20 6d 75 63 68 20 20 6f 66 20 20 74 68 65 0a 20 20 ┆. This allows much of the ┆ 0x12a0…12c0 20 20 20 63 6f 64 65 20 20 74 68 61 74 20 20 75 73 65 73 20 20 74 68 65 20 72 6f 75 74 69 6e 65 ┆ code that uses the routine┆ 0x12c0…12e0 73 20 67 65 6e 65 72 61 74 65 64 20 62 79 20 72 75 6e 6e 69 6e 67 20 74 68 65 0a 20 20 20 20 20 ┆s generated by running the ┆ 0x12e0…1300 6f 6c 64 20 5f 08 70 5f 08 6f 5f 08 73 5f 08 79 20 70 72 6f 67 72 61 6d 20 61 6e 64 20 74 61 6b ┆old _ p_ o_ s_ y program and tak┆ 0x1300…1320 69 6e 67 20 69 74 73 20 6f 75 74 70 75 74 20 61 6e 64 20 72 75 6e 6e 69 6e 67 20 5f 08 70 5f 08 ┆ing its output and running _ p_ ┆ 0x1320…1340 65 5f 08 70 5f 08 79 0a 20 20 20 20 20 6f 6e 20 20 61 75 67 6d 65 6e 74 65 64 20 41 53 4e 2e 31 ┆e_ p_ y on augmented ASN.1┆ 0x1340…1360 20 6f 75 74 70 75 74 20 63 61 6e 20 62 65 20 72 65 63 6f 6d 70 69 6c 65 64 20 75 6e 63 68 61 6e ┆ output can be recompiled unchan┆ 0x1360…1380 67 65 64 2e 0a 20 20 20 20 20 49 66 20 74 68 65 20 63 6f 64 65 20 75 73 65 64 20 70 6f 69 6e 74 ┆ged. If the code used point┆ 0x1380…13a0 65 72 73 20 20 74 6f 20 20 74 68 65 73 65 20 20 66 75 6e 63 74 69 6f 6e 73 20 20 69 74 20 20 69 ┆ers to these functions it i┆ 0x13a0…13c0 73 0a 20 20 20 20 20 6e 65 63 65 73 73 61 72 79 20 20 74 6f 20 63 68 61 6e 67 65 20 69 74 20 74 ┆s necessary to change it t┆ 0x13c0…13e0 6f 20 70 61 73 73 20 61 72 6f 75 6e 64 20 74 68 65 20 74 79 70 65 20 6e 75 6d 62 65 72 73 0a 20 ┆o pass around the type numbers ┆ 0x13e0…1400 20 20 20 20 69 6e 73 74 65 61 64 20 61 6e 64 20 74 6f 20 63 61 6c 6c 20 20 61 70 70 72 6f 70 72 ┆ instead and to call appropr┆ 0x1400…1420 69 61 74 65 6c 79 20 20 63 61 6c 6c 20 20 61 20 20 6c 69 62 70 65 70 73 79 2e 61 0a 20 20 20 20 ┆iately call a libpepsy.a ┆ 0x1420…1440 20 6c 69 62 72 61 72 79 20 20 72 6f 75 74 69 6e 65 20 20 77 69 74 68 20 74 68 65 20 74 79 70 65 ┆ library routine with the type┆ 0x1440…1460 20 6e 75 6d 62 65 72 2e 20 20 41 73 20 70 6f 69 6e 74 65 72 73 20 74 6f 0a 20 20 20 20 20 74 68 ┆ number. As pointers to th┆ 0x1460…1480 65 20 70 72 69 6e 74 69 6e 67 20 72 6f 75 74 69 6e 65 73 20 69 6e 20 49 53 4f 44 45 20 61 72 65 ┆e printing routines in ISODE are┆ 0x1480…14a0 20 70 61 73 73 65 64 20 61 73 20 20 61 72 67 75 6d 65 6e 74 73 0a 20 20 20 20 20 61 20 20 23 64 ┆ passed as arguments a #d┆ 0x14a0…14c0 65 66 69 6e 65 20 20 69 73 20 20 70 72 6f 76 69 64 65 64 20 20 74 6f 20 74 75 72 6e 20 74 68 65 ┆efine is provided to turn the┆ 0x14c0…14e0 20 61 72 67 75 6d 65 6e 74 20 69 6e 74 6f 20 74 68 65 0a 20 20 20 20 20 70 61 69 72 20 6f 66 20 ┆ argument into the pair of ┆ 0x14e0…1500 61 72 67 75 6d 65 6e 74 73 2c 20 74 79 70 65 20 6e 75 6d 62 65 72 20 61 6e 64 20 20 70 6f 69 6e ┆arguments, type number and poin┆ 0x1500…1520 74 65 72 20 20 74 6f 20 20 6d 6f 64 74 79 70 0a 20 20 20 20 20 73 74 72 75 63 74 75 72 65 2c 20 ┆ter to modtyp structure, ┆ 0x1520…1540 20 77 68 69 63 68 20 20 61 72 65 20 20 6e 65 65 64 65 64 20 20 74 6f 20 61 6c 6c 6f 77 20 74 68 ┆ which are needed to allow th┆ 0x1540…1560 65 20 64 69 61 67 6e 6f 73 74 69 63 0a 20 20 20 20 20 70 72 69 6e 74 69 6e 67 20 63 6f 64 65 20 ┆e diagnostic printing code ┆ 0x1560…1580 74 6f 20 77 6f 72 6b 20 77 69 74 68 20 6e 6f 20 63 68 61 6e 67 65 20 20 66 6f 72 20 20 74 68 65 ┆to work with no change for the┆ 0x1580…15a0 20 20 63 75 72 72 65 6e 74 0a 20 20 20 20 20 49 53 4f 44 45 20 73 74 61 63 6b 2e 20 20 54 68 69 ┆ current ISODE stack. Thi┆ 0x15a0…15c0 73 20 66 69 6c 65 20 61 6c 73 6f 20 63 6f 6e 74 61 69 6e 73 20 61 20 23 69 6e 63 6c 75 64 65 20 ┆s file also contains a #include ┆ 0x15c0…15e0 6f 66 20 74 68 65 0a 20 20 20 20 20 5f 08 4d 5f 08 4f 5f 08 44 5f 08 55 5f 08 4c 5f 08 45 5f 5f ┆of the _ M_ O_ D_ U_ L_ E__┆ 0x15e0…1600 08 70 5f 08 72 5f 08 65 5f 5f 08 64 5f 08 65 5f 08 66 5f 08 73 2e 5f 08 68 20 66 69 6c 65 2e 0a ┆ p_ r_ e__ d_ e_ f_ s._ h file. ┆ 0x1600…1620 0a 20 20 20 20 20 41 73 20 74 68 65 20 5f 08 4d 5f 08 4f 5f 08 44 5f 08 55 5f 08 4c 5f 08 45 2d ┆ As the _ M_ O_ D_ U_ L_ E-┆ 0x1620…1640 5f 08 74 5f 08 79 5f 08 70 5f 08 65 5f 08 73 2e 5f 08 68 20 66 69 6c 65 20 23 69 6e 63 6c 75 64 ┆_ t_ y_ p_ e_ s._ h file #includ┆ 0x1640…1660 65 27 73 20 74 68 65 20 5f 08 4d 5f 08 4f 5f 08 44 5f 08 55 5f 08 4c 5f 08 45 5f 5f 08 64 5f 08 ┆e's the _ M_ O_ D_ U_ L_ E__ d_ ┆ 0x1660…1680 65 5f 08 66 5f 08 73 2e 5f 08 68 0a 66 69 6c 65 20 20 6e 6f 20 20 66 75 72 74 68 65 72 20 20 23 ┆e_ f_ s._ h file no further #┆ 0x1680…16a0 69 6e 63 6c 75 64 65 73 20 20 6e 65 65 64 20 20 74 6f 20 62 65 20 61 64 64 65 64 20 74 6f 20 74 ┆includes need to be added to t┆ 0x16a0…16c0 68 65 20 66 69 6c 65 73 0a 75 73 69 6e 67 20 74 68 65 20 65 6e 63 6f 64 69 6e 67 2f 64 65 63 6f ┆he files using the encoding/deco┆ 0x16c0…16e0 64 69 6e 67 2f 70 72 69 6e 74 69 6e 67 20 66 75 6e 63 74 69 6f 6e 73 2e 20 20 54 68 69 73 20 20 ┆ding/printing functions. This ┆ 0x16e0…1700 6d 65 61 6e 73 0a 74 68 61 74 20 63 6f 64 65 20 77 72 69 74 74 65 6e 20 74 6f 20 75 73 65 20 70 ┆means that code written to use p┆ 0x1700…1720 6f 73 79 2f 70 65 70 79 20 73 79 73 74 65 6d 20 6d 61 79 20 6e 65 65 64 20 6e 6f 20 63 68 61 6e ┆osy/pepy system may need no chan┆ 0x1720…1740 67 65 0a 61 74 20 61 6c 6c 20 61 6e 64 20 20 74 68 65 20 20 6f 6e 6c 79 20 20 65 66 66 6f 72 74 ┆ge at all and the only effort┆ 0x1740…1760 20 20 72 65 71 75 69 72 65 64 20 20 69 73 20 20 74 6f 20 20 63 68 61 6e 67 65 20 20 74 68 65 0a ┆ required is to change the ┆ 0x1760…1780 4d 61 6b 65 66 69 6c 65 20 20 74 6f 20 75 73 65 20 74 68 65 20 70 65 70 73 79 20 73 79 73 74 65 ┆Makefile to use the pepsy syste┆ 0x1780…17a0 6d 2e 20 20 49 66 20 74 68 65 72 65 20 69 73 20 63 6f 64 65 20 63 68 61 6e 67 65 73 0a 0a 0a 0a ┆m. If there is code changes ┆ 0x17a0…17c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4a 61 6e 75 61 72 79 20 32 33 ┆ January 23┆ 0x17c0…17e0 2c 20 31 39 39 30 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆, 1990 ┆ 0x17e0…1800 20 20 20 20 20 20 20 2d 20 33 20 2d 0a 0a 0a 72 65 71 75 69 72 65 64 20 69 74 20 77 6f 75 6c 64 ┆ - 3 - required it would┆ 0x1800…1820 20 6d 6f 73 74 20 6c 69 6b 65 6c 79 20 62 65 20 62 65 63 61 75 73 65 20 20 66 75 6e 63 74 69 6f ┆ most likely be because functio┆ 0x1820…1840 6e 20 20 70 6f 69 6e 74 65 72 73 0a 61 72 65 20 20 75 73 65 64 20 20 74 6f 20 72 65 66 65 72 65 ┆n pointers are used to refere┆ 0x1840…1860 6e 63 65 20 74 68 65 20 66 75 6e 63 74 69 6f 6e 73 20 67 65 6e 65 72 61 74 65 64 20 62 79 20 70 ┆nce the functions generated by p┆ 0x1860…1880 6f 73 79 2e 20 20 49 66 0a 6f 6e 6c 79 20 74 68 65 20 5f 08 70 5f 08 65 5f 08 70 5f 08 79 20 73 ┆osy. If only the _ p_ e_ p_ y s┆ 0x1880…18a0 79 73 74 65 6d 20 77 61 73 20 75 73 65 64 2c 20 6e 6f 74 20 70 6f 73 79 20 74 68 65 6e 20 70 65 ┆ystem was used, not posy then pe┆ 0x18a0…18c0 70 79 2c 20 77 69 74 68 20 63 6f 64 65 0a 70 6c 61 63 65 64 20 69 6e 73 69 64 65 20 61 63 74 69 ┆py, with code placed inside acti┆ 0x18c0…18e0 6f 6e 20 73 74 61 74 65 6d 65 6e 74 73 20 74 68 65 6e 20 71 75 69 74 65 20 61 20 6c 61 72 67 65 ┆on statements then quite a large┆ 0x18e0…1900 20 61 6d 6f 75 6e 74 20 6f 66 0a 77 6f 72 6b 20 6d 61 79 20 62 65 20 6e 65 65 64 65 64 20 74 6f ┆ amount of work may be needed to┆ 0x1900…1920 20 63 68 61 6e 67 65 20 6f 76 65 72 20 74 6f 20 74 68 65 20 6e 65 77 20 73 79 73 74 65 6d 2c 20 ┆ change over to the new system, ┆ […truncated at 200 lines…]