|
|
1.1 root 1: #include <stdio.h>
2: #include "generic.h" /* defines OPERATIONS and ERRORS */
3: #include <isode/rosap.h>
4:
5:
6: /* e.g., "directory" */
7: static char *myservice = "service";
8:
9: /* e.g., "directory services" */
10: static char *mycontext = "iso service";
11: static char *mypci = "service pci version m.n";
12:
13:
14: main (argc, argv, envp)
15: int argc;
16: char **argv,
17: **envp;
18: {
19: int sd;
20: struct SSAPref sfs;
21: register struct SSAPref *sf;
22: register struct PSAPaddr *pa;
23: struct AcSAPconnect accs;
24: register struct AcSAPconnect *acc = &accs;
25: struct AcSAPrelease acrs;
26: register struct AcSAPrelease *acr = &acrs;
27: struct AcSAPindication acis;
28: register struct AcSAPindication *aci = &acis;
29: register struct AcSAPabort *aca = &aci -> aci_abort;
30: struct RoSAPindication rois;
31: register struct RoSAPpreject *rop = &rois.roi_preject;
32: register AEI aei;
33: register OID ctx, pci;
34: struct PSAPctxlist pcs;
35: register struct PSAPctxlist *pc = &pcs;
36:
37: if ((aei = _str2aei (argv[1], myservice, mycontext, 0)) == NULLAEI)
38: error ("unable to resolve service: %s", PY_pepy);
39: if ((pa = aei2addr (aei)) == NULLPA)
40: error ("address translation failed");
41: if ((ctx = ode2oid (mycontext)) == NULLOID)
42: error ("%s: unknown object descriptor", mycontext);
43: if ((ctx = oid_cpy (ctx)) == NULLOID)
44: error ("oid_cpy");
45: if ((pci = ode2oid (mypci)) == NULLOID)
46: error ("%s: unknown object descriptor", mypci);
47: if ((pci = oid_cpy (pci)) == NULLOID)
48: error ("oid_cpy");
49: pc -> pc_nctx = 1;
50: pc -> pc_ctx[0].pc_id = 1;
51: pc -> pc_ctx[0].pc_asn = pci;
52: pc -> pc_ctx[0].pc_atn = NULLOID;
53:
54: ...
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.