home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Apple Remote Access API / Documentation / Add-on Security API next >
MacBinary  |  1994-09-15  |  238.9 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Sep 15 07:00:00 1994, modified Thu Sep 15 07:00:00 1994, creator 'HLX2', type 'ONLN', 237482 bytes "Add-on Security API" , at 0x3a02a 6888 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 41 64 64 2d 6f 6e | 20 53 65 63 75 72 69 74 |..Add-on| Securit|
|00000010| 79 20 41 50 49 00 00 00 | 00 00 00 00 00 00 00 00 |y API...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 03 9f aa 00 | 00 1a e8 aa 9d d9 b0 aa |........|........|
|00000060| 9d d9 b0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 06 b8 00 00 |........|........|
|00000080| f0 0d 41 70 70 6c 65 20 | 52 65 6d 6f 74 65 20 41 |..Apple |Remote A|
|00000090| 63 63 65 73 73 0d 41 64 | 64 2d 6f 6e 20 53 65 63 |ccess.Ad|d-on Sec|
|000000a0| 75 72 69 74 79 20 49 6e | 74 65 72 66 61 63 65 0d |urity In|terface.|
|000000b0| 41 75 74 68 6f 72 3a 20 | 20 46 61 72 7a 61 64 20 |Author: | Farzad |
|000000c0| 53 61 72 61 62 69 0d 56 | 65 72 73 69 6f 6e 20 31 |Sarabi.V|ersion 1|
|000000d0| 2e 30 0d 4e 6f 76 65 6d | 62 65 72 20 34 2c 20 31 |.0.Novem|ber 4, 1|
|000000e0| 39 39 33 0d 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |993.Copy|right . |
|000000f0| 31 39 39 32 2c 20 31 39 | 39 33 20 41 70 70 6c 65 |1992, 19|93 Apple|
|00000100| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|00000110| 0d 0d 54 61 62 6c 65 20 | 6f 66 20 43 6f 6e 74 65 |..Table |of Conte|
|00000120| 6e 74 73 0d 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |nts.Intr|oduction|
|00000130| 09 31 0d 4f 76 65 72 76 | 69 65 77 09 32 0d 53 65 |.1.Overv|iew.2.Se|
|00000140| 63 75 72 69 74 79 20 4d | 6f 64 75 6c 65 20 53 74 |curity M|odule St|
|00000150| 72 75 63 74 75 72 65 09 | 35 0d 4d 6f 64 75 6c 65 |ructure.|5.Module|
|00000160| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 52 65 73 | Informa|tion Res|
|00000170| 6f 75 72 63 65 20 28 27 | 73 69 6e 66 27 20 49 44 |ource ('|sinf' ID|
|00000180| 20 32 30 30 29 09 36 0d | 43 6f 64 65 20 52 65 73 | 200).6.|Code Res|
|00000190| 6f 75 72 63 65 20 53 74 | 72 75 63 74 75 72 65 09 |ource St|ructure.|
|000001a0| 38 0d 55 73 65 72 20 43 | 6f 6e 66 69 67 75 72 61 |8.User C|onfigura|
|000001b0| 74 69 6f 6e 20 28 55 43 | 4e 46 20 52 65 73 6f 75 |tion (UC|NF Resou|
|000001c0| 72 63 65 20 49 44 20 32 | 30 30 29 09 31 31 0d 43 |rce ID 2|00).11.C|
|000001d0| 6c 69 65 6e 74 2d 73 69 | 64 65 20 50 72 6f 74 6f |lient-si|de Proto|
|000001e0| 63 6f 6c 20 28 43 4c 50 | 52 20 52 65 73 6f 75 72 |col (CLP|R Resour|
|000001f0| 63 65 20 49 44 20 32 30 | 30 29 09 31 32 0d 53 65 |ce ID 20|0).12.Se|
|00000200| 72 76 65 72 2d 73 69 64 | 65 20 50 72 6f 74 6f 63 |rver-sid|e Protoc|
|00000210| 6f 6c 20 28 53 52 50 52 | 20 52 65 73 6f 75 72 63 |ol (SRPR| Resourc|
|00000220| 65 20 49 44 20 32 30 30 | 29 09 31 33 0d 43 6f 6e |e ID 200|).13.Con|
|00000230| 6e 65 63 74 69 6f 6e 20 | 43 6f 6e 66 69 67 75 72 |nection |Configur|
|00000240| 61 74 69 6f 6e 20 28 43 | 43 4e 46 20 52 65 73 6f |ation (C|CNF Reso|
|00000250| 75 72 63 65 20 49 44 20 | 32 30 30 29 09 31 34 0d |urce ID |200).14.|
|00000260| 43 6c 69 65 6e 74 20 53 | 69 64 65 20 4c 69 6e 65 |Client S|ide Line|
|00000270| 2d 6c 65 76 65 6c 20 28 | 43 4c 4c 4e 20 52 65 73 |-level (|CLLN Res|
|00000280| 6f 75 72 63 65 20 49 44 | 20 32 30 30 29 09 31 35 |ource ID| 200).15|
|00000290| 0d 41 63 74 69 6f 6e 73 | 09 31 36 0d 6b 53 65 63 |.Actions|.16.kSec|
|000002a0| 75 72 69 74 79 53 74 61 | 72 74 75 70 09 31 36 0d |uritySta|rtup.16.|
|000002b0| 6b 53 65 63 75 72 69 74 | 79 53 68 75 74 64 6f 77 |kSecurit|yShutdow|
|000002c0| 6e 09 31 36 0d 6b 53 65 | 63 75 72 69 74 79 42 65 |n.16.kSe|curityBe|
|000002d0| 67 69 6e 09 31 36 0d 6b | 53 65 63 75 72 69 74 79 |gin.16.k|Security|
|000002e0| 45 6e 64 09 31 36 0d 6b | 53 65 63 75 72 69 74 79 |End.16.k|Security|
|000002f0| 44 61 74 61 41 76 61 69 | 6c 61 62 6c 65 09 31 36 |DataAvai|lable.16|
|00000300| 0d 6b 53 65 63 75 72 69 | 74 79 41 62 6f 72 74 09 |.kSecuri|tyAbort.|
|00000310| 31 36 0d 6b 53 65 63 75 | 72 69 74 79 54 69 63 6b |16.kSecu|rityTick|
|00000320| 6c 65 41 63 74 69 6f 6e | 09 31 37 0d 41 52 41 20 |leAction|.17.ARA |
|00000330| 53 65 72 76 69 63 65 20 | 52 6f 75 74 69 6e 65 73 |Service |Routines|
|00000340| 09 31 38 0d 41 52 41 52 | 65 61 64 09 31 39 0d 41 |.18.ARAR|ead.19.A|
|00000350| 52 41 57 72 69 74 65 09 | 32 31 0d 41 52 41 4c 6f |RAWrite.|21.ARALo|
|00000360| 67 4d 65 73 73 61 67 65 | 09 32 32 0d 41 52 41 43 |gMessage|.22.ARAC|
|00000370| 61 6c 6c 42 61 63 6b 41 | 74 09 32 33 0d 41 52 41 |allBackA|t.23.ARA|
|00000380| 41 6c 6c 6f 77 55 73 65 | 72 09 32 34 0d 41 52 41 |AllowUse|r.24.ARA|
|00000390| 44 6f 6e 74 41 6c 6c 6f | 77 55 73 65 72 09 32 35 |DontAllo|wUser.25|
|000003a0| 0d 41 52 41 52 65 61 64 | 53 65 63 75 72 69 74 79 |.ARARead|Security|
|000003b0| 44 61 74 61 09 32 36 0d | 41 52 41 52 65 61 64 4c |Data.26.|ARAReadL|
|000003c0| 6f 63 6b 53 65 63 75 72 | 69 74 79 44 61 74 61 09 |ockSecur|ityData.|
|000003d0| 32 37 0d 41 52 41 57 72 | 69 74 65 53 65 63 75 72 |27.ARAWr|iteSecur|
|000003e0| 69 74 79 44 61 74 61 09 | 32 38 0d 41 52 41 55 6e |ityData.|28.ARAUn|
|000003f0| 6c 6f 63 6b 53 65 63 75 | 72 69 74 79 44 61 74 61 |lockSecu|rityData|
|00000400| 09 32 39 0d 41 52 41 47 | 65 74 55 73 65 72 49 6e |.29.ARAG|etUserIn|
|00000410| 66 6f 09 33 30 0d 41 52 | 41 54 69 63 6b 6c 65 4d |fo.30.AR|ATickleM|
|00000420| 65 09 33 31 0d 41 52 41 | 43 6f 6d 70 6c 65 74 65 |e.31.ARA|Complete|
|00000430| 4f 70 65 72 61 74 69 6f | 6e 09 33 32 0d 41 70 70 |Operatio|n.32.App|
|00000440| 65 6e 64 69 78 20 41 3a | 20 20 53 65 63 75 72 69 |endix A:| Securi|
|00000450| 74 79 20 49 6e 74 65 72 | 66 61 63 65 20 48 65 61 |ty Inter|face Hea|
|00000460| 64 65 72 20 46 69 6c 65 | 09 33 33 0d 41 70 70 65 |der File|.33.Appe|
|00000470| 6e 64 69 78 20 42 3a 20 | 20 53 65 63 75 72 69 74 |ndix B: | Securit|
|00000480| 79 20 4d 6f 64 75 6c 65 | 20 53 68 65 6c 6c 09 34 |y Module| Shell.4|
|00000490| 31 0d 41 70 70 65 6e 64 | 69 78 20 43 3a 20 20 4d |1.Append|ix C: M|
|000004a0| 69 73 63 65 6c 6c 61 6e | 65 6f 75 73 09 34 38 0d |iscellan|eous.48.|
|000004b0| 52 75 6e 74 69 6d 65 20 | 45 6e 76 69 72 6f 6e 6d |Runtime |Environm|
|000004c0| 65 6e 74 09 34 38 0d 42 | 75 69 6c 64 69 6e 67 20 |ent.48.B|uilding |
|000004d0| 20 61 6e 20 41 64 64 2d | 6f 6e 20 53 65 63 75 72 | an Add-|on Secur|
|000004e0| 69 74 79 20 4d 6f 64 75 | 6c 65 09 34 38 0d 41 52 |ity Modu|le.48.AR|
|000004f0| 41 20 53 65 63 75 72 69 | 74 79 20 49 6e 74 65 72 |A Securi|ty Inter|
|00000500| 66 61 63 65 20 44 69 73 | 6b 09 34 39 0d 0d 49 6e |face Dis|k.49..In|
|00000510| 74 72 6f 64 75 63 74 69 | 6f 6e 0d 54 68 69 73 20 |troducti|on.This |
|00000520| 64 6f 63 75 6d 65 6e 74 | 20 64 65 73 63 72 69 62 |document| describ|
|00000530| 65 73 20 74 68 65 20 61 | 64 64 2d 6f 6e 20 73 65 |es the a|dd-on se|
|00000540| 63 75 72 69 74 79 20 69 | 6e 74 65 72 66 61 63 65 |curity i|nterface|
|00000550| 20 75 73 65 64 20 69 6e | 20 41 70 70 6c 65 20 52 | used in| Apple R|
|00000560| 65 6d 6f 74 65 20 41 63 | 63 65 73 73 20 28 41 52 |emote Ac|cess (AR|
|00000570| 41 29 2e 20 20 54 68 69 | 73 20 64 6f 63 75 6d 65 |A). Thi|s docume|
|00000580| 6e 74 20 69 73 20 77 72 | 69 74 74 65 6e 20 66 6f |nt is wr|itten fo|
|00000590| 72 20 61 20 73 65 63 75 | 72 69 74 79 20 6d 6f 64 |r a secu|rity mod|
|000005a0| 75 6c 65 20 77 72 69 74 | 65 72 2c 20 61 6e 64 20 |ule writ|er, and |
|000005b0| 65 78 70 6c 61 69 6e 73 | 20 74 68 65 20 41 52 41 |explains| the ARA|
|000005c0| 20 69 6e 74 65 72 66 61 | 63 65 20 61 73 20 73 65 | interfa|ce as se|
|000005d0| 65 6e 20 66 72 6f 6d 20 | 61 6e 20 61 64 64 2d 6f |en from |an add-o|
|000005e0| 6e 20 73 65 63 75 72 69 | 74 79 20 6d 6f 64 75 6c |n securi|ty modul|
|000005f0| 65 2e 0d 41 64 64 2d 6f | 6e 20 73 65 63 75 72 69 |e..Add-o|n securi|
|00000600| 74 79 20 6d 6f 64 75 6c | 65 73 20 28 73 65 63 75 |ty modul|es (secu|
|00000610| 72 69 74 79 20 6d 6f 64 | 75 6c 65 73 29 20 63 6f |rity mod|ules) co|
|00000620| 6e 74 61 69 6e 20 63 6f | 64 65 20 72 65 73 6f 75 |ntain co|de resou|
|00000630| 72 63 65 73 20 74 68 61 | 74 20 61 6c 6c 6f 77 20 |rces tha|t allow |
|00000640| 61 64 64 69 74 69 6f 6e | 61 6c 20 6d 65 74 68 6f |addition|al metho|
|00000650| 64 73 20 6f 66 20 61 75 | 74 68 65 6e 74 69 63 61 |ds of au|thentica|
|00000660| 74 69 6e 67 20 75 73 65 | 72 73 2e 20 20 41 52 41 |ting use|rs. ARA|
|00000670| 20 75 73 65 73 20 70 61 | 73 73 77 6f 72 64 73 20 | uses pa|sswords |
|00000680| 61 6e 64 20 61 20 63 61 | 6c 6c 2d 62 61 63 6b 20 |and a ca|ll-back |
|00000690| 6d 65 63 68 61 6e 69 73 | 6d 20 61 73 20 69 74 73 |mechanis|m as its|
|000006a0| 20 64 65 66 61 75 6c 74 | 20 73 65 63 75 72 69 74 | default| securit|
|000006b0| 79 2e 20 20 49 66 20 79 | 6f 75 20 68 61 76 65 20 |y. If y|ou have |
|000006c0| 61 20 73 79 73 74 65 6d | 20 66 6f 72 20 69 64 65 |a system| for ide|
|000006d0| 6e 74 69 66 79 69 6e 67 | 20 61 20 75 73 65 72 2c |ntifying| a user,|
|000006e0| 20 79 6f 75 20 63 61 6e | 20 64 65 76 65 6c 6f 70 | you can| develop|
|000006f0| 20 61 20 73 65 63 75 72 | 69 74 79 20 6d 6f 64 75 | a secur|ity modu|
|00000700| 6c 65 20 74 6f 20 69 6e | 74 65 67 72 61 74 65 20 |le to in|tegrate |
|00000710| 79 6f 75 72 20 61 75 74 | 68 65 6e 74 69 63 61 74 |your aut|henticat|
|00000720| 69 6f 6e 20 6d 65 74 68 | 6f 64 73 20 69 6e 74 6f |ion meth|ods into|
|00000730| 20 41 52 41 2e 0d 57 65 | 20 68 61 76 65 20 64 65 | ARA..We| have de|
|00000740| 66 69 6e 65 64 20 74 77 | 6f 20 74 79 70 65 73 20 |fined tw|o types |
|00000750| 6f 66 20 73 65 63 75 72 | 69 74 79 20 64 65 76 69 |of secur|ity devi|
|00000760| 63 65 73 2e 20 20 44 65 | 76 69 63 65 73 20 74 68 |ces. De|vices th|
|00000770| 61 74 20 73 69 74 20 69 | 6e 20 66 72 6f 6e 74 20 |at sit i|n front |
|00000780| 6f 66 20 6f 72 20 62 65 | 68 69 6e 64 20 61 20 6d |of or be|hind a m|
|00000790| 6f 64 65 6d 20 61 6e 64 | 20 70 68 79 73 69 63 61 |odem and| physica|
|000007a0| 6c 6c 79 20 70 72 65 76 | 65 6e 74 20 61 20 63 6f |lly prev|ent a co|
|000007b0| 6e 6e 65 63 74 69 6f 6e | 20 70 72 69 6f 72 20 74 |nnection| prior t|
|000007c0| 6f 20 75 73 65 72 20 61 | 75 74 68 65 6e 74 69 63 |o user a|uthentic|
|000007d0| 61 74 69 6f 6e 20 61 72 | 65 20 63 61 6c 6c 65 64 |ation ar|e called|
|000007e0| 20 6c 69 6e 65 2d 6c 65 | 76 65 6c 20 73 65 63 75 | line-le|vel secu|
|000007f0| 72 69 74 79 20 64 65 76 | 69 63 65 73 2e 20 20 53 |rity dev|ices. S|
|00000800| 79 73 74 65 6d 73 20 74 | 68 61 74 20 70 65 72 66 |ystems t|hat perf|
|00000810| 6f 72 6d 20 74 68 65 69 | 72 20 61 75 74 68 65 6e |orm thei|r authen|
|00000820| 74 69 63 61 74 69 6f 6e | 20 61 66 74 65 72 20 74 |tication| after t|
|00000830| 68 65 20 41 52 41 20 73 | 65 72 76 65 72 20 61 6e |he ARA s|erver an|
|00000840| 64 20 69 74 73 20 63 6c | 69 65 6e 74 20 68 61 76 |d its cl|ient hav|
|00000850| 65 20 65 73 74 61 62 6c | 69 73 68 65 64 20 61 20 |e establ|ished a |
|00000860| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 61 72 65 20 63 |connecti|on are c|
|00000870| 6c 61 73 73 69 66 69 65 | 64 20 61 73 20 70 72 6f |lassifie|d as pro|
|00000880| 74 6f 63 6f 6c 2d 6c 65 | 76 65 6c 20 73 65 63 75 |tocol-le|vel secu|
|00000890| 72 69 74 79 20 64 65 76 | 69 63 65 73 2e 20 20 59 |rity dev|ices. Y|
|000008a0| 6f 75 20 63 61 6e 20 64 | 65 76 65 6c 6f 70 20 73 |ou can d|evelop s|
|000008b0| 65 63 75 72 69 74 79 20 | 6d 6f 64 75 6c 65 73 20 |ecurity |modules |
|000008c0| 66 6f 72 20 65 61 63 68 | 20 74 79 70 65 20 6f 66 |for each| type of|
|000008d0| 20 64 65 76 69 63 65 2e | 0d 54 68 65 20 6e 65 78 | device.|.The nex|
|000008e0| 74 20 73 65 63 74 69 6f | 6e 20 67 69 76 65 73 20 |t sectio|n gives |
|000008f0| 61 20 62 72 69 65 66 20 | 6f 76 65 72 76 69 65 77 |a brief |overview|
|00000900| 20 6f 66 20 61 64 64 2d | 6f 6e 20 73 65 63 75 72 | of add-|on secur|
|00000910| 69 74 79 20 6d 6f 64 75 | 6c 65 73 2e 0d 54 68 65 |ity modu|les..The|
|00000920| 20 53 65 63 75 72 69 74 | 79 20 4d 6f 64 75 6c 65 | Securit|y Module|
|00000930| 20 53 74 72 75 63 74 75 | 72 65 20 73 65 63 74 69 | Structu|re secti|
|00000940| 6f 6e 20 64 65 73 63 72 | 69 62 65 73 20 61 20 6d |on descr|ibes a m|
|00000950| 6f 64 75 6c 65 20 61 6e | 64 20 69 74 73 20 73 74 |odule an|d its st|
|00000960| 72 75 63 74 75 72 65 20 | 69 6e 20 6d 6f 72 65 20 |ructure |in more |
|00000970| 64 65 74 61 69 6c 2e 0d | 54 68 65 20 43 6f 64 65 |detail..|The Code|
|00000980| 20 52 65 73 6f 75 72 63 | 65 73 20 73 65 63 74 69 | Resourc|es secti|
|00000990| 6f 6e 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |on descr|ibes the|
|000009a0| 20 64 69 66 66 65 72 65 | 6e 74 20 6b 69 6e 64 73 | differe|nt kinds|
|000009b0| 20 6f 66 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 | of code| resourc|
|000009c0| 65 73 20 74 68 61 74 20 | 63 61 6e 20 65 78 69 73 |es that |can exis|
|000009d0| 74 20 69 6e 20 61 20 73 | 65 63 75 72 69 74 79 20 |t in a s|ecurity |
|000009e0| 6d 6f 64 75 6c 65 2e 0d | 54 68 65 20 41 63 74 69 |module..|The Acti|
|000009f0| 6f 6e 73 20 73 65 63 74 | 69 6f 6e 20 64 65 73 63 |ons sect|ion desc|
|00000a00| 72 69 62 65 73 20 74 68 | 65 20 61 63 74 69 6f 6e |ribes th|e action|
|00000a10| 73 20 41 52 41 20 73 65 | 6e 64 73 20 74 6f 20 63 |s ARA se|nds to c|
|00000a20| 6f 64 65 20 72 65 73 6f | 75 72 63 65 73 20 74 6f |ode reso|urces to|
|00000a30| 20 72 65 71 75 65 73 74 | 20 73 65 72 76 69 63 65 | request| service|
|00000a40| 73 2e 0d 54 68 65 20 41 | 52 41 20 53 65 72 76 69 |s..The A|RA Servi|
|00000a50| 63 65 20 52 6f 75 74 69 | 6e 65 73 20 73 65 63 74 |ce Routi|nes sect|
|00000a60| 69 6f 6e 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |ion desc|ribes th|
|00000a70| 65 20 73 65 72 76 69 63 | 65 73 20 74 68 61 74 20 |e servic|es that |
|00000a80| 41 52 41 20 70 72 6f 76 | 69 64 65 73 20 74 6f 20 |ARA prov|ides to |
|00000a90| 73 65 63 75 72 69 74 79 | 20 6d 6f 64 75 6c 65 73 |security| modules|
|00000aa0| 2e 0d 41 70 70 65 6e 64 | 69 78 20 41 20 69 73 20 |..Append|ix A is |
|00000ab0| 74 68 65 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |the head|er file |
|00000ac0| 66 6f 72 20 67 61 69 6e | 69 6e 67 20 61 63 63 65 |for gain|ing acce|
|00000ad0| 73 73 20 74 6f 20 41 52 | 41 20 53 65 72 76 69 63 |ss to AR|A Servic|
|00000ae0| 65 20 52 6f 75 74 69 6e | 65 73 2e 0d 41 70 70 65 |e Routin|es..Appe|
|00000af0| 6e 64 69 78 20 42 20 69 | 73 20 61 6e 20 65 6d 70 |ndix B i|s an emp|
|00000b00| 74 79 20 73 68 65 6c 6c | 20 66 6f 72 20 62 75 69 |ty shell| for bui|
|00000b10| 6c 64 69 6e 67 20 61 20 | 63 6f 64 65 20 72 65 73 |lding a |code res|
|00000b20| 6f 75 72 63 65 2e 0d 41 | 70 70 65 6e 64 69 78 20 |ource..A|ppendix |
|00000b30| 43 20 63 6f 6e 74 61 69 | 6e 73 20 6d 69 73 63 65 |C contai|ns misce|
|00000b40| 6c 6c 61 6e 65 6f 75 73 | 20 69 6e 66 6f 72 6d 61 |llaneous| informa|
|00000b50| 74 69 6f 6e 20 61 62 6f | 75 74 20 73 65 63 75 72 |tion abo|ut secur|
|00000b60| 69 74 79 20 6d 6f 64 75 | 6c 65 27 73 20 73 75 63 |ity modu|le's suc|
|00000b70| 68 20 61 73 20 61 20 6d | 6f 64 75 6c 65 73 20 72 |h as a m|odules r|
|00000b80| 75 6e 74 69 6d 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |untime e|nvironme|
|00000b90| 6e 74 2c 20 68 6f 77 20 | 79 6f 75 20 63 61 6e 20 |nt, how |you can |
|00000ba0| 62 75 69 6c 64 20 61 20 | 6d 6f 64 75 6c 65 2c 20 |build a |module, |
|00000bb0| 61 6e 64 20 74 68 65 20 | 65 6e 63 6c 6f 73 65 64 |and the |enclosed|
|00000bc0| 20 64 65 76 65 6c 6f 70 | 65 72 20 64 69 73 6b 20 | develop|er disk |
|00000bd0| 63 6f 6e 74 65 6e 74 73 | 2e 0d 4f 76 65 72 76 69 |contents|..Overvi|
|00000be0| 65 77 0d 41 20 73 65 63 | 75 72 69 74 79 20 6d 6f |ew.A sec|urity mo|
|00000bf0| 64 75 6c 65 20 69 73 20 | 61 20 4d 61 63 69 6e 74 |dule is |a Macint|
|00000c00| 6f 73 68 20 66 69 6c 65 | 20 74 79 70 65 20 27 43 |osh file| type 'C|
|00000c10| 4c 4d 50 27 2e 20 20 54 | 68 65 20 63 72 65 61 74 |LMP'. T|he creat|
|00000c20| 6f 72 20 69 73 20 76 65 | 6e 64 6f 72 20 73 70 65 |or is ve|ndor spe|
|00000c30| 63 69 66 69 63 2e 20 20 | 59 6f 75 20 63 61 6e 20 |cific. |You can |
|00000c40| 72 65 71 75 65 73 74 20 | 61 20 63 72 65 61 74 6f |request |a creato|
|00000c50| 72 20 66 6f 72 20 79 6f | 75 72 20 73 65 63 75 72 |r for yo|ur secur|
|00000c60| 69 74 79 20 6d 6f 64 75 | 6c 65 20 66 72 6f 6d 20 |ity modu|le from |
|00000c70| 41 70 70 6c 65 20 44 65 | 76 65 6c 6f 70 65 72 20 |Apple De|veloper |
|00000c80| 54 65 63 68 6e 69 63 61 | 6c 20 53 75 70 70 6f 72 |Technica|l Suppor|
|00000c90| 74 20 28 44 54 53 29 2e | 0d 49 6e 74 65 72 6e 61 |t (DTS).|.Interna|
|00000ca0| 6c 6c 79 20 61 20 73 65 | 63 75 72 69 74 79 20 6d |lly a se|curity m|
|00000cb0| 6f 64 75 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 61 |odule co|ntains a|
|00000cc0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 70 65 63 69 | number |of speci|
|00000cd0| 61 6c 20 72 65 73 6f 75 | 72 63 65 73 2e 20 20 45 |al resou|rces. E|
|00000ce0| 76 65 72 79 20 6d 6f 64 | 75 6c 65 20 6d 75 73 74 |very mod|ule must|
|00000cf0| 20 63 6f 6e 74 61 69 6e | 20 61 6e 20 69 6e 66 6f | contain| an info|
|00000d00| 72 6d 61 74 69 6f 6e 20 | 72 65 73 6f 75 72 63 65 |rmation |resource|
|00000d10| 20 74 68 61 74 20 64 65 | 73 63 72 69 62 65 73 20 | that de|scribes |
|00000d20| 79 6f 75 72 20 6d 6f 64 | 75 6c 65 73 20 63 61 70 |your mod|ules cap|
|00000d30| 61 62 69 6c 69 74 69 65 | 73 2e 20 20 41 64 64 69 |abilitie|s. Addi|
|00000d40| 74 69 6f 6e 61 6c 6c 79 | 20 79 6f 75 72 20 6d 6f |tionally| your mo|
|00000d50| 64 75 6c 65 20 6d 61 79 | 20 63 6f 6e 74 61 69 6e |dule may| contain|
|00000d60| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 64 | a numbe|r of cod|
|00000d70| 65 20 72 65 73 6f 75 72 | 63 65 73 2e 20 20 54 68 |e resour|ces. Th|
|00000d80| 65 73 65 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |ese code| resourc|
|00000d90| 65 73 20 61 72 65 20 65 | 78 65 63 75 74 65 64 20 |es are e|xecuted |
|00000da0| 74 6f 20 70 65 72 66 6f | 72 6d 20 76 61 72 69 6f |to perfo|rm vario|
|00000db0| 75 73 20 66 75 6e 63 74 | 69 6f 6e 73 20 28 65 2e |us funct|ions (e.|
|00000dc0| 67 2e 20 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |g. authe|nticatio|
|00000dd0| 6e 2c 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |n, confi|guration|
|00000de0| 29 20 66 6f 72 20 79 6f | 75 72 20 73 65 63 75 72 |) for yo|ur secur|
|00000df0| 69 74 79 20 6d 6f 64 75 | 6c 65 2e 20 20 41 52 41 |ity modu|le. ARA|
|00000e00| 20 74 68 65 6e 20 63 61 | 6e 20 75 73 65 20 79 6f | then ca|n use yo|
|00000e10| 75 72 20 6d 6f 64 75 6c | 65 20 74 6f 20 61 75 74 |ur modul|e to aut|
|00000e20| 68 65 6e 74 69 63 61 74 | 65 20 61 20 75 73 65 72 |henticat|e a user|
|00000e30| 27 73 20 69 64 65 6e 74 | 69 74 79 20 62 65 79 6f |'s ident|ity beyo|
|00000e40| 6e 64 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |nd the p|assword |
|00000e50| 6d 65 63 68 61 6e 69 73 | 6d 20 74 68 61 74 20 69 |mechanis|m that i|
|00000e60| 74 20 63 6f 6e 74 61 69 | 6e 73 2e 20 20 41 52 41 |t contai|ns. ARA|
|00000e70| 20 73 65 63 75 72 69 74 | 79 20 6d 6f 64 75 6c 65 | securit|y module|
|00000e80| 73 20 74 68 61 74 20 61 | 72 65 20 70 6c 61 63 65 |s that a|re place|
|00000e90| 64 20 69 6e 20 74 68 65 | 20 45 78 74 65 6e 73 69 |d in the| Extensi|
|00000ea0| 6f 6e 73 20 66 6f 6c 64 | 65 72 2e 0d 54 68 65 20 |ons fold|er..The |
|00000eb0| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 69 61 67 72 61 |followin|g diagra|
|00000ec0| 6d 20 69 6c 6c 75 73 74 | 72 61 74 65 73 20 74 68 |m illust|rates th|
|00000ed0| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |e conten|ts of a |
|00000ee0| 73 65 63 75 72 69 74 79 | 20 6d 6f 64 75 6c 65 3a |security| module:|
|00000ef0| 0d 54 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |.The inf|ormation|
|00000f00| 20 72 65 73 6f 75 72 63 | 65 20 69 73 20 64 65 73 | resourc|e is des|
|00000f10| 63 72 69 62 65 64 20 69 | 6e 20 74 68 65 20 6d 6f |cribed i|n the mo|
|00000f20| 64 75 6c 65 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |dule Inf|ormation|
|00000f30| 20 52 65 73 6f 75 72 63 | 65 20 73 65 63 74 69 6f | Resourc|e sectio|
|00000f40| 6e 2e 0d 45 61 63 68 20 | 6f 66 20 74 68 65 20 63 |n..Each |of the c|
|00000f50| 6f 64 65 20 72 65 73 6f | 75 72 63 65 73 20 70 72 |ode reso|urces pr|
|00000f60| 6f 76 69 64 65 73 20 61 | 6e 20 65 6e 74 72 79 20 |ovides a|n entry |
|00000f70| 70 6f 69 6e 74 2e 20 20 | 54 68 69 73 20 69 73 20 |point. |This is |
|00000f80| 61 20 72 6f 75 74 69 6e | 65 20 77 68 69 63 68 20 |a routin|e which |
|00000f90| 77 69 6c 6c 20 62 65 20 | 63 61 6c 6c 65 64 20 77 |will be |called w|
|00000fa0| 68 65 6e 20 41 52 41 20 | 6e 65 65 64 73 20 74 6f |hen ARA |needs to|
|00000fb0| 20 65 78 65 63 75 74 65 | 20 61 20 63 6f 64 65 20 | execute| a code |
|00000fc0| 72 65 73 6f 75 72 63 65 | 2e 20 20 54 68 65 20 65 |resource|. The e|
|00000fd0| 6e 74 72 79 20 70 6f 69 | 6e 74 20 72 6f 75 74 69 |ntry poi|nt routi|
|00000fe0| 6e 65 20 61 6e 64 20 74 | 68 65 20 6f 70 65 72 61 |ne and t|he opera|
|00000ff0| 74 69 6f 6e 73 20 69 74 | 20 6d 75 73 74 20 73 75 |tions it| must su|
|00001000| 70 70 6f 72 74 20 61 72 | 65 20 64 65 73 63 72 69 |pport ar|e descri|
|00001010| 62 65 64 20 69 6e 20 74 | 68 65 20 43 6f 64 65 20 |bed in t|he Code |
|00001020| 52 65 73 6f 75 72 63 65 | 20 53 74 72 75 63 74 75 |Resource| Structu|
|00001030| 72 65 20 73 65 63 74 69 | 6f 6e 2e 0d 57 68 65 6e |re secti|on..When|
|00001040| 20 61 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 | a code |resource|
|00001050| 20 69 73 20 6c 6f 61 64 | 65 64 2c 20 69 74 20 77 | is load|ed, it w|
|00001060| 69 6c 6c 20 62 65 20 61 | 62 6c 65 20 74 6f 20 61 |ill be a|ble to a|
|00001070| 63 63 65 73 73 20 41 52 | 41 20 74 6f 20 72 65 71 |ccess AR|A to req|
|00001080| 75 65 73 74 20 63 65 72 | 74 61 69 6e 20 73 65 72 |uest cer|tain ser|
|00001090| 76 69 63 65 73 2e 20 20 | 46 6f 72 20 65 78 61 6d |vices. |For exam|
|000010a0| 70 6c 65 20 69 74 20 63 | 61 6e 20 68 61 76 65 20 |ple it c|an have |
|000010b0| 64 61 74 61 20 73 65 6e | 74 20 74 6f 20 74 68 65 |data sen|t to the|
|000010c0| 20 72 65 6d 6f 74 65 20 | 6d 61 63 68 69 6e 65 2e | remote |machine.|
|000010d0| 20 20 54 68 65 73 65 20 | 73 65 72 76 69 63 65 73 | These |services|
|000010e0| 20 61 72 65 20 70 72 6f | 76 69 64 65 64 20 61 73 | are pro|vided as|
|000010f0| 20 72 6f 75 74 69 6e 65 | 73 20 74 68 61 74 20 63 | routine|s that c|
|00001100| 61 6e 20 62 65 20 63 61 | 6c 6c 65 64 20 66 72 6f |an be ca|lled fro|
|00001110| 6d 20 61 20 73 65 63 75 | 72 69 74 79 20 6d 6f 64 |m a secu|rity mod|
|00001120| 75 6c 65 2e 20 20 54 68 | 65 79 20 61 72 65 20 64 |ule. Th|ey are d|
|00001130| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 65 20 |escribed| in the |
|00001140| 41 52 41 20 53 65 72 76 | 69 63 65 20 52 6f 75 74 |ARA Serv|ice Rout|
|00001150| 69 6e 65 73 20 73 65 63 | 74 69 6f 6e 2e 0d 54 68 |ines sec|tion..Th|
|00001160| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 64 69 61 67 |e follow|ing diag|
|00001170| 72 61 6d 20 69 73 20 61 | 20 68 69 67 68 20 6c 65 |ram is a| high le|
|00001180| 76 65 6c 20 76 69 65 77 | 20 6f 66 20 61 20 6c 6f |vel view| of a lo|
|00001190| 61 64 65 64 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |aded cod|e resour|
|000011a0| 63 65 3a 0d 53 65 63 75 | 72 69 74 79 20 4d 6f 64 |ce:.Secu|rity Mod|
|000011b0| 75 6c 65 20 53 74 72 75 | 63 74 75 72 65 0d 41 20 |ule Stru|cture.A |
|000011c0| 73 65 63 75 72 69 74 79 | 20 6d 6f 64 75 6c 65 20 |security| module |
|000011d0| 69 73 20 62 75 69 6c 74 | 20 62 79 20 63 72 65 61 |is built| by crea|
|000011e0| 74 69 6e 67 20 61 20 4d | 61 63 69 6e 74 6f 73 68 |ting a M|acintosh|
|000011f0| 20 66 69 6c 65 20 74 68 | 61 74 20 68 61 73 20 61 | file th|at has a|
|00001200| 20 27 43 4c 4d 50 27 20 | 74 79 70 65 2e 20 20 54 | 'CLMP' |type. T|
|00001210| 68 69 73 20 69 73 20 75 | 73 65 64 20 62 79 20 41 |his is u|sed by A|
|00001220| 52 41 20 74 6f 20 69 64 | 65 6e 74 69 66 79 20 74 |RA to id|entify t|
|00001230| 68 65 20 66 69 6c 65 20 | 61 73 20 61 20 73 65 63 |he file |as a sec|
|00001240| 75 72 69 74 79 20 6d 6f | 64 75 6c 65 2e 20 20 54 |urity mo|dule. T|
|00001250| 68 65 20 6d 6f 64 75 6c | 65 20 68 61 73 20 74 6f |he modul|e has to|
|00001260| 20 62 65 20 70 6c 61 63 | 65 64 20 69 6e 20 74 68 | be plac|ed in th|
|00001270| 65 20 45 78 74 65 6e 73 | 69 6f 6e 73 20 66 6f 6c |e Extens|ions fol|
|00001280| 64 65 72 20 66 6f 72 20 | 41 52 41 20 74 6f 20 66 |der for |ARA to f|
|00001290| 69 6e 64 20 69 74 2e 20 | 20 59 6f 75 20 63 61 6e |ind it. | You can|
|000012a0| 20 64 6f 20 74 68 69 73 | 20 62 79 20 64 72 61 67 | do this| by drag|
|000012b0| 67 69 6e 67 20 69 74 20 | 6f 6e 20 74 6f 70 20 6f |ging it |on top o|
|000012c0| 66 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 66 6f |f your s|ystem fo|
|000012d0| 6c 64 65 72 20 61 66 74 | 65 72 20 69 6e 73 74 61 |lder aft|er insta|
|000012e0| 6c 6c 69 6e 67 20 41 52 | 41 2e 20 20 54 68 65 20 |lling AR|A. The |
|000012f0| 6d 6f 64 75 6c 65 27 73 | 20 63 72 65 61 74 6f 72 |module's| creator|
|00001300| 20 69 73 20 64 65 66 69 | 6e 65 64 20 62 79 20 79 | is defi|ned by y|
|00001310| 6f 75 2e 20 20 59 6f 75 | 20 6d 75 73 74 20 72 65 |ou. You| must re|
|00001320| 71 75 65 73 74 20 61 20 | 63 72 65 61 74 6f 72 20 |quest a |creator |
|00001330| 66 72 6f 6d 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |from Dev|eloper T|
|00001340| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00001350| 20 28 44 54 53 29 2e 0d | 41 64 64 69 74 69 6f 6e | (DTS)..|Addition|
|00001360| 61 6c 6c 79 20 74 68 65 | 20 66 69 6c 65 20 6d 75 |ally the| file mu|
|00001370| 73 74 20 63 6f 6e 74 61 | 69 6e 20 61 74 20 6c 65 |st conta|in at le|
|00001380| 61 73 74 20 61 20 27 73 | 69 6e 66 27 20 72 65 73 |ast a 's|inf' res|
|00001390| 6f 75 72 63 65 2c 20 61 | 6e 64 20 61 20 6e 75 6d |ource, a|nd a num|
|000013a0| 62 65 72 20 6f 66 20 63 | 6f 64 65 20 72 65 73 6f |ber of c|ode reso|
|000013b0| 75 72 63 65 73 20 66 6f | 72 20 70 65 72 66 6f 72 |urces fo|r perfor|
|000013c0| 6d 69 6e 67 20 76 61 72 | 69 6f 75 73 20 6f 70 65 |ming var|ious ope|
|000013d0| 72 61 74 69 6f 6e 73 2e | 20 20 54 68 65 20 27 73 |rations.| The 's|
|000013e0| 69 6e 66 27 20 72 65 73 | 6f 75 72 63 65 20 61 6e |inf' res|ource an|
|000013f0| 64 20 74 68 65 20 63 6f | 64 65 20 72 65 73 6f 75 |d the co|de resou|
|00001400| 72 63 65 73 20 61 72 65 | 20 64 65 73 63 72 69 62 |rces are| describ|
|00001410| 65 64 20 62 65 6c 6f 77 | 2e 0d 43 75 72 72 65 6e |ed below|..Curren|
|00001420| 74 6c 79 20 74 68 65 72 | 65 20 61 72 65 20 66 69 |tly ther|e are fi|
|00001430| 76 65 20 74 79 70 65 73 | 20 6f 66 20 63 6f 64 65 |ve types| of code|
|00001440| 20 72 65 73 6f 75 72 63 | 65 73 20 74 68 61 74 20 | resourc|es that |
|00001450| 41 52 41 20 73 75 70 70 | 6f 72 74 73 2e 20 20 54 |ARA supp|orts. T|
|00001460| 68 65 79 20 61 72 65 20 | 64 65 73 63 72 69 62 65 |hey are |describe|
|00001470| 64 20 69 6e 20 73 75 62 | 2d 73 65 63 74 69 6f 6e |d in sub|-section|
|00001480| 73 20 62 65 6c 6f 77 2e | 20 0d 43 6f 64 65 20 72 |s below.| .Code r|
|00001490| 65 73 6f 75 72 63 65 73 | 20 6d 75 73 74 20 68 61 |esources| must ha|
|000014a0| 76 65 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |ve the a|ppropria|
|000014b0| 74 65 20 74 79 70 65 2c | 20 61 6e 64 20 74 68 65 |te type,| and the|
|000014c0| 69 72 20 72 65 73 6f 75 | 72 63 65 20 49 44 20 73 |ir resou|rce ID s|
|000014d0| 68 6f 75 6c 64 20 62 65 | 20 32 30 30 2e 0d 4d 6f |hould be| 200..Mo|
|000014e0| 64 75 6c 65 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |dule Inf|ormation|
|000014f0| 20 52 65 73 6f 75 72 63 | 65 20 28 27 73 69 6e 66 | Resourc|e ('sinf|
|00001500| 27 20 49 44 20 32 30 30 | 29 0d 59 6f 75 72 20 6d |' ID 200|).Your m|
|00001510| 6f 64 75 6c 65 20 6d 75 | 73 74 20 68 61 76 65 20 |odule mu|st have |
|00001520| 61 20 27 73 69 6e 66 27 | 20 72 65 73 6f 75 72 63 |a 'sinf'| resourc|
|00001530| 65 20 77 69 74 68 20 61 | 20 72 65 73 6f 75 72 63 |e with a| resourc|
|00001540| 65 20 49 44 20 6f 66 20 | 32 30 30 2e 20 20 54 68 |e ID of |200. Th|
|00001550| 65 20 27 73 69 6e 66 27 | 20 72 65 73 6f 75 72 63 |e 'sinf'| resourc|
|00001560| 65 20 64 65 73 63 72 69 | 62 65 73 20 77 68 61 74 |e descri|bes what|
|00001570| 20 74 68 65 20 6d 6f 64 | 75 6c 65 27 73 20 63 61 | the mod|ule's ca|
|00001580| 70 61 62 69 6c 69 74 69 | 65 73 20 61 72 65 2e 0d |pabiliti|es are..|
|00001590| 49 6e 20 79 6f 75 72 20 | 72 65 73 6f 75 72 63 65 |In your |resource|
|000015a0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 66 69 6c 65 | definit|ion file|
|000015b0| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 63 72 65 |, you sh|ould cre|
|000015c0| 61 74 65 20 61 20 27 73 | 69 6e 66 27 20 72 65 73 |ate a 's|inf' res|
|000015d0| 6f 75 72 63 65 2c 20 61 | 6e 64 20 66 69 6c 6c 20 |ource, a|nd fill |
|000015e0| 69 6e 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |in the a|ppropria|
|000015f0| 74 65 20 66 69 65 6c 64 | 73 2e 20 20 54 68 65 20 |te field|s. The |
|00001600| 74 65 6d 70 6c 61 74 65 | 20 66 6f 72 20 74 68 65 |template| for the|
|00001610| 20 72 65 73 6f 75 72 63 | 65 20 69 73 20 64 65 66 | resourc|e is def|
|00001620| 69 6e 65 64 20 69 6e 20 | 61 20 66 69 6c 65 20 6e |ined in |a file n|
|00001630| 61 6d 65 64 20 22 53 65 | 63 75 72 69 74 79 54 79 |amed "Se|curityTy|
|00001640| 70 65 73 2e 72 22 2e 20 | 20 54 68 69 73 20 66 69 |pes.r". | This fi|
|00001650| 6c 65 20 69 73 20 66 6f | 75 6e 64 20 6f 6e 20 74 |le is fo|und on t|
|00001660| 68 65 20 64 65 76 65 6c | 6f 70 65 72 20 64 69 73 |he devel|oper dis|
|00001670| 6b 2e 20 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |k. The |followin|
|00001680| 67 20 69 73 20 74 68 65 | 20 74 65 6d 70 6c 61 74 |g is the| templat|
|00001690| 65 20 66 6f 72 20 61 20 | 27 73 69 6e 66 27 20 72 |e for a |'sinf' r|
|000016a0| 65 73 6f 75 72 63 65 3a | 0d 74 79 70 65 20 27 73 |esource:|.type 's|
|000016b0| 69 6e 66 27 09 7b 09 09 | 09 09 09 2f 2a 20 73 65 |inf'.{..|.../* se|
|000016c0| 63 75 72 69 74 79 20 69 | 6e 66 6f 72 6d 61 74 69 |curity i|nformati|
|000016d0| 6f 6e 20 72 65 73 6f 75 | 72 63 65 20 2a 2f 0d 09 |on resou|rce */..|
|000016e0| 09 75 6e 73 69 67 6e 65 | 64 09 6c 6f 6e 67 69 6e |.unsigne|d.longin|
|000016f0| 74 3b 09 09 2f 2a 20 66 | 66 6c 61 67 73 20 63 6f |t;../* f|flags co|
|00001700| 6e 74 61 69 6e 73 20 69 | 6e 66 6f 20 61 62 6f 75 |ntains i|nfo abou|
|00001710| 74 20 6d 6f 64 75 6c 65 | 20 2a 2f 0d 09 09 6c 69 |t module| */...li|
|00001720| 74 65 72 61 6c 09 09 6c | 6f 6e 67 69 6e 74 3b 09 |teral..l|ongint;.|
|00001730| 09 2f 2a 20 66 73 69 67 | 6e 61 74 75 72 65 20 69 |./* fsig|nature i|
|00001740| 64 65 6e 74 69 66 69 65 | 73 20 6d 6f 64 75 6c 65 |dentifie|s module|
|00001750| 20 2a 2f 0d 09 09 75 6e | 73 69 67 6e 65 64 09 6c | */...un|signed.l|
|00001760| 6f 6e 67 69 6e 74 3b 09 | 09 2f 2a 20 66 76 65 72 |ongint;.|./* fver|
|00001770| 73 69 6f 6e 20 2a 2f 0d | 09 09 75 6e 73 69 67 6e |sion */.|..unsign|
|00001780| 65 64 20 09 6c 6f 6e 67 | 69 6e 74 3b 09 09 2f 2a |ed .long|int;../*|
|00001790| 20 66 6d 69 6e 5f 76 65 | 72 73 69 6f 6e 20 2a 2f | fmin_ve|rsion */|
|000017a0| 0d 09 09 75 6e 73 69 67 | 6e 65 64 09 6c 6f 6e 67 |...unsig|ned.long|
|000017b0| 69 6e 74 3b 09 09 2f 2a | 20 66 6d 61 78 5f 76 65 |int;../*| fmax_ve|
|000017c0| 72 73 69 6f 6e 20 2a 2f | 0d 09 09 75 6e 73 69 67 |rsion */|...unsig|
|000017d0| 6e 65 64 09 6c 6f 6e 67 | 69 6e 74 3b 09 09 2f 2a |ned.long|int;../*|
|000017e0| 20 66 73 65 72 76 65 72 | 5f 64 61 74 61 20 2a 2f | fserver|_data */|
|000017f0| 0d 09 09 75 6e 73 69 67 | 6e 65 64 09 6c 6f 6e 67 |...unsig|ned.long|
|00001800| 69 6e 74 3b 09 09 2f 2a | 20 66 63 6c 69 65 6e 74 |int;../*| fclient|
|00001810| 5f 64 61 74 61 20 2a 2f | 0d 09 09 70 73 74 72 69 |_data */|...pstri|
|00001820| 6e 67 5b 20 33 31 20 5d | 3b 09 09 09 09 2f 2a 20 |ng[ 31 ]|;..../* |
|00001830| 6d 6f 64 75 6c 65 20 6e | 61 6d 65 20 2a 2f 0d 7d |module n|ame */.}|
|00001840| 3b 0d 54 68 65 20 66 69 | 72 73 74 20 6c 6f 6e 67 |;.The fi|rst long|
|00001850| 69 6e 74 20 69 73 20 61 | 20 73 65 74 20 6f 66 20 |int is a| set of |
|00001860| 66 6c 61 67 73 20 74 68 | 61 74 20 64 65 66 69 6e |flags th|at defin|
|00001870| 65 20 77 68 61 74 20 74 | 68 65 20 63 61 70 61 62 |e what t|he capab|
|00001880| 69 6c 69 74 69 65 73 20 | 6f 66 20 74 68 65 20 6d |ilities |of the m|
|00001890| 6f 64 75 6c 65 20 61 72 | 65 2e 20 20 54 68 65 20 |odule ar|e. The |
|000018a0| 76 61 6c 75 65 73 20 66 | 6f 72 20 74 68 65 20 66 |values f|or the f|
|000018b0| 6c 61 67 73 20 61 72 65 | 20 64 65 66 69 6e 65 64 |lags are| defined|
|000018c0| 20 69 6e 20 22 53 65 63 | 75 72 69 74 79 52 65 73 | in "Sec|urityRes|
|000018d0| 49 6e 66 6f 2e 68 22 2c | 20 66 6f 75 6e 64 20 6f |Info.h",| found o|
|000018e0| 6e 20 74 68 65 20 64 65 | 76 65 6c 6f 70 65 72 20 |n the de|veloper |
|000018f0| 64 69 73 6b 2e 20 20 54 | 68 65 20 76 61 6c 75 65 |disk. T|he value|
|00001900| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 61 20 63 6f |s should| be a co|
|00001910| 6d 62 69 6e 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |mbinatio|n of the|
|00001920| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 75 73 69 6e 67 | followi|ng using|
|00001930| 20 74 68 65 20 22 4f 52 | 22 20 6f 70 65 72 61 74 | the "OR|" operat|
|00001940| 6f 72 3a 0d 6b 53 65 63 | 75 72 69 74 79 48 61 73 |or:.kSec|urityHas|
|00001950| 4c 69 6e 65 4c 65 76 65 | 6c 09 55 73 65 20 74 68 |LineLeve|l.Use th|
|00001960| 69 73 20 66 6c 61 67 20 | 69 66 20 79 6f 75 72 20 |is flag |if your |
|00001970| 6d 6f 64 75 6c 65 20 69 | 73 20 74 6f 20 62 65 20 |module i|s to be |
|00001980| 75 73 65 64 20 66 6f 72 | 20 6c 69 6e 65 2d 6c 65 |used for| line-le|
|00001990| 76 65 6c 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |vel auth|enticati|
|000019a0| 6f 6e 20 6f 66 20 61 20 | 75 73 65 72 2e 20 20 54 |on of a |user. T|
|000019b0| 68 69 73 20 66 6c 61 67 | 20 63 61 75 73 65 73 20 |his flag| causes |
|000019c0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 74 6f 20 62 65 |the modu|le to be|
|000019d0| 20 64 69 73 70 6c 61 79 | 65 64 20 6f 6e 20 74 68 | display|ed on th|
|000019e0| 65 20 63 6c 69 65 6e 74 | 20 73 69 64 65 2e 20 20 |e client| side. |
|000019f0| 49 74 20 6c 65 74 27 73 | 20 74 68 65 20 75 73 65 |It let's| the use|
|00001a00| 72 20 73 65 6c 65 63 74 | 20 74 68 69 73 20 6d 6f |r select| this mo|
|00001a10| 64 75 6c 65 20 66 6f 72 | 20 61 20 63 6f 6e 6e 65 |dule for| a conne|
|00001a20| 63 74 69 6f 6e 20 64 6f | 63 75 6d 65 6e 74 2c 20 |ction do|cument, |
|00001a30| 75 73 65 64 20 74 6f 20 | 63 6f 6e 6e 65 63 74 20 |used to |connect |
|00001a40| 74 6f 20 61 20 70 6f 72 | 74 20 77 69 74 68 20 61 |to a por|t with a|
|00001a50| 20 70 68 79 73 69 63 61 | 6c 20 73 65 63 75 72 69 | physica|l securi|
|00001a60| 74 79 20 64 65 76 69 63 | 65 2e 09 0d 6b 53 65 63 |ty devic|e...kSec|
|00001a70| 75 72 69 74 79 48 61 73 | 50 72 6f 74 6f 63 6f 6c |urityHas|Protocol|
|00001a80| 4c 65 76 65 6c 0d 09 54 | 68 69 73 20 66 6c 61 67 |Level..T|his flag|
|00001a90| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 65 20 6d | indicat|es the m|
|00001aa0| 6f 64 75 6c 65 20 70 72 | 6f 76 69 64 65 73 20 70 |odule pr|ovides p|
|00001ab0| 72 6f 74 6f 63 6f 6c 20 | 6c 65 76 65 6c 20 61 75 |rotocol |level au|
|00001ac0| 74 68 65 6e 74 69 63 61 | 74 69 6f 6e 2e 20 20 49 |thentica|tion. I|
|00001ad0| 74 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 69 6e |t can be| used in|
|00001ae0| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 20 77 69 74 | combina|tion wit|
|00001af0| 68 20 74 68 65 20 6b 53 | 65 63 75 72 69 74 79 48 |h the kS|ecurityH|
|00001b00| 61 73 53 65 72 76 65 72 | 53 69 64 65 20 61 6e 64 |asServer|Side and|
|00001b10| 20 6b 53 65 63 75 72 69 | 74 79 48 61 73 43 6c 69 | kSecuri|tyHasCli|
|00001b20| 65 6e 74 53 69 64 65 20 | 66 6c 61 67 73 20 74 6f |entSide |flags to|
|00001b30| 20 69 6e 64 69 63 61 74 | 65 20 69 66 20 74 68 65 | indicat|e if the|
|00001b40| 20 6d 6f 64 75 6c 65 20 | 73 75 70 70 6f 72 74 73 | module |supports|
|00001b50| 20 74 68 65 20 63 6c 69 | 65 6e 74 20 73 69 64 65 | the cli|ent side|
|00001b60| 2c 20 73 65 72 76 65 72 | 20 73 69 64 65 2c 20 6f |, server| side, o|
|00001b70| 72 20 62 6f 74 68 2e 09 | 0d 6b 53 65 63 75 72 69 |r both..|.kSecuri|
|00001b80| 74 79 48 61 73 53 65 72 | 76 65 72 53 69 64 65 0d |tyHasSer|verSide.|
|00001b90| 09 54 68 69 73 20 66 6c | 61 67 20 69 73 20 73 65 |.This fl|ag is se|
|00001ba0| 74 20 66 6f 72 20 61 20 | 6d 6f 64 75 6c 65 20 74 |t for a |module t|
|00001bb0| 68 61 74 20 70 72 6f 76 | 69 64 65 73 20 74 68 65 |hat prov|ides the|
|00001bc0| 20 63 6f 64 65 20 72 65 | 73 6f 75 72 63 65 73 20 | code re|sources |
|00001bd0| 6e 65 65 64 65 64 20 66 | 6f 72 20 74 68 65 20 73 |needed f|or the s|
|00001be0| 65 72 76 65 72 20 73 69 | 64 65 2e 20 20 41 6e 79 |erver si|de. Any|
|00001bf0| 20 6d 6f 64 75 6c 65 20 | 74 68 61 74 20 68 61 73 | module |that has|
|00001c00| 20 63 6f 64 65 20 74 6f | 20 62 65 20 65 78 65 63 | code to| be exec|
|00001c10| 75 74 65 64 20 6f 6e 20 | 74 68 65 20 73 65 72 76 |uted on |the serv|
|00001c20| 65 72 20 73 68 6f 75 6c | 64 20 73 65 74 20 74 68 |er shoul|d set th|
|00001c30| 69 73 20 66 6c 61 67 2c | 20 69 6e 63 6c 75 64 69 |is flag,| includi|
|00001c40| 6e 67 20 75 73 65 72 20 | 63 6f 6e 66 69 67 75 72 |ng user |configur|
|00001c50| 61 74 69 6f 6e 2e 09 0d | 6b 53 65 63 75 72 69 74 |ation...|kSecurit|
|00001c60| 79 48 61 73 43 6c 69 65 | 6e 74 53 69 64 65 0d 09 |yHasClie|ntSide..|
|00001c70| 54 68 69 73 20 66 6c 61 | 67 20 69 73 20 73 65 74 |This fla|g is set|
|00001c80| 20 66 6f 72 20 61 20 6d | 6f 64 75 6c 65 20 74 68 | for a m|odule th|
|00001c90| 61 74 20 70 72 6f 76 69 | 64 65 73 20 63 6f 64 65 |at provi|des code|
|00001ca0| 20 72 65 73 6f 75 72 63 | 65 73 20 6e 65 65 64 65 | resourc|es neede|
|00001cb0| 64 20 66 6f 72 20 74 68 | 65 20 63 6c 69 65 6e 74 |d for th|e client|
|00001cc0| 20 73 69 64 65 2e 20 20 | 41 6e 79 20 6d 6f 64 75 | side. |Any modu|
|00001cd0| 6c 65 20 74 68 61 74 20 | 68 61 73 20 63 6f 64 65 |le that |has code|
|00001ce0| 20 74 6f 20 62 65 20 65 | 78 65 63 75 74 65 64 20 | to be e|xecuted |
|00001cf0| 6f 6e 20 74 68 65 20 63 | 6c 69 65 6e 74 20 73 68 |on the c|lient sh|
|00001d00| 6f 75 6c 64 20 73 65 74 | 20 74 68 69 73 20 66 6c |ould set| this fl|
|00001d10| 61 67 2e 09 0d 6b 53 65 | 63 75 72 69 74 79 48 61 |ag...kSe|curityHa|
|00001d20| 73 55 73 65 72 43 6f 6e | 66 69 67 0d 09 54 68 69 |sUserCon|fig..Thi|
|00001d30| 73 20 66 6c 61 67 20 69 | 73 20 75 73 65 64 20 66 |s flag i|s used f|
|00001d40| 6f 72 20 61 20 70 72 6f | 74 6f 63 6f 6c 2d 6c 65 |or a pro|tocol-le|
|00001d50| 76 65 6c 20 6d 6f 64 75 | 6c 65 20 74 68 61 74 20 |vel modu|le that |
|00001d60| 68 61 73 20 61 20 63 6f | 64 65 20 72 65 73 6f 75 |has a co|de resou|
|00001d70| 72 63 65 20 66 6f 72 20 | 63 6f 6e 66 69 67 75 72 |rce for |configur|
|00001d80| 69 6e 67 20 75 73 65 72 | 73 20 6f 6e 20 74 68 65 |ing user|s on the|
|00001d90| 20 73 65 72 76 65 72 2e | 20 20 48 61 73 20 27 55 | server.| Has 'U|
|00001da0| 43 4e 46 27 20 72 65 73 | 6f 75 72 63 65 2e 09 0d |CNF' res|ource...|
|00001db0| 6b 53 65 63 75 72 69 74 | 79 48 61 73 43 6f 6e 6e |kSecurit|yHasConn|
|00001dc0| 65 63 74 69 6f 6e 43 6f | 6e 66 69 67 0d 09 54 68 |ectionCo|nfig..Th|
|00001dd0| 69 73 20 66 6c 61 67 20 | 69 73 20 75 73 65 64 20 |is flag |is used |
|00001de0| 66 6f 72 20 61 20 6c 69 | 6e 65 2d 6c 65 76 65 6c |for a li|ne-level|
|00001df0| 20 6d 6f 64 75 6c 65 20 | 74 68 61 74 20 68 61 73 | module |that has|
|00001e00| 20 61 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 | a code |resource|
|00001e10| 20 66 6f 72 20 73 65 63 | 75 72 69 74 79 20 63 6f | for sec|urity co|
|00001e20| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 6f 6e 20 74 |nfigurat|ion on t|
|00001e30| 68 65 20 63 6c 69 65 6e | 74 20 73 69 64 65 2e 20 |he clien|t side. |
|00001e40| 20 48 61 73 20 61 20 27 | 43 43 4e 46 27 20 72 65 | Has a '|CCNF' re|
|00001e50| 73 6f 75 72 63 65 2e 09 | 0d 6b 53 65 63 75 72 69 |source..|.kSecuri|
|00001e60| 74 79 48 61 73 55 73 65 | 72 44 69 61 6c 6f 67 09 |tyHasUse|rDialog.|
|00001e70| 44 6f 6e 27 74 20 75 73 | 65 20 74 68 69 73 20 66 |Don't us|e this f|
|00001e80| 6c 61 67 2e 09 0d 6b 53 | 65 63 75 72 69 74 79 48 |lag...kS|ecurityH|
|00001e90| 61 73 43 6f 6e 6e 65 63 | 74 69 6f 6e 44 69 61 6c |asConnec|tionDial|
|00001ea0| 6f 67 20 09 44 6f 6e 27 | 74 20 75 73 65 20 74 68 |og .Don'|t use th|
|00001eb0| 69 73 20 66 6c 61 67 2e | 09 0d 0d 54 68 65 20 73 |is flag.|...The s|
|00001ec0| 65 63 6f 6e 64 20 6c 6f | 6e 67 69 6e 74 20 69 73 |econd lo|ngint is|
|00001ed0| 20 74 68 65 20 73 69 67 | 6e 61 74 75 72 65 20 6f | the sig|nature o|
|00001ee0| 66 20 74 68 65 20 6d 6f | 64 75 6c 65 2e 20 20 54 |f the mo|dule. T|
|00001ef0| 68 69 73 20 76 61 6c 75 | 65 20 75 6e 69 71 75 65 |his valu|e unique|
|00001f00| 6c 79 20 69 64 65 6e 74 | 69 66 69 65 73 20 79 6f |ly ident|ifies yo|
|00001f10| 75 72 20 73 65 63 75 72 | 69 74 79 20 6d 6f 64 75 |ur secur|ity modu|
|00001f20| 6c 65 2e 20 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |le. You| should |
|00001f30| 72 65 73 65 72 76 65 20 | 61 20 76 61 6c 75 65 20 |reserve |a value |
|00001f40| 74 68 72 6f 75 67 68 20 | 41 70 70 6c 65 20 44 65 |through |Apple De|
|00001f50| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|00001f60| 6c 20 53 75 70 70 6f 72 | 74 20 28 44 54 53 29 2e |l Suppor|t (DTS).|
|00001f70| 20 20 54 68 69 73 20 76 | 61 6c 75 65 20 73 68 6f | This v|alue sho|
|00001f80| 75 6c 64 20 62 65 20 74 | 68 65 20 73 61 6d 65 20 |uld be t|he same |
|00001f90| 61 73 20 79 6f 75 72 20 | 66 69 6c 65 27 73 20 63 |as your |file's c|
|00001fa0| 72 65 61 74 6f 72 2c 20 | 62 75 74 20 69 74 20 63 |reator, |but it c|
|00001fb0| 61 6e 20 62 65 20 64 69 | 66 66 65 72 65 6e 74 2e |an be di|fferent.|
|00001fc0| 20 20 57 68 65 6e 20 74 | 68 65 79 20 61 72 65 20 | When t|hey are |
|00001fd0| 64 69 66 66 65 72 65 6e | 74 2c 20 41 52 41 20 75 |differen|t, ARA u|
|00001fe0| 73 65 73 20 74 68 65 20 | 76 61 6c 75 65 20 64 65 |ses the |value de|
|00001ff0| 66 69 6e 65 64 20 69 6e | 20 74 68 65 20 27 73 69 |fined in| the 'si|
|00002000| 6e 66 27 20 72 65 73 6f | 75 72 63 65 2e 20 20 46 |nf' reso|urce. F|
|00002010| 6f 72 20 70 72 6f 74 6f | 63 6f 6c 2d 6c 65 76 65 |or proto|col-leve|
|00002020| 6c 20 6d 6f 64 75 6c 65 | 73 20 74 68 69 73 20 73 |l module|s this s|
|00002030| 69 67 6e 61 74 75 72 65 | 20 69 73 20 75 73 65 64 |ignature| is used|
|00002040| 20 74 6f 20 61 73 73 6f | 63 69 61 74 65 20 61 20 | to asso|ciate a |
|00002050| 63 6c 69 65 6e 74 20 6d | 6f 64 75 6c 65 20 77 69 |client m|odule wi|
|00002060| 74 68 20 74 68 65 20 73 | 65 72 76 65 72 20 6d 6f |th the s|erver mo|
|00002070| 64 75 6c 65 2e 0d 54 68 | 65 20 6e 65 78 74 20 74 |dule..Th|e next t|
|00002080| 68 72 65 65 20 6c 6f 6e | 67 69 6e 74 73 20 61 72 |hree lon|gints ar|
|00002090| 65 20 76 65 72 73 69 6f | 6e 20 6e 75 6d 62 65 72 |e versio|n number|
|000020a0| 73 20 61 6e 64 20 61 72 | 65 20 6f 6e 6c 79 20 75 |s and ar|e only u|
|000020b0| 73 65 64 20 66 6f 72 20 | 70 72 6f 74 6f 63 6f 6c |sed for |protocol|
|000020c0| 20 6c 65 76 65 6c 20 6d | 6f 64 75 6c 65 73 2e 20 | level m|odules. |
|000020d0| 20 54 68 65 20 66 69 72 | 73 74 20 66 69 65 6c 64 | The fir|st field|
|000020e0| 20 69 73 20 22 66 76 65 | 72 73 69 6f 6e 22 20 61 | is "fve|rsion" a|
|000020f0| 6e 64 20 64 65 66 69 6e | 65 73 20 74 68 65 20 6d |nd defin|es the m|
|00002100| 6f 64 75 6c 65 27 73 20 | 76 65 72 73 69 6f 6e 2e |odule's |version.|
|00002110| 20 20 54 68 65 20 66 69 | 65 6c 64 20 61 66 74 65 | The fi|eld afte|
|00002120| 72 20 22 66 76 65 72 73 | 69 6f 6e 22 20 61 72 65 |r "fvers|ion" are|
|00002130| 20 22 66 6d 69 6e 5f 76 | 65 72 73 69 6f 6e 22 2c | "fmin_v|ersion",|
|00002140| 20 61 6e 64 20 22 66 6d | 61 78 5f 76 65 72 73 69 | and "fm|ax_versi|
|00002150| 6f 6e 22 2e 20 20 46 6f | 72 20 70 72 6f 74 6f 63 |on". Fo|r protoc|
|00002160| 6f 6c 2d 6c 65 76 65 6c | 20 61 75 74 68 65 6e 74 |ol-level| authent|
|00002170| 69 63 61 74 69 6f 6e 2c | 20 74 68 65 79 20 61 72 |ication,| they ar|
|00002180| 65 20 75 73 65 64 20 66 | 6f 72 20 63 68 65 63 6b |e used f|or check|
|00002190| 69 6e 67 20 74 68 65 20 | 63 6c 69 65 6e 74 20 6d |ing the |client m|
|000021a0| 6f 64 75 6c 65 27 73 20 | 63 6f 6d 70 61 74 69 62 |odule's |compatib|
|000021b0| 69 6c 69 74 79 20 77 69 | 74 68 20 74 68 65 20 73 |ility wi|th the s|
|000021c0| 65 72 76 65 72 27 73 2e | 20 20 54 68 65 20 63 6c |erver's.| The cl|
|000021d0| 69 65 6e 74 27 73 20 22 | 66 76 65 72 73 69 6f 6e |ient's "|fversion|
|000021e0| 22 20 6d 75 73 74 20 62 | 65 20 61 20 6e 75 6d 62 |" must b|e a numb|
|000021f0| 65 72 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 73 |er betwe|en the s|
|00002200| 65 72 76 65 72 20 6d 6f | 64 75 6c 65 27 73 20 22 |erver mo|dule's "|
|00002210| 66 6d 69 6e 5f 76 65 72 | 73 69 6f 6e 22 20 61 6e |fmin_ver|sion" an|
|00002220| 64 20 22 66 6d 61 78 5f | 76 65 72 73 69 6f 6e 22 |d "fmax_|version"|
|00002230| 2e 20 0d 54 68 65 20 6e | 65 78 74 20 74 77 6f 20 |. .The n|ext two |
|00002240| 6c 6f 6e 67 69 6e 74 73 | 2c 20 22 66 73 65 72 76 |longints|, "fserv|
|00002250| 65 72 5f 64 61 74 61 22 | 20 61 6e 64 20 22 66 63 |er_data"| and "fc|
|00002260| 6c 69 65 6e 74 5f 64 61 | 74 61 22 2c 20 61 72 65 |lient_da|ta", are|
|00002270| 20 6e 6f 74 20 75 73 65 | 64 2c 20 61 6e 64 20 73 | not use|d, and s|
|00002280| 68 6f 75 6c 64 20 62 65 | 20 73 65 74 20 74 6f 20 |hould be| set to |
|00002290| 7a 65 72 6f 2e 0d 54 68 | 65 20 6c 61 73 74 20 66 |zero..Th|e last f|
|000022a0| 69 65 6c 64 20 69 73 20 | 61 20 50 61 73 63 61 6c |ield is |a Pascal|
|000022b0| 20 73 74 72 69 6e 67 20 | 74 68 61 74 20 69 73 20 | string |that is |
|000022c0| 79 6f 75 72 20 6d 6f 64 | 75 6c 65 27 73 20 6e 61 |your mod|ule's na|
|000022d0| 6d 65 2e 20 20 54 68 69 | 73 20 6e 61 6d 65 20 69 |me. Thi|s name i|
|000022e0| 73 20 75 73 65 64 20 69 | 6e 20 64 69 61 6c 6f 67 |s used i|n dialog|
|000022f0| 20 62 6f 78 65 73 20 61 | 6e 64 20 61 6e 79 77 68 | boxes a|nd anywh|
|00002300| 65 72 65 20 79 6f 75 72 | 20 6d 6f 64 75 6c 27 65 |ere your| modul'e|
|00002310| 73 20 6e 61 6d 65 20 69 | 73 20 64 69 73 70 6c 61 |s name i|s displa|
|00002320| 79 65 64 2e 0d 43 6f 64 | 65 20 52 65 73 6f 75 72 |yed..Cod|e Resour|
|00002330| 63 65 20 53 74 72 75 63 | 74 75 72 65 0d 54 68 65 |ce Struc|ture.The|
|00002340| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 73 75 62 2d 73 | followi|ng sub-s|
|00002350| 65 63 74 69 6f 6e 73 20 | 64 65 73 63 72 69 62 65 |ections |describe|
|00002360| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 6f | the str|ucture o|
|00002370| 66 20 63 6f 64 65 20 72 | 65 73 6f 75 72 63 65 73 |f code r|esources|
|00002380| 2e 0d 4d 79 53 65 63 75 | 72 69 74 79 50 72 6f 63 |..MySecu|rityProc|
|00002390| 45 6e 74 72 79 0d 45 76 | 65 72 79 20 63 6f 64 65 |Entry.Ev|ery code|
|000023a0| 20 72 65 73 6f 75 72 63 | 65 20 6d 75 73 74 20 70 | resourc|e must p|
|000023b0| 72 6f 76 69 64 65 20 61 | 20 72 6f 75 74 69 6e 65 |rovide a| routine|
|000023c0| 20 6e 61 6d 65 64 20 22 | 4d 79 53 65 63 75 72 69 | named "|MySecuri|
|000023d0| 74 79 50 72 6f 63 45 6e | 74 72 79 22 2e 20 20 54 |tyProcEn|try". T|
|000023e0| 68 69 73 20 69 73 20 74 | 68 65 20 65 6e 74 72 79 |his is t|he entry|
|000023f0| 20 70 6f 69 6e 74 20 74 | 6f 20 74 68 65 20 63 6f | point t|o the co|
|00002400| 64 65 20 72 65 73 6f 75 | 72 63 65 2e 20 20 41 52 |de resou|rce. AR|
|00002410| 41 20 63 61 6c 6c 73 20 | 69 74 20 74 68 72 6f 75 |A calls |it throu|
|00002420| 67 68 20 74 68 65 20 53 | 65 63 75 72 69 74 79 20 |gh the S|ecurity |
|00002430| 49 6e 74 65 72 66 61 63 | 65 2e 20 20 49 74 20 73 |Interfac|e. It s|
|00002440| 68 6f 75 6c 64 20 62 65 | 20 64 65 66 69 6e 65 64 |hould be| defined|
|00002450| 20 61 73 20 66 6f 6c 6c | 6f 77 73 3a 0d 70 61 73 | as foll|ows:.pas|
|00002460| 63 61 6c 20 6c 6f 6e 67 | 09 09 4d 79 53 65 63 75 |cal long|..MySecu|
|00002470| 72 69 74 79 50 72 6f 63 | 45 6e 74 72 79 28 20 53 |rityProc|Entry( S|
|00002480| 65 63 75 72 69 74 79 41 | 63 74 69 6f 6e 73 09 09 |ecurityA|ctions..|
|00002490| 41 63 74 69 6f 6e 2c 0d | 09 09 09 09 09 09 09 09 |Action,.|........|
|000024a0| 09 20 53 65 63 75 72 69 | 74 79 52 65 66 65 72 65 |. Securi|tyRefere|
|000024b0| 6e 63 65 09 09 4d 79 52 | 65 66 65 72 65 6e 63 65 |nce..MyR|eference|
|000024c0| 2c 0d 09 09 09 09 09 09 | 09 09 09 20 6c 6f 6e 67 |,.......|... long|
|000024d0| 09 09 09 09 09 4c 6f 6e | 67 50 61 72 61 6d 20 29 |.....Lon|gParam )|
|000024e0| 0d 41 52 41 20 73 65 6e | 64 73 20 61 63 74 69 6f |.ARA sen|ds actio|
|000024f0| 6e 73 20 74 6f 20 79 6f | 75 72 20 63 6f 64 65 20 |ns to yo|ur code |
|00002500| 72 65 73 6f 75 72 63 65 | 73 20 74 6f 20 72 65 71 |resource|s to req|
|00002510| 75 65 73 74 20 69 74 20 | 74 6f 20 70 65 72 66 6f |uest it |to perfo|
|00002520| 72 6d 20 61 20 73 65 72 | 76 69 63 65 2e 20 20 59 |rm a ser|vice. Y|
|00002530| 6f 75 20 73 68 6f 75 6c | 64 20 70 72 6f 63 65 73 |ou shoul|d proces|
|00002540| 73 20 74 68 65 20 61 63 | 74 69 6f 6e 73 20 61 6e |s the ac|tions an|
|00002550| 64 20 72 65 74 75 72 6e | 20 63 6f 6e 74 72 6f 6c |d return| control|
|00002560| 20 74 6f 20 41 52 41 20 | 61 73 20 71 75 69 63 6b | to ARA |as quick|
|00002570| 6c 79 20 61 73 20 70 6f | 73 73 69 62 6c 65 2e 20 |ly as po|ssible. |
|00002580| 20 41 63 74 69 6f 6e 73 | 20 61 72 65 20 64 65 66 | Actions| are def|
|00002590| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 66 69 6c 65 |ined in |the file|
|000025a0| 20 53 65 63 75 72 69 74 | 79 50 75 62 6c 69 63 2e | Securit|yPublic.|
|000025b0| 68 2e 20 20 54 68 65 20 | 22 41 63 74 69 6f 6e 73 |h. The |"Actions|
|000025c0| 22 20 73 65 63 74 69 6f | 6e 20 64 65 73 63 72 69 |" sectio|n descri|
|000025d0| 62 65 73 20 61 63 74 69 | 6f 6e 73 20 69 6e 20 64 |bes acti|ons in d|
|000025e0| 65 74 61 69 6c 2e 20 20 | 54 68 65 20 66 6f 6c 6c |etail. |The foll|
|000025f0| 6f 77 69 6e 67 20 69 73 | 20 61 20 6c 69 73 74 20 |owing is| a list |
|00002600| 6f 66 20 74 68 65 20 61 | 63 74 69 6f 6e 73 3a 0d |of the a|ctions:.|
|00002610| 6b 53 65 63 75 72 69 74 | 79 53 74 61 72 74 75 70 |kSecurit|yStartup|
|00002620| 0d 6b 53 65 63 75 72 69 | 74 79 53 68 75 74 64 6f |.kSecuri|tyShutdo|
|00002630| 77 6e 0d 6b 53 65 63 75 | 72 69 74 79 42 65 67 69 |wn.kSecu|rityBegi|
|00002640| 6e 0d 6b 53 65 63 75 72 | 69 74 79 45 6e 64 0d 6b |n.kSecur|ityEnd.k|
|00002650| 53 65 63 75 72 69 74 79 | 44 61 74 61 41 76 61 69 |Security|DataAvai|
|00002660| 6c 61 62 6c 65 2c 0d 6b | 53 65 63 75 72 69 74 79 |lable,.k|Security|
|00002670| 41 62 6f 72 74 0d 6b 53 | 65 63 75 72 69 74 79 54 |Abort.kS|ecurityT|
|00002680| 69 63 6b 6c 65 41 63 74 | 69 6f 6e 0d 4d 79 52 65 |ickleAct|ion.MyRe|
|00002690| 66 65 72 65 6e 63 65 20 | 69 73 20 61 20 75 6e 69 |ference |is a uni|
|000026a0| 71 75 65 20 76 61 6c 75 | 65 20 74 68 61 74 20 64 |que valu|e that d|
|000026b0| 65 66 69 6e 65 73 20 61 | 6e 20 69 6e 73 74 61 6e |efines a|n instan|
|000026c0| 63 65 20 6f 66 20 74 68 | 65 20 63 6f 64 65 20 72 |ce of th|e code r|
|000026d0| 65 73 6f 75 72 63 65 2e | 20 20 49 74 20 69 73 20 |esource.| It is |
|000026e0| 75 73 65 64 20 77 68 65 | 6e 20 79 6f 75 20 63 61 |used whe|n you ca|
|000026f0| 6c 6c 20 61 6e 79 20 6f | 66 20 74 68 65 20 41 52 |ll any o|f the AR|
|00002700| 41 20 53 65 72 76 69 63 | 65 20 52 6f 75 74 69 6e |A Servic|e Routin|
|00002710| 65 73 2e 20 20 49 74 20 | 75 6e 69 71 75 65 6c 79 |es. It |uniquely|
|00002720| 20 69 64 65 6e 74 69 66 | 69 65 73 20 79 6f 75 72 | identif|ies your|
|00002730| 20 74 68 72 65 61 64 2e | 0d 4c 6f 6e 67 50 61 72 | thread.|.LongPar|
|00002740| 61 6d 20 69 73 20 75 73 | 65 64 20 74 6f 20 70 61 |am is us|ed to pa|
|00002750| 73 73 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 69 6e |ss addit|ional in|
|00002760| 66 6f 72 6d 61 74 69 6f | 6e 20 66 6f 72 20 61 6e |formatio|n for an|
|00002770| 20 61 63 74 69 6f 6e 2e | 20 20 43 75 72 72 65 6e | action.| Curren|
|00002780| 74 6c 79 20 69 74 20 69 | 73 20 6f 6e 6c 79 20 75 |tly it i|s only u|
|00002790| 73 65 64 20 77 69 74 68 | 20 6b 53 65 63 75 72 69 |sed with| kSecuri|
|000027a0| 74 79 54 69 63 6b 6c 65 | 41 63 74 69 6f 6e 2e 0d |tyTickle|Action..|
|000027b0| 59 6f 75 72 20 65 6e 74 | 72 79 20 72 6f 75 74 69 |Your ent|ry routi|
|000027c0| 6e 65 20 73 68 6f 75 6c | 64 20 70 72 6f 63 65 73 |ne shoul|d proces|
|000027d0| 73 20 74 68 65 20 61 63 | 74 69 6f 6e 20 61 73 20 |s the ac|tion as |
|000027e0| 73 6f 6f 6e 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |soon as |possible|
|000027f0| 2e 20 20 49 74 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |. It sh|ould not|
|00002800| 20 73 74 61 79 20 67 6f | 20 69 6e 74 6f 20 61 6e | stay go| into an|
|00002810| 79 20 6c 6f 6f 70 73 2e | 20 20 49 74 20 63 61 6e |y loops.| It can|
|00002820| 20 70 6f 73 74 20 61 73 | 79 6e 63 68 72 6f 6e 6f | post as|ynchrono|
|00002830| 75 73 20 63 61 6c 6c 73 | 20 74 6f 20 41 52 41 20 |us calls| to ARA |
|00002840| 61 6e 64 20 6f 74 68 65 | 72 20 54 6f 6f 6c 62 6f |and othe|r Toolbo|
|00002850| 78 20 72 6f 75 74 69 6e | 65 73 2c 20 62 75 74 20 |x routin|es, but |
|00002860| 69 74 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |it shoul|d return|
|00002870| 20 63 6f 6e 74 72 6f 6c | 20 62 61 63 6b 20 74 6f | control| back to|
|00002880| 20 41 52 41 20 71 75 69 | 63 6b 6c 79 2e 20 20 59 | ARA qui|ckly. Y|
|00002890| 4f 55 20 4d 55 53 54 20 | 52 45 54 55 52 4e 20 43 |OU MUST |RETURN C|
|000028a0| 4f 4e 54 52 4f 4c 20 42 | 41 43 4b 20 54 4f 20 41 |ONTROL B|ACK TO A|
|000028b0| 52 41 20 41 53 20 53 4f | 4f 4e 20 41 53 20 50 4f |RA AS SO|ON AS PO|
|000028c0| 53 53 49 42 4c 45 2e 0d | 59 6f 75 72 20 72 6f 75 |SSIBLE..|Your rou|
|000028d0| 74 69 6e 65 27 73 20 72 | 65 74 75 72 6e 20 76 61 |tine's r|eturn va|
|000028e0| 6c 75 65 20 69 73 20 61 | 20 72 65 73 75 6c 74 20 |lue is a| result |
|000028f0| 63 6f 64 65 20 41 52 41 | 20 65 78 61 6d 69 6e 65 |code ARA| examine|
|00002900| 73 20 66 6f 72 20 70 6f | 73 73 69 62 6c 65 20 65 |s for po|ssible e|
|00002910| 72 72 6f 72 73 20 69 6e | 20 22 4d 79 53 65 63 75 |rrors in| "MySecu|
|00002920| 72 69 74 79 50 72 6f 63 | 45 6e 74 72 79 22 2e 20 |rityProc|Entry". |
|00002930| 20 54 68 65 20 70 6f 73 | 73 69 62 6c 65 20 72 65 | The pos|sible re|
|00002940| 73 75 6c 74 20 63 6f 64 | 65 73 20 61 72 65 20 22 |sult cod|es are "|
|00002950| 53 65 63 75 72 69 74 79 | 45 72 72 6f 72 73 22 20 |Security|Errors" |
|00002960| 64 65 66 69 6e 65 64 20 | 69 6e 20 22 53 65 63 75 |defined |in "Secu|
|00002970| 72 69 74 79 50 75 62 6c | 69 63 2e 68 22 2e 20 20 |rityPubl|ic.h". |
|00002980| 52 65 74 75 72 6e 20 22 | 6b 53 65 63 75 72 69 74 |Return "|kSecurit|
|00002990| 79 4e 6f 45 72 72 22 20 | 69 66 20 20 79 6f 75 72 |yNoErr" |if your|
|000029a0| 20 72 6f 75 74 69 6e 65 | 20 69 73 20 73 75 63 63 | routine| is succ|
|000029b0| 65 73 73 66 75 6c 2e 0d | 53 65 63 75 72 69 74 79 |essful..|Security|
|000029c0| 49 6e 74 65 72 66 61 63 | 65 2e 6f 0d 22 53 65 63 |Interfac|e.o."Sec|
|000029d0| 75 72 69 74 79 49 6e 74 | 65 72 66 61 63 65 2e 6f |urityInt|erface.o|
|000029e0| 22 20 69 73 20 74 68 65 | 20 67 6c 75 65 20 66 69 |" is the| glue fi|
|000029f0| 6c 65 20 74 68 61 74 20 | 70 72 6f 76 69 64 65 73 |le that |provides|
|00002a00| 20 74 68 65 20 41 52 41 | 20 53 65 72 76 69 63 65 | the ARA| Service|
|00002a10| 20 52 6f 75 74 69 6e 65 | 73 2e 20 20 49 74 20 6d | Routine|s. It m|
|00002a20| 75 73 74 20 62 65 20 6c | 69 6e 6b 65 64 20 77 69 |ust be l|inked wi|
|00002a30| 74 68 20 65 61 63 68 20 | 63 6f 64 65 20 72 65 73 |th each |code res|
|00002a40| 6f 75 72 63 65 2e 20 20 | 57 68 65 6e 20 6c 69 6e |ource. |When lin|
|00002a50| 6b 69 6e 67 20 61 20 63 | 6f 64 65 20 72 65 73 6f |king a c|ode reso|
|00002a60| 75 72 63 65 2c 20 79 6f | 75 20 6d 75 73 74 20 68 |urce, yo|u must h|
|00002a70| 61 76 65 20 22 53 65 63 | 75 72 69 74 79 49 6e 74 |ave "Sec|urityInt|
|00002a80| 65 72 66 61 63 65 2e 6f | 22 20 61 73 20 74 68 65 |erface.o|" as the|
|00002a90| 20 66 69 72 73 74 20 66 | 69 6c 65 20 69 6e 20 74 | first f|ile in t|
|00002aa0| 68 65 20 6c 69 6e 6b 65 | 72 27 73 20 6f 62 6a 65 |he linke|r's obje|
|00002ab0| 63 74 20 66 69 6c 65 20 | 6c 69 73 74 2e 20 20 54 |ct file |list. T|
|00002ac0| 68 65 20 4d 50 57 20 6c | 69 6e 6b 65 72 20 64 6f |he MPW l|inker do|
|00002ad0| 65 73 20 6e 6f 74 20 73 | 68 75 66 66 6c 65 20 63 |es not s|huffle c|
|00002ae0| 6f 64 65 2e 20 20 54 68 | 65 20 65 6e 74 72 79 20 |ode. Th|e entry |
|00002af0| 70 6f 69 6e 74 20 74 6f | 20 22 53 65 63 75 72 69 |point to| "Securi|
|00002b00| 74 79 49 6e 74 65 72 66 | 61 63 65 2e 6f 22 20 6d |tyInterf|ace.o" m|
|00002b10| 75 73 74 20 62 65 63 6f | 6d 65 20 74 68 65 20 65 |ust beco|me the e|
|00002b20| 6e 74 72 79 20 70 6f 69 | 6e 74 20 74 6f 20 79 6f |ntry poi|nt to yo|
|00002b30| 75 72 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 |ur code |resource|
|00002b40| 2e 0d 4d 50 57 20 6c 69 | 6e 6b 65 72 20 75 73 65 |..MPW li|nker use|
|00002b50| 73 20 74 68 65 20 2d 6d | 20 6f 70 74 69 6f 6e 20 |s the -m| option |
|00002b60| 74 6f 20 70 65 72 66 6f | 72 6d 20 63 6f 64 65 2d |to perfo|rm code-|
|00002b70| 66 6c 6f 77 20 61 6e 61 | 6c 79 73 69 73 20 61 6e |flow ana|lysis an|
|00002b80| 64 20 72 65 6d 6f 76 65 | 20 61 6e 79 20 64 65 61 |d remove| any dea|
|00002b90| 64 20 63 6f 64 65 2e 20 | 20 54 6f 20 6b 65 65 70 |d code. | To keep|
|00002ba0| 20 79 6f 75 72 20 65 78 | 65 63 75 74 61 62 6c 65 | your ex|ecutable|
|00002bb0| 20 63 6f 64 65 20 66 72 | 6f 6d 20 62 65 69 6e 67 | code fr|om being|
|00002bc0| 20 73 74 72 69 70 70 65 | 64 2c 20 79 6f 75 20 6d | strippe|d, you m|
|00002bd0| 75 73 74 20 70 72 6f 76 | 69 64 65 20 74 68 65 20 |ust prov|ide the |
|00002be0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6f 70 74 69 6f 6e |followin|g option|
|00002bf0| 20 69 6e 20 74 68 65 20 | 6c 69 6e 6b 65 72 20 63 | in the |linker c|
|00002c00| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 3a 0d 2d 6d 20 |ommand l|ine:.-m |
|00002c10| 53 45 43 55 52 49 54 59 | 49 4e 54 45 52 46 41 43 |SECURITY|INTERFAC|
|00002c20| 45 45 4e 54 52 59 50 52 | 4f 43 0d 43 6f 6d 70 6c |EENTRYPR|OC.Compl|
|00002c30| 65 74 69 6f 6e 20 52 6f | 75 74 69 6e 65 0d 4d 6f |etion Ro|utine.Mo|
|00002c40| 73 74 20 6f 66 20 74 68 | 65 20 41 52 41 20 53 65 |st of th|e ARA Se|
|00002c50| 72 76 69 63 65 20 52 6f | 75 74 69 6e 65 73 20 61 |rvice Ro|utines a|
|00002c60| 72 65 20 61 73 79 6e 63 | 68 72 6f 6e 6f 75 73 2e |re async|hronous.|
|00002c70| 20 20 41 66 74 65 72 20 | 61 6e 20 61 73 79 6e 63 | After |an async|
|00002c80| 68 20 41 52 41 20 72 6f | 75 74 69 6e 65 20 66 69 |h ARA ro|utine fi|
|00002c90| 6e 69 73 68 65 73 2c 20 | 69 74 20 69 6e 66 6f 72 |nishes, |it infor|
|00002ca0| 6d 73 20 79 6f 75 20 63 | 6f 64 65 20 72 65 73 6f |ms you c|ode reso|
|00002cb0| 75 72 63 65 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |urce by |calling |
|00002cc0| 61 20 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 72 6f 75 |a comple|tion rou|
|00002cd0| 74 69 6e 65 2e 20 20 59 | 6f 75 72 20 63 6f 6d 70 |tine. Y|our comp|
|00002ce0| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 20 73 |letion r|outine s|
|00002cf0| 68 6f 75 6c 64 20 68 61 | 76 65 20 74 68 65 20 66 |hould ha|ve the f|
|00002d00| 6f 6c 6c 6f 77 69 6e 67 | 20 64 65 63 6c 61 72 61 |ollowing| declara|
|00002d10| 74 69 6f 6e 3a 0d 70 61 | 73 63 61 6c 20 76 6f 69 |tion:.pa|scal voi|
|00002d20| 64 09 09 4d 79 43 6f 6d | 70 6c 65 74 69 6f 6e 50 |d..MyCom|pletionP|
|00002d30| 72 6f 63 28 20 53 65 63 | 75 72 69 74 79 52 65 66 |roc( Sec|urityRef|
|00002d40| 65 72 65 6e 63 65 09 09 | 4d 79 52 65 66 65 72 65 |erence..|MyRefere|
|00002d50| 6e 63 65 2c 0d 09 09 09 | 09 09 09 09 09 20 20 69 |nce,....|..... i|
|00002d60| 6e 74 09 09 09 09 09 52 | 65 73 75 6c 74 43 6f 64 |nt.....R|esultCod|
|00002d70| 65 2c 0d 09 09 09 09 09 | 09 09 09 20 20 76 6f 69 |e,......|... voi|
|00002d80| 64 09 09 09 09 09 2a 20 | 44 61 74 61 50 74 72 2c |d.....* |DataPtr,|
|00002d90| 0d 09 09 09 09 09 09 09 | 09 20 20 69 6e 74 09 09 |........|. int..|
|00002da0| 09 09 09 44 61 74 61 53 | 69 7a 65 2c 0d 09 09 09 |...DataS|ize,....|
|00002db0| 09 09 09 09 09 20 20 6c | 6f 6e 67 09 09 09 09 09 |..... l|ong.....|
|00002dc0| 43 6f 6d 70 6c 65 74 69 | 6f 6e 50 61 72 61 6d 20 |Completi|onParam |
|00002dd0| 29 0d 59 6f 75 20 70 61 | 73 73 20 61 20 70 6f 69 |).You pa|ss a poi|
|00002de0| 6e 74 65 72 20 74 6f 20 | 79 6f 75 72 20 63 6f 6d |nter to |your com|
|00002df0| 70 6c 65 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |pletion |routine |
|00002e00| 61 73 20 6f 6e 65 20 6f | 66 20 74 68 65 20 70 61 |as one o|f the pa|
|00002e10| 72 61 6d 65 74 65 72 73 | 20 74 6f 20 61 73 79 6e |rameters| to asyn|
|00002e20| 63 68 72 6f 6e 6f 75 73 | 20 41 52 41 20 53 65 72 |chronous| ARA Ser|
|00002e30| 76 69 63 65 20 52 6f 75 | 74 69 6e 65 73 2e 0d 4d |vice Rou|tines..M|
|00002e40| 79 52 65 66 65 72 65 6e | 63 65 20 73 68 6f 75 6c |yReferen|ce shoul|
|00002e50| 64 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 76 61 |d is the| same va|
|00002e60| 6c 75 65 20 70 61 73 73 | 65 64 20 74 6f 20 22 4d |lue pass|ed to "M|
|00002e70| 79 53 65 63 75 72 69 74 | 79 50 72 6f 63 45 6e 74 |ySecurit|yProcEnt|
|00002e80| 72 79 22 2e 20 20 49 74 | 20 69 64 65 6e 74 69 66 |ry". It| identif|
|00002e90| 69 65 73 20 79 6f 75 72 | 20 69 6e 73 74 61 6e 63 |ies your| instanc|
|00002ea0| 65 2e 0d 52 65 73 75 6c | 74 43 6f 64 65 20 69 73 |e..Resul|tCode is|
|00002eb0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 74 | the res|ult of t|
|00002ec0| 68 65 20 61 73 79 6e 63 | 68 72 6f 6e 6f 75 73 20 |he async|hronous |
|00002ed0| 41 52 41 20 53 65 72 76 | 69 63 65 20 79 6f 75 20 |ARA Serv|ice you |
|00002ee0| 68 61 64 20 72 65 71 75 | 65 73 74 65 64 2e 20 20 |had requ|ested. |
|00002ef0| 49 74 20 77 69 6c 6c 20 | 62 65 20 6e 6f 6e 20 7a |It will |be non z|
|00002f00| 65 72 6f 20 69 66 20 74 | 68 65 20 6f 70 65 72 61 |ero if t|he opera|
|00002f10| 74 69 6f 6e 20 66 61 69 | 6c 65 64 2e 20 20 49 74 |tion fai|led. It|
|00002f20| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 20 6f 6e | will co|ntain on|
|00002f30| 65 20 6f 66 20 74 68 65 | 20 76 61 6c 75 65 73 20 |e of the| values |
|00002f40| 69 6e 20 41 52 41 45 72 | 72 20 64 65 66 69 6e 65 |in ARAEr|r define|
|00002f50| 64 20 69 6e 20 53 65 63 | 75 72 69 74 79 50 75 62 |d in Sec|urityPub|
|00002f60| 6c 69 63 2e 68 2e 20 20 | 59 6f 75 20 73 68 6f 75 |lic.h. |You shou|
|00002f70| 6c 64 20 63 68 65 63 6b | 20 69 74 73 20 76 61 6c |ld check| its val|
|00002f80| 75 65 20 61 74 20 74 68 | 65 20 73 74 61 72 74 20 |ue at th|e start |
|00002f90| 6f 66 20 79 6f 75 72 20 | 63 6f 6d 70 6c 65 74 69 |of your |completi|
|00002fa0| 6f 6e 20 72 6f 75 74 69 | 6e 65 20 62 65 66 6f 72 |on routi|ne befor|
|00002fb0| 65 20 79 6f 75 20 64 6f | 20 61 6e 79 20 6f 74 68 |e you do| any oth|
|00002fc0| 65 72 20 70 72 6f 63 65 | 73 73 69 6e 67 2e 20 20 |er proce|ssing. |
|00002fd0| 49 66 20 61 20 72 65 61 | 64 20 6f 72 20 77 72 69 |If a rea|d or wri|
|00002fe0| 74 65 20 74 69 6d 65 73 | 20 6f 75 74 2c 20 74 68 |te times| out, th|
|00002ff0| 65 20 52 65 73 75 6c 74 | 43 6f 64 65 20 77 69 6c |e Result|Code wil|
|00003000| 6c 20 62 65 20 41 52 41 | 54 69 6d 65 6f 75 74 2e |l be ARA|Timeout.|
|00003010| 0d 44 61 74 61 50 74 72 | 20 69 73 20 74 68 65 20 |.DataPtr| is the |
|00003020| 70 6f 69 6e 74 65 72 20 | 79 6f 75 20 70 61 73 73 |pointer |you pass|
|00003030| 65 64 20 74 6f 20 74 68 | 65 20 61 73 79 6e 63 68 |ed to th|e asynch|
|00003040| 20 41 52 41 20 53 65 72 | 76 69 63 65 20 52 6f 75 | ARA Ser|vice Rou|
|00003050| 74 69 6e 65 2e 20 20 45 | 2e 67 2e 20 74 68 69 73 |tine. E|.g. this|
|00003060| 20 77 69 6c 6c 20 70 6f | 69 6e 74 20 74 6f 20 74 | will po|int to t|
|00003070| 68 65 20 64 61 74 61 20 | 72 65 61 64 20 62 79 20 |he data |read by |
|00003080| 41 52 41 52 65 61 64 2e | 0d 44 61 74 61 53 69 7a |ARARead.|.DataSiz|
|00003090| 65 20 77 69 6c 6c 20 62 | 65 20 74 68 65 20 61 63 |e will b|e the ac|
|000030a0| 74 75 61 6c 20 73 69 7a | 65 20 6f 66 20 70 72 6f |tual siz|e of pro|
|000030b0| 63 65 73 73 65 64 20 64 | 61 74 61 2e 20 20 45 2e |cessed d|ata. E.|
|000030c0| 67 2e 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |g. the n|umber of|
|000030d0| 20 62 79 74 65 73 20 72 | 65 61 64 20 62 79 20 41 | bytes r|ead by A|
|000030e0| 52 41 52 65 61 64 2e 0d | 43 6f 6d 70 6c 65 74 69 |RARead..|Completi|
|000030f0| 6f 6e 50 61 72 61 6d 20 | 69 73 20 61 6e 20 61 64 |onParam |is an ad|
|00003100| 64 69 74 69 6f 6e 61 6c | 20 6c 6f 6e 67 20 79 6f |ditional| long yo|
|00003110| 75 20 70 72 6f 76 69 64 | 65 2e 20 20 49 74 73 20 |u provid|e. Its |
|00003120| 76 61 6c 75 65 20 77 69 | 6c 6c 20 62 65 20 74 68 |value wi|ll be th|
|00003130| 65 20 73 61 6d 65 20 76 | 61 6c 75 65 20 79 6f 75 |e same v|alue you|
|00003140| 20 70 61 73 73 65 64 20 | 74 6f 20 74 68 65 20 61 | passed |to the a|
|00003150| 73 79 6e 63 68 20 41 52 | 41 20 53 65 72 76 69 63 |synch AR|A Servic|
|00003160| 65 20 52 6f 75 74 69 6e | 65 2e 20 20 59 6f 75 20 |e Routin|e. You |
|00003170| 63 61 6e 20 75 73 65 20 | 69 74 20 61 73 20 61 20 |can use |it as a |
|00003180| 73 74 61 74 65 20 69 6e | 64 69 63 61 74 6f 72 2e |state in|dicator.|
|00003190| 20 20 45 2e 67 2e 20 79 | 6f 75 20 63 61 6e 20 64 | E.g. y|ou can d|
|000031a0| 65 66 69 6e 65 20 61 6e | 20 65 6e 75 6d 65 72 61 |efine an| enumera|
|000031b0| 74 69 6f 6e 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |tion con|taining |
|000031c0| 74 68 65 20 73 65 74 20 | 6f 66 20 61 6c 6c 20 79 |the set |of all y|
|000031d0| 6f 75 72 20 73 74 61 74 | 65 73 2e 20 20 57 68 65 |our stat|es. Whe|
|000031e0| 6e 20 79 6f 75 20 63 61 | 6c 6c 20 61 6e 20 61 73 |n you ca|ll an as|
|000031f0| 79 6e 63 68 20 41 52 41 | 20 72 6f 75 74 69 6e 65 |ynch ARA| routine|
|00003200| 2c 20 70 61 73 73 20 74 | 68 65 20 73 74 61 74 65 |, pass t|he state|
|00003210| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 62 65 20 | you wan|t to be |
|00003220| 69 6e 20 77 68 65 6e 20 | 74 68 65 20 63 61 6c 6c |in when |the call|
|00003230| 20 69 73 20 64 6f 6e 65 | 2e 20 20 45 2e 67 2e 20 | is done|. E.g. |
|00003240| 70 61 73 73 20 22 6b 46 | 69 6e 69 73 68 65 64 31 |pass "kF|inished1|
|00003250| 73 74 52 65 61 64 22 20 | 74 6f 20 41 52 41 52 65 |stRead" |to ARARe|
|00003260| 61 64 2e 20 20 57 68 65 | 6e 20 79 6f 75 72 20 63 |ad. Whe|n your c|
|00003270| 6f 6d 70 6c 65 74 69 6f | 6e 20 72 6f 75 74 69 6e |ompletio|n routin|
|00003280| 65 20 67 65 74 73 20 63 | 61 6c 6c 65 64 20 77 69 |e gets c|alled wi|
|00003290| 74 68 20 43 6f 6d 70 6c | 65 74 69 6f 6e 50 61 72 |th Compl|etionPar|
|000032a0| 61 6d 20 65 71 75 61 6c | 20 74 6f 20 22 6b 46 69 |am equal| to "kFi|
|000032b0| 6e 69 73 68 65 64 31 73 | 74 52 65 61 64 22 2c 20 |nished1s|tRead", |
|000032c0| 74 68 65 20 41 52 41 52 | 65 61 64 20 68 61 73 20 |the ARAR|ead has |
|000032d0| 66 69 6e 69 73 68 65 64 | 20 61 6e 64 20 79 6f 75 |finished| and you|
|000032e0| 20 63 61 6e 20 67 6f 20 | 74 6f 20 74 68 65 20 6e | can go |to the n|
|000032f0| 65 78 74 20 73 74 61 74 | 65 2e 20 20 53 65 65 20 |ext stat|e. See |
|00003300| 74 68 65 20 73 61 6d 70 | 6c 65 20 6d 6f 64 75 6c |the samp|le modul|
|00003310| 65 20 6f 6e 20 74 68 65 | 20 64 65 76 65 6c 6f 70 |e on the| develop|
|00003320| 65 72 20 64 69 73 6b 20 | 66 6f 72 20 61 6e 20 65 |er disk |for an e|
|00003330| 78 61 6d 70 6c 65 20 6f | 66 20 74 68 69 73 2e 0d |xample o|f this..|
|00003340| 59 6f 75 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 63 |You shou|ld not c|
|00003350| 61 6c 6c 20 61 6e 79 20 | 4d 65 6d 6f 72 79 20 4d |all any |Memory M|
|00003360| 61 6e 61 67 65 72 20 72 | 6f 75 74 69 6e 65 73 2c |anager r|outines,|
|00003370| 20 6f 72 20 61 6e 79 20 | 72 6f 75 74 69 6e 65 73 | or any |routines|
|00003380| 20 74 68 61 74 20 72 65 | 73 75 6c 74 20 69 6e 20 | that re|sult in |
|00003390| 61 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 72 |a Memory| Manager|
|000033a0| 20 63 61 6c 6c 20 66 72 | 6f 6d 20 61 20 63 6f 6d | call fr|om a com|
|000033b0| 70 6c 65 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 2e |pletion |routine.|
|000033c0| 20 20 49 66 20 79 6f 75 | 20 6e 65 65 64 20 74 6f | If you| need to|
|000033d0| 20 63 61 6c 6c 20 74 68 | 65 73 65 20 74 79 70 65 | call th|ese type|
|000033e0| 73 20 6f 66 20 72 6f 75 | 74 69 6e 65 73 2c 20 63 |s of rou|tines, c|
|000033f0| 61 6c 6c 20 41 52 41 54 | 69 63 6b 6c 65 4d 65 20 |all ARAT|ickleMe |
|00003400| 61 6e 64 20 68 61 6e 64 | 6c 65 20 69 74 20 69 6e |and hand|le it in|
|00003410| 20 74 68 65 20 6b 53 65 | 63 75 72 69 74 79 54 69 | the kSe|curityTi|
|00003420| 63 6b 6c 65 41 63 74 69 | 6f 6e 2e 0d 52 75 6e 74 |ckleActi|on..Runt|
|00003430| 69 6d 65 20 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ime Envi|ronment |
|00003440| 28 41 35 20 57 6f 72 6c | 64 29 0d 41 6e 20 41 35 |(A5 Worl|d).An A5|
|00003450| 20 57 6f 72 6c 64 20 69 | 73 20 73 65 74 75 70 20 | World i|s setup |
|00003460| 66 6f 72 20 79 6f 75 72 | 20 63 6f 64 65 20 72 65 |for your| code re|
|00003470| 73 6f 75 72 63 65 20 62 | 79 20 41 52 41 2e 20 20 |source b|y ARA. |
|00003480| 59 6f 75 20 64 6f 6e 27 | 74 20 6e 65 65 64 20 74 |You don'|t need t|
|00003490| 6f 20 62 65 20 63 6f 6e | 63 65 72 6e 65 64 20 77 |o be con|cerned w|
|000034a0| 69 74 68 20 69 6e 69 74 | 69 61 6c 69 7a 69 6e 67 |ith init|ializing|
|000034b0| 20 6f 72 20 73 65 74 74 | 69 6e 67 20 75 70 20 74 | or sett|ing up t|
|000034c0| 68 65 20 41 35 20 77 6f | 72 6c 64 20 69 6e 20 74 |he A5 wo|rld in t|
|000034d0| 68 65 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 |he code |resource|
|000034e0| 2e 20 20 41 52 41 20 73 | 65 74 73 20 75 70 20 74 |. ARA s|ets up t|
|000034f0| 68 65 20 41 35 20 77 6f | 72 6c 64 20 70 72 69 6f |he A5 wo|rld prio|
|00003500| 72 20 74 6f 20 65 78 65 | 63 75 74 69 6e 67 20 61 |r to exe|cuting a|
|00003510| 6e 79 20 6f 66 20 74 68 | 65 20 63 6f 64 65 20 72 |ny of th|e code r|
|00003520| 65 73 6f 75 72 63 65 20 | 28 65 6e 74 72 79 20 72 |esource |(entry r|
|00003530| 6f 75 74 69 6e 65 2c 20 | 61 6e 64 20 63 6f 6d 70 |outine, |and comp|
|00003540| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 73 29 |letion r|outines)|
|00003550| 2e 20 20 53 69 6e 63 65 | 20 74 68 65 20 63 6f 64 |. Since| the cod|
|00003560| 65 20 72 65 73 6f 75 72 | 63 65 20 68 61 73 20 61 |e resour|ce has a|
|00003570| 6e 20 41 35 20 77 6f 72 | 6c 64 2c 20 69 74 20 79 |n A5 wor|ld, it y|
|00003580| 6f 75 20 63 61 6e 20 68 | 61 76 65 20 73 74 61 74 |ou can h|ave stat|
|00003590| 69 63 20 28 67 6c 6f 62 | 61 6c 29 20 64 61 74 61 |ic (glob|al) data|
|000035a0| 20 61 6e 64 20 75 73 65 | 20 74 68 65 20 64 61 74 | and use| the dat|
|000035b0| 61 20 74 68 65 20 73 61 | 6d 65 20 77 61 79 20 61 |a the sa|me way a|
|000035c0| 73 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |s an app|lication|
|000035d0| 2e 0d 44 75 72 69 6e 67 | 20 74 68 65 20 65 78 65 |..During| the exe|
|000035e0| 63 75 74 69 6f 6e 20 6f | 66 20 79 6f 75 72 20 63 |cution o|f your c|
|000035f0| 6f 64 65 20 72 65 73 6f | 75 72 63 65 2c 20 74 68 |ode reso|urce, th|
|00003600| 65 20 72 65 73 6f 75 72 | 63 65 20 66 6f 72 6b 20 |e resour|ce fork |
|00003610| 6f 66 20 74 68 65 20 73 | 65 63 75 72 69 74 79 20 |of the s|ecurity |
|00003620| 6d 6f 64 75 6c 65 20 69 | 73 20 6f 70 65 6e 2c 20 |module i|s open, |
|00003630| 61 6e 64 20 69 74 20 69 | 73 20 70 75 74 20 6f 6e |and it i|s put on|
|00003640| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 72 65 73 6f | top of |the reso|
|00003650| 75 72 63 65 20 66 6f 72 | 6b 73 20 73 74 61 63 6b |urce for|ks stack|
|00003660| 2e 20 20 54 68 65 20 66 | 69 6c 65 20 69 73 20 6f |. The f|ile is o|
|00003670| 70 65 6e 65 64 20 69 6e | 20 72 65 61 64 20 6f 6e |pened in| read on|
|00003680| 6c 79 20 6d 6f 64 65 2c | 20 73 6f 20 79 6f 75 20 |ly mode,| so you |
|00003690| 73 68 6f 75 6c 64 20 6e | 6f 74 20 61 74 74 65 6d |should n|ot attem|
|000036a0| 70 74 20 74 6f 20 77 72 | 69 74 65 20 61 6e 79 20 |pt to wr|ite any |
|000036b0| 64 61 74 61 20 74 6f 20 | 74 68 65 20 6d 6f 64 75 |data to |the modu|
|000036c0| 6c 65 27 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |le's res|ource fo|
|000036d0| 72 6b 2e 20 20 41 20 62 | 65 74 74 65 72 20 77 61 |rk. A b|etter wa|
|000036e0| 79 20 6f 66 20 73 74 6f | 72 69 6e 67 20 64 61 74 |y of sto|ring dat|
|000036f0| 61 20 69 73 20 74 6f 20 | 73 74 6f 72 65 20 69 74 |a is to |store it|
|00003700| 20 69 6e 20 61 20 73 65 | 70 61 72 61 74 65 20 70 | in a se|parate p|
|00003710| 72 65 66 65 72 65 6e 63 | 65 20 66 69 6c 65 2c 20 |referenc|e file, |
|00003720| 77 68 69 63 68 20 77 69 | 6c 6c 20 6e 6f 74 20 62 |which wi|ll not b|
|00003730| 65 20 64 65 6c 65 74 65 | 64 20 77 68 65 6e 20 79 |e delete|d when y|
|00003740| 6f 75 20 75 70 64 61 74 | 65 20 61 20 75 73 65 72 |ou updat|e a user|
|00003750| 27 73 20 73 65 63 75 72 | 69 74 79 20 6d 6f 64 75 |'s secur|ity modu|
|00003760| 6c 65 2e 0d 59 6f 75 20 | 63 61 6e 20 6d 61 6b 65 |le..You |can make|
|00003770| 20 63 61 6c 6c 73 20 74 | 6f 20 4d 61 63 20 54 6f | calls t|o Mac To|
|00003780| 6f 6c 62 6f 78 20 72 6f | 75 74 69 6e 65 73 2e 20 |olbox ro|utines. |
|00003790| 20 57 68 65 6e 65 76 65 | 72 20 70 6f 73 73 69 62 | Wheneve|r possib|
|000037a0| 6c 65 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 63 61 |le you s|hould ca|
|000037b0| 6c 6c 20 61 73 79 6e 63 | 68 72 6f 6e 6f 75 73 20 |ll async|hronous |
|000037c0| 72 6f 75 74 69 6e 65 73 | 2c 20 73 6f 20 79 6f 75 |routines|, so you|
|000037d0| 20 63 61 6e 20 72 65 74 | 75 72 6e 20 63 6f 6e 74 | can ret|urn cont|
|000037e0| 72 6f 6c 20 74 6f 20 41 | 52 41 2e 20 20 46 75 72 |rol to A|RA. Fur|
|000037f0| 74 68 65 72 6d 6f 72 65 | 2c 20 79 6f 75 20 73 68 |thermore|, you sh|
|00003800| 6f 75 6c 64 20 6e 6f 74 | 20 67 6f 20 69 6e 74 6f |ould not| go into|
|00003810| 20 61 6e 79 20 6c 6f 6f | 70 73 20 6f 72 20 63 61 | any loo|ps or ca|
|00003820| 6c 6c 20 53 79 73 74 65 | 6d 54 61 73 6b 20 61 73 |ll Syste|mTask as|
|00003830| 20 61 20 77 61 79 20 6f | 66 20 72 65 74 75 72 6e | a way o|f return|
|00003840| 69 6e 67 20 63 6f 6e 74 | 72 6f 6c 20 74 6f 20 41 |ing cont|rol to A|
|00003850| 52 41 2e 0d 41 52 41 20 | 53 65 72 76 69 63 65 20 |RA..ARA |Service |
|00003860| 52 6f 75 74 69 6e 65 73 | 0d 41 52 41 20 70 72 6f |Routines|.ARA pro|
|00003870| 76 69 64 65 73 20 61 20 | 6e 75 6d 62 65 72 20 6f |vides a |number o|
|00003880| 66 20 73 65 72 76 69 63 | 65 73 20 61 63 63 65 73 |f servic|es acces|
|00003890| 73 69 62 6c 65 20 74 68 | 72 6f 75 67 68 20 41 52 |sible th|rough AR|
|000038a0| 41 20 53 65 72 76 69 63 | 65 20 52 6f 75 74 69 6e |A Servic|e Routin|
|000038b0| 65 73 2e 20 20 54 68 65 | 20 68 65 61 64 65 72 20 |es. The| header |
|000038c0| 66 69 6c 65 20 22 53 65 | 63 75 72 69 74 79 49 6e |file "Se|curityIn|
|000038d0| 74 65 72 66 61 63 65 2e | 68 22 20 68 61 73 20 74 |terface.|h" has t|
|000038e0| 68 65 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 73 20 |he decla|rations |
|000038f0| 66 6f 72 20 74 68 65 73 | 65 20 72 6f 75 74 69 6e |for thes|e routin|
|00003900| 65 73 2e 20 20 20 54 6f | 20 75 73 65 20 74 68 65 |es. To| use the|
|00003910| 6d 20 79 6f 75 20 6d 75 | 73 74 20 6c 69 6e 6b 20 |m you mu|st link |
|00003920| 77 69 74 68 20 22 53 65 | 63 75 72 69 74 79 49 6e |with "Se|curityIn|
|00003930| 74 65 72 66 61 63 65 2e | 6f 22 2e 0d 54 68 65 20 |terface.|o"..The |
|00003940| 41 52 41 20 53 65 72 76 | 69 63 65 20 52 6f 75 74 |ARA Serv|ice Rout|
|00003950| 69 6e 65 73 20 61 72 65 | 20 64 65 73 63 72 69 62 |ines are| describ|
|00003960| 65 64 20 69 6e 20 64 65 | 74 61 69 6c 20 69 6e 20 |ed in de|tail in |
|00003970| 61 20 6c 61 74 65 72 20 | 73 65 63 74 69 6f 6e 2e |a later |section.|
|00003980| 0d 55 73 65 72 20 43 6f | 6e 66 69 67 75 72 61 74 |.User Co|nfigurat|
|00003990| 69 6f 6e 20 28 55 43 4e | 46 20 52 65 73 6f 75 72 |ion (UCN|F Resour|
|000039a0| 63 65 20 49 44 20 32 30 | 30 29 0d 54 68 69 73 20 |ce ID 20|0).This |
|000039b0| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 20 69 73 |code res|ource is|
|000039c0| 20 65 78 65 63 75 74 65 | 64 20 77 68 65 6e 20 61 | execute|d when a|
|000039d0| 20 75 73 65 72 20 77 69 | 6e 64 6f 77 20 69 73 20 | user wi|ndow is |
|000039e0| 6f 70 65 6e 20 6f 6e 20 | 74 68 65 20 41 52 41 20 |open on |the ARA |
|000039f0| 73 65 72 76 65 72 20 61 | 64 6d 69 6e 2c 20 61 6e |server a|dmin, an|
|00003a00| 64 20 74 68 65 20 73 65 | 63 75 72 69 74 79 20 6d |d the se|curity m|
|00003a10| 6f 64 75 6c 65 27 73 20 | 63 6f 6e 66 69 67 75 72 |odule's |configur|
|00003a20| 61 74 69 6f 6e 20 62 75 | 74 74 6f 6e 20 69 73 20 |ation bu|tton is |
|00003a30| 73 65 6c 65 63 74 65 64 | 2e 20 20 49 74 20 69 73 |selected|. It is|
|00003a40| 20 75 73 65 64 20 66 6f | 72 20 63 6f 6e 66 69 67 | used fo|r config|
|00003a50| 75 72 69 6e 67 20 70 72 | 6f 74 6f 63 6f 6c 2d 6c |uring pr|otocol-l|
|00003a60| 65 76 65 6c 20 73 65 63 | 75 72 69 74 79 20 69 6e |evel sec|urity in|
|00003a70| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 6e 20 61 20 70 |formatio|n on a p|
|00003a80| 65 72 2d 75 73 65 72 20 | 62 61 73 69 73 2e 20 20 |er-user |basis. |
|00003a90| 54 68 65 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |The code| resourc|
|00003aa0| 65 20 73 68 6f 75 6c 64 | 20 64 69 73 70 6c 61 79 |e should| display|
|00003ab0| 20 61 20 6d 6f 64 61 6c | 20 64 69 61 6c 6f 67 20 | a modal| dialog |
|00003ac0| 62 6f 78 20 61 6e 64 20 | 67 65 74 20 61 6e 79 20 |box and |get any |
|00003ad0| 6e 65 65 64 65 64 20 69 | 6e 66 6f 72 6d 61 74 69 |needed i|nformati|
|00003ae0| 6f 6e 2e 20 20 49 74 20 | 63 61 6e 20 73 74 6f 72 |on. It |can stor|
|00003af0| 65 20 31 35 30 20 62 79 | 74 65 73 20 6f 66 20 64 |e 150 by|tes of d|
|00003b00| 61 74 61 20 66 6f 72 20 | 65 61 63 68 20 75 73 65 |ata for |each use|
|00003b10| 72 20 28 73 65 65 20 41 | 52 41 57 72 69 74 65 53 |r (see A|RAWriteS|
|00003b20| 65 63 75 72 69 74 79 44 | 61 74 61 2c 20 61 6e 64 |ecurityD|ata, and|
|00003b30| 20 41 52 41 52 65 61 64 | 53 65 63 75 72 69 74 79 | ARARead|Security|
|00003b40| 44 61 74 61 29 2e 0d 4f | 6e 20 6b 53 65 63 75 72 |Data)..O|n kSecur|
|00003b50| 69 74 79 42 65 67 69 6e | 20 79 6f 75 20 73 68 6f |ityBegin| you sho|
|00003b60| 75 6c 64 20 73 74 61 72 | 74 20 79 6f 75 72 20 70 |uld star|t your p|
|00003b70| 72 6f 63 65 73 73 69 6e | 67 2c 20 65 2e 67 2e 20 |rocessin|g, e.g. |
|00003b80| 72 65 71 75 65 73 74 20 | 74 6f 20 72 65 61 64 20 |request |to read |
|00003b90| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 73 65 63 |the exis|ting sec|
|00003ba0| 75 72 69 74 79 20 64 61 | 74 61 20 28 41 52 41 52 |urity da|ta (ARAR|
|00003bb0| 65 61 64 4c 6f 63 6b 53 | 65 63 75 72 69 74 79 44 |eadLockS|ecurityD|
|00003bc0| 61 74 61 29 2c 20 6f 72 | 20 74 6f 20 67 65 74 20 |ata), or| to get |
|00003bd0| 74 68 65 20 75 73 65 72 | 27 73 20 6e 61 6d 65 20 |the user|'s name |
|00003be0| 28 41 52 41 47 65 74 55 | 73 65 72 49 6e 66 6f 29 |(ARAGetU|serInfo)|
|00003bf0| 2e 20 20 57 68 65 6e 20 | 79 6f 75 27 76 65 20 6f |. When |you've o|
|00003c00| 62 74 61 69 6e 65 64 20 | 74 68 69 73 20 69 6e 66 |btained |this inf|
|00003c10| 6f 72 6d 61 74 69 6f 6e | 2c 20 79 6f 75 20 63 61 |ormation|, you ca|
|00003c20| 6e 20 63 61 6c 6c 20 41 | 52 41 54 69 63 6b 6c 65 |n call A|RATickle|
|00003c30| 4d 65 20 74 6f 20 70 75 | 74 20 75 70 20 74 68 65 |Me to pu|t up the|
|00003c40| 20 6d 6f 64 61 6c 20 64 | 69 61 6c 6f 67 20 62 6f | modal d|ialog bo|
|00003c50| 78 20 28 69 74 20 6d 75 | 73 74 20 62 65 20 61 20 |x (it mu|st be a |
|00003c60| 6d 6f 64 61 6c 20 64 69 | 61 6c 6f 67 20 62 6f 78 |modal di|alog box|
|00003c70| 29 2e 20 20 59 6f 75 20 | 6d 75 73 74 20 64 69 73 |). You |must dis|
|00003c80| 70 6c 61 79 20 74 68 65 | 20 75 73 65 72 27 73 20 |play the| user's |
|00003c90| 6e 61 6d 65 20 61 74 20 | 74 68 65 20 74 6f 70 20 |name at |the top |
|00003ca0| 6f 66 20 74 68 69 73 20 | 64 69 61 6c 6f 67 20 62 |of this |dialog b|
|00003cb0| 6f 78 2e 20 20 54 68 65 | 20 75 73 65 72 20 63 61 |ox. The| user ca|
|00003cc0| 6e 20 74 68 65 6e 20 69 | 6e 70 75 74 2f 6d 6f 64 |n then i|nput/mod|
|00003cd0| 69 66 79 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |ify the |informat|
|00003ce0| 69 6f 6e 20 61 6e 64 20 | 65 69 74 68 65 72 20 73 |ion and |either s|
|00003cf0| 61 76 65 20 6f 72 20 63 | 61 6e 63 65 6c 2e 20 20 |ave or c|ancel. |
|00003d00| 49 66 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |If the u|ser sele|
|00003d10| 63 74 73 20 74 6f 20 73 | 61 76 65 20 74 68 65 20 |cts to s|ave the |
|00003d20| 64 61 74 61 2c 20 79 6f | 75 20 6d 75 73 74 20 77 |data, yo|u must w|
|00003d30| 72 69 74 65 20 69 74 20 | 6f 75 74 20 62 79 20 63 |rite it |out by c|
|00003d40| 61 6c 6c 69 6e 67 20 41 | 52 41 57 72 69 74 65 53 |alling A|RAWriteS|
|00003d50| 65 63 75 72 69 74 79 44 | 61 74 61 2e 20 20 54 68 |ecurityD|ata. Th|
|00003d60| 69 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 77 |is infor|mation w|
|00003d70| 69 6c 6c 20 74 68 65 6e | 20 62 65 20 61 76 61 69 |ill then| be avai|
|00003d80| 6c 61 62 6c 65 20 74 6f | 20 74 68 65 20 73 65 72 |lable to| the ser|
|00003d90| 76 65 72 2d 73 69 64 65 | 20 70 72 6f 74 6f 63 6f |ver-side| protoco|
|00003da0| 6c 2d 6c 65 76 65 6c 20 | 61 75 74 68 65 6e 74 69 |l-level |authenti|
|00003db0| 63 61 74 69 6f 6e 20 6d | 6f 64 75 6c 65 2e 0d 54 |cation m|odule..T|
|00003dc0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 41 52 41 |he follo|wing ARA|
|00003dd0| 20 53 65 72 76 69 63 65 | 20 52 6f 75 74 69 6e 65 | Service| Routine|
|00003de0| 73 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 62 79 |s can be| used by|
|00003df0| 20 61 20 55 43 4e 46 20 | 63 6f 64 65 20 72 65 73 | a UCNF |code res|
|00003e00| 6f 75 72 63 65 3a 0d 41 | 52 41 4c 6f 67 4d 65 73 |ource:.A|RALogMes|
|00003e10| 73 61 67 65 0d 41 52 41 | 52 65 61 64 53 65 63 75 |sage.ARA|ReadSecu|
|00003e20| 72 69 74 79 44 61 74 61 | 0d 41 52 41 52 65 61 64 |rityData|.ARARead|
|00003e30| 4c 6f 63 6b 53 65 63 75 | 72 69 74 79 44 61 74 61 |LockSecu|rityData|
|00003e40| 0d 41 52 41 55 6e 6c 6f | 63 6b 53 65 63 75 72 69 |.ARAUnlo|ckSecuri|
|00003e50| 74 79 44 61 74 61 0d 41 | 52 41 57 72 69 74 65 53 |tyData.A|RAWriteS|
|00003e60| 65 63 75 72 69 74 79 44 | 61 74 61 0d 41 52 41 47 |ecurityD|ata.ARAG|
|00003e70| 65 74 55 73 65 72 49 6e | 66 6f 0d 41 52 41 54 69 |etUserIn|fo.ARATi|
|00003e80| 63 6b 6c 65 4d 65 0d 41 | 52 41 43 6f 6d 70 6c 65 |ckleMe.A|RAComple|
|00003e90| 74 65 4f 70 65 72 61 74 | 69 6f 6e 0d 43 6c 69 65 |teOperat|ion.Clie|
|00003ea0| 6e 74 2d 73 69 64 65 20 | 50 72 6f 74 6f 63 6f 6c |nt-side |Protocol|
|00003eb0| 20 28 43 4c 50 52 20 52 | 65 73 6f 75 72 63 65 20 | (CLPR R|esource |
|00003ec0| 49 44 20 32 30 30 29 0d | 54 68 69 73 20 63 6f 64 |ID 200).|This cod|
|00003ed0| 65 20 72 65 73 6f 75 72 | 63 65 20 69 73 20 65 78 |e resour|ce is ex|
|00003ee0| 65 63 75 74 65 64 20 6f | 6e 20 74 68 65 20 41 52 |ecuted o|n the AR|
|00003ef0| 41 20 63 6c 69 65 6e 74 | 20 66 6f 72 20 70 72 6f |A client| for pro|
|00003f00| 74 6f 63 6f 6c 2d 6c 65 | 76 65 6c 20 61 75 74 68 |tocol-le|vel auth|
|00003f10| 65 6e 74 69 63 61 74 69 | 6f 6e 2e 20 20 54 68 65 |enticati|on. The|
|00003f20| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 73 | corresp|onding s|
|00003f30| 65 72 76 65 72 2d 73 69 | 64 65 20 70 72 6f 74 6f |erver-si|de proto|
|00003f40| 63 6f 6c 2d 6c 65 76 65 | 6c 20 6d 6f 64 75 6c 65 |col-leve|l module|
|00003f50| 20 69 73 20 61 6c 73 6f | 20 65 78 65 63 75 74 65 | is also| execute|
|00003f60| 64 20 6f 6e 20 74 68 65 | 20 73 65 72 76 65 72 2c |d on the| server,|
|00003f70| 20 61 6e 64 20 74 68 65 | 20 74 77 6f 20 6d 6f 64 | and the| two mod|
|00003f80| 75 6c 65 27 73 20 63 61 | 6e 20 63 6f 6d 6d 75 6e |ule's ca|n commun|
|00003f90| 69 63 61 74 65 20 77 69 | 74 68 20 65 61 63 68 20 |icate wi|th each |
|00003fa0| 6f 74 68 65 72 2e 0d 54 | 68 65 20 63 6c 69 65 6e |other..T|he clien|
|00003fb0| 74 20 6d 6f 64 75 6c 65 | 27 73 20 73 74 61 74 65 |t module|'s state|
|00003fc0| 20 73 68 6f 75 6c 64 20 | 62 65 20 64 72 69 76 65 | should |be drive|
|00003fd0| 6e 20 62 79 20 74 68 65 | 20 73 65 72 76 65 72 2c |n by the| server,|
|00003fe0| 20 61 6e 64 20 77 68 65 | 6e 20 74 68 65 20 61 75 | and whe|n the au|
|00003ff0| 74 68 65 6e 74 69 63 61 | 74 69 6f 6e 20 68 61 73 |thentica|tion has|
|00004000| 20 62 65 65 6e 20 63 6f | 6d 70 6c 65 74 65 64 2c | been co|mpleted,|
|00004010| 20 62 6f 74 68 20 73 69 | 64 65 73 20 73 68 6f 75 | both si|des shou|
|00004020| 6c 64 20 63 61 6c 6c 20 | 41 52 41 41 6c 6c 6f 77 |ld call |ARAAllow|
|00004030| 55 73 65 72 2f 41 52 41 | 44 6f 6e 74 41 6c 6c 6f |User/ARA|DontAllo|
|00004040| 77 55 73 65 72 2c 20 73 | 6f 20 41 52 41 20 63 61 |wUser, s|o ARA ca|
|00004050| 6e 20 70 72 6f 67 72 65 | 73 73 20 74 6f 20 74 68 |n progre|ss to th|
|00004060| 65 20 6e 65 78 74 20 73 | 74 61 74 65 2e 0d 41 20 |e next s|tate..A |
|00004070| 43 4c 50 52 20 6d 6f 64 | 75 6c 65 20 63 61 6e 20 |CLPR mod|ule can |
|00004080| 70 61 73 73 20 61 20 6d | 61 78 69 6d 75 6d 20 6f |pass a m|aximum o|
|00004090| 66 20 35 30 30 20 62 79 | 74 65 73 20 6f 66 20 64 |f 500 by|tes of d|
|000040a0| 61 74 61 20 74 6f 20 41 | 52 41 57 72 69 74 65 2f |ata to A|RAWrite/|
|000040b0| 41 52 41 52 65 61 64 2e | 20 20 54 68 65 20 41 52 |ARARead.| The AR|
|000040c0| 41 57 72 69 74 65 20 61 | 6e 64 20 41 52 41 52 65 |AWrite a|nd ARARe|
|000040d0| 61 64 20 77 69 6c 6c 20 | 63 6f 6d 6d 75 6e 69 63 |ad will |communic|
|000040e0| 61 74 65 20 77 69 74 68 | 20 74 68 65 20 73 65 72 |ate with| the ser|
|000040f0| 76 65 72 2d 73 69 64 65 | 20 70 72 6f 74 6f 63 6f |ver-side| protoco|
|00004100| 6c 20 28 69 2e 65 2e 20 | 41 52 41 52 65 61 64 20 |l (i.e. |ARARead |
|00004110| 6f 6e 20 74 68 65 20 63 | 6c 69 65 6e 74 20 73 69 |on the c|lient si|
|00004120| 64 65 20 77 69 6c 6c 20 | 72 65 61 64 20 64 61 74 |de will |read dat|
|00004130| 61 20 77 72 69 74 74 65 | 6e 20 62 79 20 74 68 65 |a writte|n by the|
|00004140| 20 73 65 72 76 65 72 20 | 6d 6f 64 75 6c 65 29 2e | server |module).|
|00004150| 0d 4f 6e 20 6b 53 65 63 | 75 72 69 74 79 42 65 67 |.On kSec|urityBeg|
|00004160| 69 6e 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 73 74 |in you s|hould st|
|00004170| 61 72 74 20 79 6f 75 72 | 20 73 74 61 74 65 20 6d |art your| state m|
|00004180| 61 63 68 69 6e 65 2c 20 | 67 65 74 74 69 6e 67 20 |achine, |getting |
|00004190| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 72 6f 6d |informat|ion from|
|000041a0| 20 74 68 65 20 75 73 65 | 72 20 61 6e 64 20 73 65 | the use|r and se|
|000041b0| 6e 64 69 6e 67 20 69 74 | 20 74 6f 20 74 68 65 20 |nding it| to the |
|000041c0| 73 65 72 76 65 72 20 6d | 6f 64 75 6c 65 2e 20 20 |server m|odule. |
|000041d0| 54 68 65 20 73 65 72 76 | 65 72 20 6d 6f 64 75 6c |The serv|er modul|
|000041e0| 65 20 73 68 6f 75 6c 64 | 20 69 6e 66 6f 72 6d 20 |e should| inform |
|000041f0| 74 68 65 20 63 6c 69 65 | 6e 74 20 6d 6f 64 75 6c |the clie|nt modul|
|00004200| 65 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |e when t|he user |
|00004210| 69 73 20 61 75 74 68 65 | 6e 74 69 63 61 74 65 64 |is authe|nticated|
|00004220| 20 6f 72 20 72 65 6a 65 | 63 74 65 64 2c 20 61 74 | or reje|cted, at|
|00004230| 20 77 68 69 63 68 20 74 | 69 6d 65 20 69 74 20 73 | which t|ime it s|
|00004240| 68 6f 75 6c 64 20 63 61 | 6c 6c 20 41 52 41 41 6c |hould ca|ll ARAAl|
|00004250| 6c 6f 77 55 73 65 72 2c | 20 6f 72 20 41 52 41 44 |lowUser,| or ARAD|
|00004260| 6f 6e 74 41 6c 6c 6f 77 | 55 73 65 72 2e 0d 54 68 |ontAllow|User..Th|
|00004270| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 41 52 41 20 |e follow|ing ARA |
|00004280| 53 65 72 76 69 63 65 20 | 52 6f 75 74 69 6e 65 73 |Service |Routines|
|00004290| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 62 79 20 | can be |used by |
|000042a0| 61 20 43 4c 50 52 20 63 | 6f 64 65 20 72 65 73 6f |a CLPR c|ode reso|
|000042b0| 75 72 63 65 3a 0d 41 52 | 41 52 65 61 64 0d 41 52 |urce:.AR|ARead.AR|
|000042c0| 41 57 72 69 74 65 0d 41 | 52 41 4c 6f 67 4d 65 73 |AWrite.A|RALogMes|
|000042d0| 73 61 67 65 0d 41 52 41 | 41 6c 6c 6f 77 55 73 65 |sage.ARA|AllowUse|
|000042e0| 72 0d 41 52 41 44 6f 6e | 74 41 6c 6c 6f 77 55 73 |r.ARADon|tAllowUs|
|000042f0| 65 72 0d 41 52 41 54 69 | 63 6b 6c 65 4d 65 0d 41 |er.ARATi|ckleMe.A|
|00004300| 52 41 43 6f 6d 70 6c 65 | 74 65 4f 70 65 72 61 74 |RAComple|teOperat|
|00004310| 69 6f 6e 0d 53 65 72 76 | 65 72 2d 73 69 64 65 20 |ion.Serv|er-side |
|00004320| 50 72 6f 74 6f 63 6f 6c | 20 28 53 52 50 52 20 52 |Protocol| (SRPR R|
|00004330| 65 73 6f 75 72 63 65 20 | 49 44 20 32 30 30 29 0d |esource |ID 200).|
|00004340| 54 68 69 73 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |This cod|e resour|
|00004350| 63 65 20 69 73 20 65 78 | 65 63 75 74 65 64 20 6f |ce is ex|ecuted o|
|00004360| 6e 20 74 68 65 20 73 65 | 72 76 65 72 20 74 6f 20 |n the se|rver to |
|00004370| 61 75 74 68 65 6e 74 69 | 63 61 74 65 20 61 20 75 |authenti|cate a u|
|00004380| 73 65 72 20 61 66 74 65 | 72 20 74 68 65 20 41 52 |ser afte|r the AR|
|00004390| 41 20 70 72 6f 74 6f 63 | 6f 6c 20 68 61 73 20 62 |A protoc|ol has b|
|000043a0| 65 65 6e 20 65 73 74 61 | 62 6c 69 73 68 65 64 2e |een esta|blished.|
|000043b0| 20 20 49 74 20 63 61 6e | 20 63 6f 6d 6d 75 6e 69 | It can| communi|
|000043c0| 63 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 63 |cated wi|th the c|
|000043d0| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 63 6c 69 |orrespon|ding cli|
|000043e0| 65 6e 74 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |ent auth|enticati|
|000043f0| 6f 6e 20 6d 6f 64 75 6c | 65 2e 20 20 41 52 41 20 |on modul|e. ARA |
|00004400| 6c 6f 61 64 73 20 74 68 | 65 20 63 6c 69 65 6e 74 |loads th|e client|
|00004410| 20 6d 6f 64 75 6c 65 20 | 61 75 74 6f 6d 61 74 69 | module |automati|
|00004420| 63 61 6c 6c 79 2e 0d 54 | 68 69 73 20 63 6f 64 65 |cally..T|his code|
|00004430| 20 72 65 73 6f 75 72 63 | 65 20 73 68 6f 75 6c 64 | resourc|e should|
|00004440| 20 67 65 74 20 74 68 65 | 20 75 73 65 72 20 69 6e | get the| user in|
|00004450| 66 6f 72 6d 61 74 69 6f | 6e 20 66 72 6f 6d 20 74 |formatio|n from t|
|00004460| 68 65 20 63 6c 69 65 6e | 74 20 6d 6f 64 75 6c 65 |he clien|t module|
|00004470| 20 61 6e 64 20 64 65 74 | 65 72 6d 69 6e 65 20 69 | and det|ermine i|
|00004480| 66 20 74 68 65 20 75 73 | 65 72 20 73 68 6f 75 6c |f the us|er shoul|
|00004490| 64 20 62 65 20 61 6c 6c | 6f 77 65 64 20 69 6e 2e |d be all|owed in.|
|000044a0| 20 20 4f 6e 63 65 20 61 | 20 75 73 65 72 20 68 61 | Once a| user ha|
|000044b0| 73 20 62 65 65 6e 20 61 | 75 74 68 65 6e 74 69 63 |s been a|uthentic|
|000044c0| 61 74 65 64 20 6f 72 20 | 72 65 6a 65 63 74 65 64 |ated or |rejected|
|000044d0| 2c 20 74 68 69 73 20 63 | 6f 64 65 20 72 65 73 6f |, this c|ode reso|
|000044e0| 75 72 63 65 20 73 68 6f | 75 6c 64 20 69 6e 66 6f |urce sho|uld info|
|000044f0| 72 6d 20 74 68 65 20 63 | 6c 69 65 6e 74 20 73 69 |rm the c|lient si|
|00004500| 64 65 2c 20 61 6e 64 20 | 74 68 65 6e 20 63 61 6c |de, and |then cal|
|00004510| 6c 20 41 52 41 41 6c 6c | 6f 77 55 73 65 72 2f 41 |l ARAAll|owUser/A|
|00004520| 52 41 44 6f 6e 74 41 6c | 6c 6f 77 55 73 65 72 2e |RADontAl|lowUser.|
|00004530| 20 20 54 68 65 20 63 6c | 69 65 6e 74 20 63 6f 64 | The cl|ient cod|
|00004540| 65 20 72 65 73 6f 75 72 | 63 65 20 73 68 6f 75 6c |e resour|ce shoul|
|00004550| 64 20 61 6c 73 6f 20 63 | 61 6c 6c 20 41 52 41 41 |d also c|all ARAA|
|00004560| 6c 6c 6f 77 55 73 65 72 | 2f 41 52 41 44 6f 6e 74 |llowUser|/ARADont|
|00004570| 41 6c 6c 6f 77 55 73 65 | 72 2e 0d 41 20 53 52 50 |AllowUse|r..A SRP|
|00004580| 52 20 63 6f 64 65 20 72 | 65 73 6f 75 72 63 65 20 |R code r|esource |
|00004590| 63 61 6e 20 77 72 69 74 | 65 20 61 6e 64 20 72 65 |can writ|e and re|
|000045a0| 61 64 20 61 20 6d 61 78 | 69 6d 75 6d 20 6f 66 20 |ad a max|imum of |
|000045b0| 35 30 30 20 62 79 74 65 | 73 20 6f 66 20 64 61 74 |500 byte|s of dat|
|000045c0| 61 20 75 73 69 6e 67 20 | 41 52 41 57 72 69 74 65 |a using |ARAWrite|
|000045d0| 20 6f 72 20 41 52 41 52 | 65 61 64 2e 20 20 54 68 | or ARAR|ead. Th|
|000045e0| 65 20 64 61 74 61 20 69 | 73 20 65 78 63 68 61 6e |e data i|s exchan|
|000045f0| 67 65 64 20 77 69 74 68 | 20 63 6c 69 65 6e 74 20 |ged with| client |
|00004600| 6d 6f 64 75 6c 65 2e 0d | 54 68 69 73 20 63 6f 64 |module..|This cod|
|00004610| 65 20 72 65 73 6f 75 72 | 63 65 20 63 61 6e 20 75 |e resour|ce can u|
|00004620| 73 65 20 41 52 41 52 65 | 61 64 4c 6f 63 6b 53 65 |se ARARe|adLockSe|
|00004630| 63 75 72 69 74 79 44 61 | 74 61 2c 20 41 52 41 52 |curityDa|ta, ARAR|
|00004640| 65 61 64 53 65 63 75 72 | 69 74 79 44 61 74 61 2c |eadSecur|ityData,|
|00004650| 20 41 52 41 57 72 69 74 | 65 53 65 63 75 72 69 74 | ARAWrit|eSecurit|
|00004660| 79 44 61 74 61 2c 20 61 | 6e 64 20 41 52 41 55 6e |yData, a|nd ARAUn|
|00004670| 6c 6f 63 6b 53 65 63 75 | 72 69 74 79 44 61 74 61 |lockSecu|rityData|
|00004680| 20 74 6f 20 61 63 63 65 | 73 73 20 61 6e 64 20 6d | to acce|ss and m|
|00004690| 6f 64 69 66 79 20 74 68 | 65 20 31 35 30 20 62 79 |odify th|e 150 by|
|000046a0| 74 65 73 20 6f 66 20 73 | 65 63 75 72 69 74 79 20 |tes of s|ecurity |
|000046b0| 64 61 74 61 20 61 73 73 | 6f 63 69 61 74 65 64 20 |data ass|ociated |
|000046c0| 77 69 74 68 20 65 61 63 | 68 20 75 73 65 72 2e 20 |with eac|h user. |
|000046d0| 20 45 61 63 68 20 73 65 | 63 75 72 69 74 79 20 6d | Each se|curity m|
|000046e0| 6f 64 75 6c 65 20 63 61 | 6e 20 68 61 76 65 20 31 |odule ca|n have 1|
|000046f0| 35 30 20 62 79 74 65 73 | 20 6f 66 20 64 61 74 61 |50 bytes| of data|
|00004700| 20 66 6f 72 20 65 61 63 | 68 20 75 73 65 72 2e 0d | for eac|h user..|
|00004710| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 41 52 |The foll|owing AR|
|00004720| 41 20 53 65 72 76 69 63 | 65 20 52 6f 75 74 69 6e |A Servic|e Routin|
|00004730| 65 73 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 62 |es can b|e used b|
|00004740| 79 20 61 20 53 52 50 52 | 20 63 6f 64 65 20 72 65 |y a SRPR| code re|
|00004750| 73 6f 75 72 63 65 3a 0d | 41 52 41 52 65 61 64 0d |source:.|ARARead.|
|00004760| 41 52 41 57 72 69 74 65 | 0d 41 52 41 4c 6f 67 4d |ARAWrite|.ARALogM|
|00004770| 65 73 73 61 67 65 0d 41 | 52 41 43 61 6c 6c 42 61 |essage.A|RACallBa|
|00004780| 63 6b 41 74 0d 41 52 41 | 41 6c 6c 6f 77 55 73 65 |ckAt.ARA|AllowUse|
|00004790| 72 0d 41 52 41 44 6f 6e | 74 41 6c 6c 6f 77 55 73 |r.ARADon|tAllowUs|
|000047a0| 65 72 0d 41 52 41 52 65 | 61 64 53 65 63 75 72 69 |er.ARARe|adSecuri|
|000047b0| 74 79 44 61 74 61 0d 41 | 52 41 52 65 61 64 4c 6f |tyData.A|RAReadLo|
|000047c0| 63 6b 53 65 63 75 72 69 | 74 79 44 61 74 61 0d 41 |ckSecuri|tyData.A|
|000047d0| 52 41 55 6e 6c 6f 63 6b | 53 65 63 75 72 69 74 79 |RAUnlock|Security|
|000047e0| 44 61 74 61 0d 41 52 41 | 57 72 69 74 65 53 65 63 |Data.ARA|WriteSec|
|000047f0| 75 72 69 74 79 44 61 74 | 61 0d 41 52 41 47 65 74 |urityDat|a.ARAGet|
|00004800| 55 73 65 72 49 6e 66 6f | 0d 41 52 41 47 65 74 4d |UserInfo|.ARAGetM|
|00004810| 79 53 65 73 73 69 6f 6e | 52 65 66 0d 41 52 41 54 |ySession|Ref.ARAT|
|00004820| 69 63 6b 6c 65 4d 65 0d | 41 52 41 43 6f 6d 70 6c |ickleMe.|ARACompl|
|00004830| 65 74 65 4f 70 65 72 61 | 74 69 6f 6e 0d 43 6f 6e |eteOpera|tion.Con|
|00004840| 6e 65 63 74 69 6f 6e 20 | 43 6f 6e 66 69 67 75 72 |nection |Configur|
|00004850| 61 74 69 6f 6e 20 28 43 | 43 4e 46 20 52 65 73 6f |ation (C|CNF Reso|
|00004860| 75 72 63 65 20 49 44 20 | 32 30 30 29 0d 41 20 43 |urce ID |200).A C|
|00004870| 6f 6e 6e 65 63 74 69 6f | 6e 20 43 6f 6e 66 69 67 |onnectio|n Config|
|00004880| 75 72 61 74 69 6f 6e 20 | 63 6f 64 65 20 72 65 73 |uration |code res|
|00004890| 6f 75 72 63 65 20 69 73 | 20 65 78 65 63 75 74 65 |ource is| execute|
|000048a0| 64 20 6f 6e 20 74 68 65 | 20 63 6c 69 65 6e 74 20 |d on the| client |
|000048b0| 73 69 64 65 20 77 68 65 | 6e 20 74 68 65 20 75 73 |side whe|n the us|
|000048c0| 65 72 20 73 65 6c 65 63 | 74 73 20 22 43 6f 6e 66 |er selec|ts "Conf|
|000048d0| 69 67 75 72 61 74 69 6f | 6e 22 20 62 75 74 74 6f |iguratio|n" butto|
|000048e0| 6e 20 6f 6e 20 74 68 65 | 20 63 6c 69 65 6e 74 20 |n on the| client |
|000048f0| 69 6e 20 61 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |in a con|nection |
|00004900| 64 6f 63 75 6d 65 6e 74 | 27 73 20 73 65 63 75 72 |document|'s secur|
|00004910| 69 74 79 20 6f 70 74 69 | 6f 6e 2e 20 20 49 74 20 |ity opti|on. It |
|00004920| 63 61 6e 20 73 74 6f 72 | 65 20 31 35 30 20 62 79 |can stor|e 150 by|
|00004930| 74 65 73 20 6f 66 20 64 | 61 74 61 20 69 6e 20 61 |tes of d|ata in a|
|00004940| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 64 6f 63 75 | connect|ion docu|
|00004950| 6d 65 6e 74 20 66 6f 72 | 20 61 20 6c 69 6e 65 2d |ment for| a line-|
|00004960| 6c 65 76 65 6c 20 73 65 | 63 75 72 69 74 79 20 64 |level se|curity d|
|00004970| 65 76 69 63 65 2e 0d 49 | 74 20 73 68 6f 75 6c 64 |evice..I|t should|
|00004980| 20 64 69 73 70 6c 61 79 | 20 61 20 6d 6f 64 61 6c | display| a modal|
|00004990| 20 64 69 61 6c 6f 67 20 | 61 6e 64 20 67 65 74 20 | dialog |and get |
|000049a0| 61 6e 79 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |any info|rmation |
|000049b0| 72 65 6c 65 76 61 6e 74 | 20 74 6f 20 63 6f 6e 6e |relevant| to conn|
|000049c0| 65 63 74 69 6f 6e 73 20 | 77 69 74 68 20 6c 69 6e |ections |with lin|
|000049d0| 65 2d 6c 65 76 65 6c 20 | 73 65 63 75 72 69 74 79 |e-level |security|
|000049e0| 2e 20 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 41 |. You c|an use A|
|000049f0| 52 41 52 65 61 64 4c 6f | 63 6b 53 65 63 75 72 69 |RAReadLo|ckSecuri|
|00004a00| 74 79 44 61 74 61 2c 20 | 41 52 41 52 65 61 64 53 |tyData, |ARAReadS|
|00004a10| 65 63 75 72 69 74 79 44 | 61 74 61 2c 20 41 52 41 |ecurityD|ata, ARA|
|00004a20| 57 72 69 74 65 53 65 63 | 75 72 69 74 79 44 61 74 |WriteSec|urityDat|
|00004a30| 61 2c 20 61 6e 64 20 41 | 52 41 55 6e 6c 6f 63 6b |a, and A|RAUnlock|
|00004a40| 53 65 63 75 72 69 74 79 | 44 61 74 61 20 74 6f 20 |Security|Data to |
|00004a50| 61 63 63 65 73 73 20 61 | 6e 64 20 6d 6f 64 69 66 |access a|nd modif|
|00004a60| 79 20 74 68 65 20 73 65 | 63 75 72 69 74 79 20 64 |y the se|curity d|
|00004a70| 61 74 61 2e 0d 4f 6e 20 | 6b 53 65 63 75 72 69 74 |ata..On |kSecurit|
|00004a80| 79 42 65 67 69 6e 20 79 | 6f 75 20 73 68 6f 75 6c |yBegin y|ou shoul|
|00004a90| 64 20 67 65 74 20 74 68 | 65 20 65 78 69 73 74 69 |d get th|e existi|
|00004aa0| 6e 67 20 73 65 63 75 72 | 69 74 79 20 64 61 74 61 |ng secur|ity data|
|00004ab0| 2e 20 20 4f 6e 63 65 20 | 79 6f 75 20 68 61 76 65 |. Once |you have|
|00004ac0| 20 6f 62 74 61 69 6e 65 | 64 20 74 68 65 20 64 61 | obtaine|d the da|
|00004ad0| 74 61 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 64 |ta, you |should d|
|00004ae0| 69 73 70 6c 61 79 20 61 | 20 64 69 61 6c 6f 67 20 |isplay a| dialog |
|00004af0| 62 6f 78 2c 20 61 6e 64 | 20 61 6c 6c 6f 77 20 74 |box, and| allow t|
|00004b00| 68 65 20 75 73 65 72 20 | 74 6f 20 6d 6f 64 69 66 |he user |to modif|
|00004b10| 79 20 69 74 2e 20 20 57 | 68 65 6e 20 74 68 65 20 |y it. W|hen the |
|00004b20| 75 73 65 72 20 69 73 20 | 64 6f 6e 65 2c 20 79 6f |user is |done, yo|
|00004b30| 75 20 63 61 6e 20 77 72 | 69 74 65 20 74 68 65 20 |u can wr|ite the |
|00004b40| 73 65 63 75 72 69 74 79 | 20 64 61 74 61 20 69 66 |security| data if|
|00004b50| 20 69 74 20 77 61 73 20 | 6d 6f 64 69 66 69 65 64 | it was |modified|
|00004b60| 2c 20 75 73 69 6e 67 20 | 41 52 41 57 72 69 74 65 |, using |ARAWrite|
|00004b70| 53 65 63 75 72 69 74 79 | 44 61 74 61 2e 0d 54 68 |Security|Data..Th|
|00004b80| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 41 52 41 20 |e follow|ing ARA |
|00004b90| 53 65 72 76 69 63 65 20 | 52 6f 75 74 69 6e 65 73 |Service |Routines|
|00004ba0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 62 79 20 | can be |used by |
|00004bb0| 61 20 43 43 4e 46 20 63 | 6f 64 65 20 72 65 73 6f |a CCNF c|ode reso|
|00004bc0| 75 72 63 65 3a 0d 41 52 | 41 52 65 61 64 53 65 63 |urce:.AR|AReadSec|
|00004bd0| 75 72 69 74 79 44 61 74 | 61 0d 41 52 41 52 65 61 |urityDat|a.ARARea|
|00004be0| 64 4c 6f 63 6b 53 65 63 | 75 72 69 74 79 44 61 74 |dLockSec|urityDat|
|00004bf0| 61 0d 41 52 41 55 6e 6c | 6f 63 6b 53 65 63 75 72 |a.ARAUnl|ockSecur|
|00004c00| 69 74 79 44 61 74 61 0d | 41 52 41 57 72 69 74 65 |ityData.|ARAWrite|
|00004c10| 53 65 63 75 72 69 74 79 | 44 61 74 61 0d 41 52 41 |Security|Data.ARA|
|00004c20| 54 69 63 6b 6c 65 4d 65 | 0d 41 52 41 43 6f 6d 70 |TickleMe|.ARAComp|
|00004c30| 6c 65 74 65 4f 70 65 72 | 61 74 69 6f 6e 0d 43 6c |leteOper|ation.Cl|
|00004c40| 69 65 6e 74 20 53 69 64 | 65 20 4c 69 6e 65 2d 6c |ient Sid|e Line-l|
|00004c50| 65 76 65 6c 20 28 43 4c | 4c 4e 20 52 65 73 6f 75 |evel (CL|LN Resou|
|00004c60| 72 63 65 20 49 44 20 32 | 30 30 29 0d 41 20 63 6c |rce ID 2|00).A cl|
|00004c70| 69 65 6e 74 2d 73 69 64 | 65 20 6c 69 6e 65 2d 6c |ient-sid|e line-l|
|00004c80| 65 76 65 6c 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |evel cod|e resour|
|00004c90| 63 65 20 69 73 20 65 78 | 65 63 75 74 65 64 20 61 |ce is ex|ecuted a|
|00004ca0| 66 74 65 72 20 61 20 70 | 68 79 73 69 63 61 6c 20 |fter a p|hysical |
|00004cb0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 68 61 73 20 62 |connecti|on has b|
|00004cc0| 65 65 6e 20 65 73 74 61 | 62 6c 69 73 68 65 64 2c |een esta|blished,|
|00004cd0| 20 75 73 69 6e 67 20 61 | 20 63 6f 6e 6e 65 63 74 | using a| connect|
|00004ce0| 69 6f 6e 20 64 6f 63 75 | 6d 65 6e 74 20 63 6f 6e |ion docu|ment con|
|00004cf0| 66 69 67 75 72 65 64 20 | 77 69 74 68 20 73 65 63 |figured |with sec|
|00004d00| 75 72 69 74 79 2e 20 20 | 49 74 20 73 68 6f 75 6c |urity. |It shoul|
|00004d10| 64 20 63 6f 6d 6d 75 6e | 69 63 61 74 65 20 77 69 |d commun|icate wi|
|00004d20| 74 68 20 74 68 65 20 6c | 69 6e 65 2d 6c 65 76 65 |th the l|ine-leve|
|00004d30| 6c 20 64 65 76 69 63 65 | 2c 20 70 72 6f 6d 70 74 |l device|, prompt|
|00004d40| 69 6e 67 20 74 68 65 20 | 75 73 65 72 20 66 6f 72 |ing the |user for|
|00004d50| 20 61 6e 79 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | any inf|ormation|
|00004d60| 20 74 68 65 20 64 65 76 | 69 63 65 20 72 65 71 75 | the dev|ice requ|
|00004d70| 69 72 65 73 2e 0d 41 20 | 43 4c 4c 4e 20 63 6f 64 |ires..A |CLLN cod|
|00004d80| 65 20 72 65 73 6f 75 72 | 63 65 20 63 61 6e 20 75 |e resour|ce can u|
|00004d90| 73 65 20 74 68 65 20 41 | 52 41 52 65 61 64 20 61 |se the A|RARead a|
|00004da0| 6e 64 20 41 52 41 57 72 | 69 74 65 20 74 6f 20 63 |nd ARAWr|ite to c|
|00004db0| 6f 6d 6d 75 6e 69 63 61 | 74 65 20 77 69 74 68 20 |ommunica|te with |
|00004dc0| 74 68 65 20 6c 69 6e 65 | 2d 6c 65 76 65 6c 20 64 |the line|-level d|
|00004dd0| 65 76 69 63 65 20 6f 6e | 20 74 68 65 20 73 65 72 |evice on| the ser|
|00004de0| 76 65 72 2e 20 20 54 68 | 65 20 64 61 74 61 20 62 |ver. Th|e data b|
|00004df0| 65 69 6e 67 20 72 65 61 | 64 20 6f 72 20 77 72 69 |eing rea|d or wri|
|00004e00| 74 74 65 6e 20 69 73 20 | 73 65 6e 74 20 6f 76 65 |tten is |sent ove|
|00004e10| 72 20 74 68 65 20 70 68 | 79 73 69 63 61 6c 20 6c |r the ph|ysical l|
|00004e20| 69 6e 65 20 77 69 74 68 | 6f 75 74 20 61 6e 79 20 |ine with|out any |
|00004e30| 70 61 63 6b 65 74 69 7a | 61 74 69 6f 6e 2e 20 20 |packetiz|ation. |
|00004e40| 59 6f 75 72 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |Your cod|e resour|
|00004e50| 63 65 20 67 65 74 73 20 | 63 6f 6e 74 72 6f 6c 20 |ce gets |control |
|00004e60| 6f 66 20 74 68 65 20 6c | 69 6e 65 20 61 66 74 65 |of the l|ine afte|
|00004e70| 72 20 61 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |r a conn|ection i|
|00004e80| 73 20 65 73 74 61 62 6c | 69 73 68 65 64 2c 20 62 |s establ|ished, b|
|00004e90| 75 74 20 62 65 66 6f 72 | 65 20 79 6f 75 72 20 61 |ut befor|e your a|
|00004ea0| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 20 64 65 |uthentic|ation de|
|00004eb0| 76 69 63 65 20 61 6c 6c | 6f 77 73 20 63 6f 6e 6e |vice all|ows conn|
|00004ec0| 65 63 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 41 52 |ection t|o the AR|
|00004ed0| 41 20 73 65 72 76 65 72 | 2e 0d 4f 6e 20 6b 53 65 |A server|..On kSe|
|00004ee0| 63 75 72 69 74 79 42 65 | 67 69 6e 20 79 6f 75 20 |curityBe|gin you |
|00004ef0| 73 68 6f 75 6c 64 20 73 | 74 61 72 74 20 74 68 65 |should s|tart the|
|00004f00| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 20 70 | communi|cation p|
|00004f10| 72 6f 63 65 73 73 20 77 | 69 74 68 20 74 68 65 20 |rocess w|ith the |
|00004f20| 73 65 72 76 65 72 20 6c | 69 6e 65 2d 6c 65 76 65 |server l|ine-leve|
|00004f30| 6c 20 64 65 76 69 63 65 | 2e 20 20 59 6f 75 20 63 |l device|. You c|
|00004f40| 61 6e 20 64 69 73 70 6c | 61 79 20 61 20 64 69 61 |an displ|ay a dia|
|00004f50| 6c 6f 67 20 62 6f 78 20 | 74 6f 20 6f 62 74 61 69 |log box |to obtai|
|00004f60| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 72 |n inform|ation fr|
|00004f70| 6f 6d 20 74 68 65 20 75 | 73 65 72 2e 20 20 4f 6e |om the u|ser. On|
|00004f80| 63 65 20 74 68 65 20 70 | 68 79 73 69 63 61 6c 20 |ce the p|hysical |
|00004f90| 64 65 76 69 63 65 20 68 | 61 73 20 61 75 74 68 65 |device h|as authe|
|00004fa0| 6e 74 69 63 61 74 65 64 | 20 6f 72 20 72 65 6a 65 |nticated| or reje|
|00004fb0| 63 74 65 64 20 74 68 65 | 20 75 73 65 72 20 74 68 |cted the| user th|
|00004fc0| 65 20 63 6f 64 65 20 72 | 65 73 6f 75 72 63 65 20 |e code r|esource |
|00004fd0| 73 68 6f 75 6c 64 20 63 | 61 6c 6c 20 41 52 41 41 |should c|all ARAA|
|00004fe0| 6c 6c 6f 77 55 73 65 72 | 20 6f 72 20 41 52 41 44 |llowUser| or ARAD|
|00004ff0| 6f 6e 74 41 6c 6c 6f 77 | 55 73 65 72 20 74 6f 20 |ontAllow|User to |
|00005000| 6c 65 74 20 41 52 41 20 | 74 72 61 6e 73 69 74 69 |let ARA |transiti|
|00005010| 6f 6e 20 74 6f 20 74 68 | 65 20 6e 65 78 74 20 73 |on to th|e next s|
|00005020| 74 61 74 65 2e 0d 59 6f | 75 20 63 61 6e 20 75 73 |tate..Yo|u can us|
|00005030| 65 20 41 52 41 52 65 61 | 64 53 65 63 75 72 69 74 |e ARARea|dSecurit|
|00005040| 79 44 61 74 61 20 74 6f | 20 61 63 63 65 73 73 20 |yData to| access |
|00005050| 74 68 65 20 31 35 30 20 | 62 79 74 65 73 20 6f 66 |the 150 |bytes of|
|00005060| 20 64 61 74 61 20 73 74 | 6f 72 65 64 20 69 6e 20 | data st|ored in |
|00005070| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 64 |the conn|ection d|
|00005080| 6f 63 75 6d 65 6e 74 2e | 20 20 59 6f 75 20 63 61 |ocument.| You ca|
|00005090| 6e 20 6e 6f 74 20 6d 6f | 64 69 66 79 20 74 68 69 |n not mo|dify thi|
|000050a0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 64 75 |s inform|ation du|
|000050b0| 72 69 6e 67 20 61 75 74 | 68 65 6e 74 69 63 61 74 |ring aut|henticat|
|000050c0| 69 6f 6e 2e 20 20 54 68 | 65 20 73 65 63 75 72 69 |ion. Th|e securi|
|000050d0| 74 79 20 64 61 74 61 20 | 69 73 20 73 74 6f 72 65 |ty data |is store|
|000050e0| 64 20 69 6e 20 61 6e 20 | 61 6c 69 61 73 20 74 6f |d in an |alias to|
|000050f0| 20 61 20 72 65 6d 6f 74 | 65 20 73 65 72 76 65 72 | a remot|e server|
|00005100| 20 61 73 20 77 65 6c 6c | 20 61 73 20 74 68 65 20 | as well| as the |
|00005110| 6f 72 69 67 69 6e 61 6c | 20 63 6f 6e 6e 65 63 74 |original| connect|
|00005120| 69 6f 6e 20 64 6f 63 75 | 6d 65 6e 74 2c 20 73 6f |ion docu|ment, so|
|00005130| 20 79 6f 75 20 63 61 6e | 20 67 65 74 20 74 68 65 | you can| get the|
|00005140| 20 64 61 74 61 20 65 76 | 65 6e 20 69 66 20 74 68 | data ev|en if th|
|00005150| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 69 73 20 |e connec|tion is |
|00005160| 69 6e 69 74 69 61 74 65 | 64 20 66 72 6f 6d 20 61 |initiate|d from a|
|00005170| 6e 20 61 6c 69 61 73 20 | 74 6f 20 61 20 72 65 6d |n alias |to a rem|
|00005180| 6f 74 65 20 73 65 72 76 | 65 72 2e 0d 41 20 43 4c |ote serv|er..A CL|
|00005190| 4c 4e 20 63 6f 64 65 20 | 72 65 73 6f 75 72 63 65 |LN code |resource|
|000051a0| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 66 6f 6c | can use| the fol|
|000051b0| 6c 6f 77 69 6e 67 20 41 | 52 41 20 53 65 72 76 69 |lowing A|RA Servi|
|000051c0| 63 65 20 52 6f 75 74 69 | 6e 65 73 3a 0d 41 52 41 |ce Routi|nes:.ARA|
|000051d0| 52 65 61 64 0d 41 52 41 | 57 72 69 74 65 0d 41 52 |Read.ARA|Write.AR|
|000051e0| 41 41 6c 6c 6f 77 55 73 | 65 72 0d 41 52 41 44 6f |AAllowUs|er.ARADo|
|000051f0| 6e 74 41 6c 6c 6f 77 55 | 73 65 72 0d 41 52 41 52 |ntAllowU|ser.ARAR|
|00005200| 65 61 64 53 65 63 75 72 | 69 74 79 44 61 74 61 0d |eadSecur|ityData.|
|00005210| 41 52 41 54 69 63 6b 6c | 65 4d 65 0d 41 52 41 43 |ARATickl|eMe.ARAC|
|00005220| 6f 6d 70 6c 65 74 65 4f | 70 65 72 61 74 69 6f 6e |ompleteO|peration|
|00005230| 0d 41 63 74 69 6f 6e 73 | 0d 41 63 74 69 6f 6e 73 |.Actions|.Actions|
|00005240| 20 61 72 65 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 | are one| of the |
|00005250| 70 61 72 61 6d 65 74 65 | 72 73 20 70 61 73 73 65 |paramete|rs passe|
|00005260| 64 20 74 6f 20 79 6f 75 | 72 20 63 6f 64 65 20 72 |d to you|r code r|
|00005270| 65 73 6f 75 72 63 65 27 | 73 20 65 6e 74 72 79 20 |esource'|s entry |
|00005280| 72 6f 75 74 69 6e 65 2e | 20 20 41 52 41 20 73 65 |routine.| ARA se|
|00005290| 6e 64 73 20 74 68 65 6d | 20 74 6f 20 72 65 71 75 |nds them| to requ|
|000052a0| 65 73 74 20 61 20 73 65 | 72 76 69 63 65 20 66 72 |est a se|rvice fr|
|000052b0| 6f 6d 20 79 6f 75 72 20 | 63 6f 64 65 20 72 65 73 |om your |code res|
|000052c0| 6f 75 72 63 65 2e 20 0d | 41 6c 6c 20 61 63 74 69 |ource. .|All acti|
|000052d0| 6f 6e 73 20 61 72 65 20 | 73 65 6e 74 20 64 75 72 |ons are |sent dur|
|000052e0| 69 6e 67 20 6d 61 69 6e | 20 74 68 72 65 61 64 20 |ing main| thread |
|000052f0| 74 69 6d 65 2c 20 73 6f | 20 79 6f 75 20 63 61 6e |time, so| you can|
|00005300| 20 61 6c 6c 6f 63 61 74 | 65 20 6d 65 6d 6f 72 79 | allocat|e memory|
|00005310| 20 61 6e 64 20 6d 61 6b | 65 20 63 61 6c 6c 73 20 | and mak|e calls |
|00005320| 74 6f 20 4d 61 63 20 54 | 6f 6f 6c 62 6f 78 20 72 |to Mac T|oolbox r|
|00005330| 6f 75 74 69 6e 65 73 2e | 20 20 54 68 65 20 63 6f |outines.| The co|
|00005340| 64 65 20 72 65 73 6f 75 | 72 63 65 27 73 20 41 35 |de resou|rce's A5|
|00005350| 20 77 6f 72 6c 64 20 69 | 73 20 73 65 74 75 70 20 | world i|s setup |
|00005360| 70 72 69 6f 72 20 74 6f | 20 63 61 6c 6c 69 6e 67 |prior to| calling|
|00005370| 20 79 6f 75 72 20 72 6f | 75 74 69 6e 65 2e 20 20 | your ro|utine. |
|00005380| 54 68 65 20 72 65 73 6f | 75 72 63 65 20 66 6f 72 |The reso|urce for|
|00005390| 6b 20 6f 66 20 79 6f 75 | 72 20 6d 6f 64 75 6c 65 |k of you|r module|
|000053a0| 20 69 73 20 6f 70 65 6e | 20 61 6e 64 20 6f 6e 20 | is open| and on |
|000053b0| 74 6f 70 20 6f 66 20 74 | 68 65 20 72 65 73 6f 75 |top of t|he resou|
|000053c0| 72 63 65 73 20 73 74 61 | 63 6b 2e 0d 59 6f 75 20 |rces sta|ck..You |
|000053d0| 73 68 6f 75 6c 64 20 70 | 72 6f 63 65 73 73 20 61 |should p|rocess a|
|000053e0| 63 74 69 6f 6e 73 20 61 | 73 20 71 75 69 63 6b 6c |ctions a|s quickl|
|000053f0| 79 20 61 73 20 70 6f 73 | 73 69 62 6c 65 2e 20 20 |y as pos|sible. |
|00005400| 59 6f 75 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 67 |You shou|ld not g|
|00005410| 6f 20 69 6e 74 6f 20 6c | 6f 6f 70 73 20 61 6e 64 |o into l|oops and|
|00005420| 20 75 73 65 20 53 79 73 | 74 65 6d 54 61 73 6b 20 | use Sys|temTask |
|00005430| 63 61 6c 6c 73 20 61 73 | 20 61 20 77 61 79 20 6f |calls as| a way o|
|00005440| 66 20 72 65 74 75 72 6e | 69 6e 67 20 63 6f 6e 74 |f return|ing cont|
|00005450| 72 6f 6c 20 62 61 63 6b | 20 74 6f 20 41 52 41 2e |rol back| to ARA.|
|00005460| 0d 6b 53 65 63 75 72 69 | 74 79 53 74 61 72 74 75 |.kSecuri|tyStartu|
|00005470| 70 0d 6b 53 65 63 75 72 | 69 74 79 53 74 61 72 74 |p.kSecur|ityStart|
|00005480| 75 70 20 69 73 20 73 65 | 6e 74 20 69 6d 6d 65 64 |up is se|nt immed|
|00005490| 69 61 74 65 6c 79 20 61 | 66 74 65 72 20 79 6f 75 |iately a|fter you|
|000054a0| 72 20 63 6f 64 65 20 72 | 65 73 6f 75 72 63 65 20 |r code r|esource |
|000054b0| 69 73 20 6c 6f 61 64 65 | 64 2e 20 20 59 6f 75 20 |is loade|d. You |
|000054c0| 63 61 6e 20 61 6c 6c 6f | 63 61 74 65 20 61 6e 79 |can allo|cate any|
|000054d0| 20 6e 65 65 64 65 64 20 | 6d 65 6d 6f 72 79 20 64 | needed |memory d|
|000054e0| 75 72 69 6e 67 20 74 68 | 65 20 70 72 6f 63 65 73 |uring th|e proces|
|000054f0| 73 69 6e 67 20 6f 66 20 | 74 68 69 73 20 61 63 74 |sing of |this act|
|00005500| 69 6f 6e 2c 20 62 75 74 | 20 79 6f 75 20 73 68 6f |ion, but| you sho|
|00005510| 75 6c 64 20 6e 6f 74 20 | 6d 61 6b 65 20 61 6e 79 |uld not |make any|
|00005520| 20 63 61 6c 6c 73 20 74 | 6f 20 61 6e 79 20 6f 66 | calls t|o any of|
|00005530| 20 74 68 65 20 41 52 41 | 20 53 65 72 76 69 63 65 | the ARA| Service|
|00005540| 20 52 6f 75 74 69 6e 65 | 73 2e 20 20 4f 6e 63 65 | Routine|s. Once|
|00005550| 20 70 72 6f 63 65 73 73 | 65 64 2c 20 79 6f 75 20 | process|ed, you |
|00005560| 73 68 6f 75 6c 64 20 72 | 65 74 75 72 6e 20 6b 53 |should r|eturn kS|
|00005570| 65 63 75 72 69 74 79 4e | 6f 45 72 72 2e 20 20 47 |ecurityN|oErr. G|
|00005580| 65 6e 65 72 61 6c 6c 79 | 20 79 6f 75 20 73 68 6f |enerally| you sho|
|00005590| 75 6c 64 20 75 73 65 20 | 6b 53 65 63 75 72 69 74 |uld use |kSecurit|
|000055a0| 79 42 65 67 69 6e 20 74 | 6f 20 73 74 61 72 74 20 |yBegin t|o start |
|000055b0| 61 6e 79 20 70 72 6f 63 | 65 73 73 69 6e 67 2e 0d |any proc|essing..|
|000055c0| 6b 53 65 63 75 72 69 74 | 79 53 68 75 74 64 6f 77 |kSecurit|yShutdow|
|000055d0| 6e 0d 6b 53 65 63 75 72 | 69 74 79 53 68 75 74 64 |n.kSecur|ityShutd|
|000055e0| 6f 77 6e 20 69 73 20 74 | 68 65 20 6c 61 73 74 20 |own is t|he last |
|000055f0| 61 63 74 69 6f 6e 20 73 | 65 6e 74 20 70 72 69 6f |action s|ent prio|
|00005600| 72 20 74 6f 20 75 6e 6c | 6f 61 64 69 6e 67 20 79 |r to unl|oading y|
|00005610| 6f 75 72 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |our code| resourc|
|00005620| 65 2e 20 20 54 68 65 20 | 63 6f 64 65 20 72 65 73 |e. The |code res|
|00005630| 6f 75 72 63 65 20 77 69 | 6c 6c 20 6e 6f 74 20 62 |ource wi|ll not b|
|00005640| 65 20 63 61 6c 6c 65 64 | 20 61 6e 79 20 6d 6f 72 |e called| any mor|
|00005650| 65 20 61 66 74 65 72 20 | 74 68 69 73 20 61 63 74 |e after |this act|
|00005660| 69 6f 6e 2e 20 20 59 6f | 75 20 63 61 6e 20 72 65 |ion. Yo|u can re|
|00005670| 6c 65 61 73 65 20 61 6e | 79 20 61 6c 6c 6f 63 61 |lease an|y alloca|
|00005680| 74 65 64 20 6d 65 6d 6f | 72 79 2e 20 20 4d 61 6b |ted memo|ry. Mak|
|00005690| 65 20 73 75 72 65 20 79 | 6f 75 20 68 61 76 65 20 |e sure y|ou have |
|000056a0| 63 6c 65 61 6e 65 64 20 | 65 76 65 72 79 74 68 69 |cleaned |everythi|
|000056b0| 6e 67 20 75 70 20 62 65 | 66 6f 72 65 20 72 65 74 |ng up be|fore ret|
|000056c0| 75 72 6e 69 6e 67 2e 20 | 20 59 6f 75 20 63 61 6e |urning. | You can|
|000056d0| 20 6e 6f 74 20 75 73 65 | 20 61 6e 79 20 6f 66 20 | not use| any of |
|000056e0| 74 68 65 20 41 52 41 20 | 53 65 72 76 69 63 65 20 |the ARA |Service |
|000056f0| 52 6f 75 74 69 6e 65 73 | 20 64 75 72 69 6e 67 20 |Routines| during |
|00005700| 6b 53 65 63 75 72 69 74 | 79 53 68 75 74 64 6f 77 |kSecurit|yShutdow|
|00005710| 6e 2e 0d 6b 53 65 63 75 | 72 69 74 79 42 65 67 69 |n..kSecu|rityBegi|
|00005720| 6e 0d 6b 53 65 63 75 72 | 69 74 79 42 65 67 69 6e |n.kSecur|ityBegin|
|00005730| 20 69 73 20 73 65 6e 74 | 20 74 6f 20 72 65 71 75 | is sent| to requ|
|00005740| 65 73 74 20 79 6f 75 72 | 20 63 6f 64 65 20 72 65 |est your| code re|
|00005750| 73 6f 75 72 63 65 20 74 | 6f 20 70 65 72 66 6f 72 |source t|o perfor|
|00005760| 6d 20 69 74 73 20 6f 70 | 65 72 61 74 69 6f 6e 2e |m its op|eration.|
|00005770| 20 20 45 2e 67 2e 20 72 | 65 71 75 65 73 74 69 6e | E.g. r|equestin|
|00005780| 67 20 61 20 70 72 6f 74 | 6f 63 6f 6c 2d 6c 65 76 |g a prot|ocol-lev|
|00005790| 65 6c 20 6d 6f 64 75 6c | 65 20 74 6f 20 61 75 74 |el modul|e to aut|
|000057a0| 68 65 6e 74 69 63 61 74 | 65 20 61 20 75 73 65 72 |henticat|e a user|
|000057b0| 2e 20 20 54 68 65 20 63 | 6f 64 65 20 72 65 73 6f |. The c|ode reso|
|000057c0| 75 72 63 65 20 73 68 6f | 75 6c 64 20 73 74 61 72 |urce sho|uld star|
|000057d0| 74 20 74 68 65 20 6f 70 | 65 72 61 74 69 6f 6e 20 |t the op|eration |
|000057e0| 74 68 61 74 20 69 74 20 | 69 73 20 72 65 73 70 6f |that it |is respo|
|000057f0| 6e 73 69 62 6c 65 20 66 | 6f 72 2e 20 20 59 6f 75 |nsible f|or. You|
|00005800| 20 63 61 6e 20 61 6c 6c | 6f 63 61 74 65 20 6d 65 | can all|ocate me|
|00005810| 6d 6f 72 79 20 61 6e 64 | 20 6f 74 68 65 72 20 6e |mory and| other n|
|00005820| 65 65 64 65 64 20 72 65 | 73 6f 75 72 63 65 73 2e |eeded re|sources.|
|00005830| 20 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 63 | You ca|n also c|
|00005840| 61 6c 6c 20 41 52 41 20 | 53 65 72 76 69 63 65 20 |all ARA |Service |
|00005850| 52 6f 75 74 69 6e 65 73 | 20 61 73 79 6e 63 68 72 |Routines| asynchr|
|00005860| 6f 6e 6f 75 73 6c 79 2e | 0d 6b 53 65 63 75 72 69 |onously.|.kSecuri|
|00005870| 74 79 45 6e 64 0d 6b 53 | 65 63 75 72 69 74 79 45 |tyEnd.kS|ecurityE|
|00005880| 6e 64 20 69 73 20 73 65 | 6e 74 20 77 68 65 6e 20 |nd is se|nt when |
|00005890| 74 68 65 20 6f 70 65 72 | 61 74 69 6f 6e 73 20 74 |the oper|ations t|
|000058a0| 68 61 74 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 |hat the |resource|
|000058b0| 20 70 65 72 66 6f 72 6d | 73 20 61 72 65 20 62 65 | perform|s are be|
|000058c0| 69 6e 67 20 66 69 6e 69 | 73 68 65 64 2e 20 20 59 |ing fini|shed. Y|
|000058d0| 6f 75 20 73 68 6f 75 6c | 64 20 64 6f 20 79 6f 75 |ou shoul|d do you|
|000058e0| 72 20 63 6c 65 61 6e 75 | 70 20 61 74 20 74 68 69 |r cleanu|p at thi|
|000058f0| 73 20 74 69 6d 65 2e 20 | 20 59 6f 75 20 63 61 6e |s time. | You can|
|00005900| 20 6e 6f 74 20 6d 61 6b | 65 20 61 6e 79 20 63 61 | not mak|e any ca|
|00005910| 6c 6c 73 20 74 6f 20 41 | 52 41 20 53 65 72 76 69 |lls to A|RA Servi|
|00005920| 63 65 20 52 6f 75 74 69 | 6e 65 73 20 61 66 74 65 |ce Routi|nes afte|
|00005930| 72 20 6f 72 20 64 75 72 | 69 6e 67 20 74 68 69 73 |r or dur|ing this|
|00005940| 20 61 63 74 69 6f 6e 2e | 0d 6b 53 65 63 75 72 69 | action.|.kSecuri|
|00005950| 74 79 44 61 74 61 41 76 | 61 69 6c 61 62 6c 65 0d |tyDataAv|ailable.|
|00005960| 6b 53 65 63 75 72 69 74 | 79 44 61 74 61 41 76 61 |kSecurit|yDataAva|
|00005970| 69 6c 61 62 6c 65 20 69 | 73 20 6e 6f 74 20 62 65 |ilable i|s not be|
|00005980| 69 6e 67 20 75 73 65 64 | 20 69 6e 20 74 68 69 73 |ing used| in this|
|00005990| 20 72 65 6c 65 61 73 65 | 2e 0d 6b 53 65 63 75 72 | release|..kSecur|
|000059a0| 69 74 79 41 62 6f 72 74 | 0d 6b 53 65 63 75 72 69 |ityAbort|.kSecuri|
|000059b0| 74 79 41 62 6f 72 74 20 | 69 73 20 73 65 6e 74 20 |tyAbort |is sent |
|000059c0| 77 68 65 6e 20 74 68 65 | 20 6f 70 65 72 61 74 69 |when the| operati|
|000059d0| 6f 6e 20 6f 66 20 79 6f | 75 72 20 63 6f 64 65 20 |on of yo|ur code |
|000059e0| 72 65 73 6f 75 72 63 65 | 20 69 73 20 62 65 69 6e |resource| is bein|
|000059f0| 67 20 61 62 6f 72 74 65 | 64 2e 20 20 59 6f 75 20 |g aborte|d. You |
|00005a00| 73 68 6f 75 6c 64 20 73 | 74 6f 70 20 61 6e 79 20 |should s|top any |
|00005a10| 66 75 72 74 68 65 72 20 | 70 72 6f 63 65 73 73 69 |further |processi|
|00005a20| 6e 67 20 62 79 20 79 6f | 75 72 20 63 6f 64 65 20 |ng by yo|ur code |
|00005a30| 72 65 73 6f 75 72 63 65 | 20 28 69 6e 63 6c 75 64 |resource| (includ|
|00005a40| 69 6e 67 20 69 6e 20 79 | 6f 75 72 20 63 6f 6d 70 |ing in y|our comp|
|00005a50| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 2e 20 |letion r|outine. |
|00005a60| 20 45 2e 67 2e 20 74 68 | 72 6f 75 67 68 20 74 68 | E.g. th|rough th|
|00005a70| 65 20 75 73 65 20 6f 66 | 20 61 20 66 6c 61 67 29 |e use of| a flag)|
|00005a80| 2e 20 20 59 6f 75 72 20 | 63 6f 64 65 20 72 65 73 |. Your |code res|
|00005a90| 6f 75 72 63 65 20 73 68 | 6f 75 6c 64 20 74 65 72 |ource sh|ould ter|
|00005aa0| 6d 69 6e 61 74 65 20 61 | 6e 79 20 6f 75 74 73 74 |minate a|ny outst|
|00005ab0| 61 6e 64 69 6e 67 20 61 | 73 79 6e 63 68 20 63 61 |anding a|synch ca|
|00005ac0| 6c 6c 73 20 74 6f 20 72 | 6f 75 74 69 6e 65 73 20 |lls to r|outines |
|00005ad0| 6f 74 68 65 72 20 74 68 | 61 6e 20 41 52 41 20 53 |other th|an ARA S|
|00005ae0| 65 72 76 69 63 65 20 52 | 6f 75 74 69 6e 65 73 2e |ervice R|outines.|
|00005af0| 20 20 4f 75 74 73 74 61 | 6e 64 69 6e 67 20 41 52 | Outsta|nding AR|
|00005b00| 41 20 53 65 72 76 69 63 | 65 20 52 6f 75 74 69 6e |A Servic|e Routin|
|00005b10| 65 73 20 77 69 6c 6c 20 | 62 65 20 61 62 6f 72 74 |es will |be abort|
|00005b20| 65 64 20 62 79 20 41 52 | 41 2e 0d 6b 53 65 63 75 |ed by AR|A..kSecu|
|00005b30| 72 69 74 79 54 69 63 6b | 6c 65 41 63 74 69 6f 6e |rityTick|leAction|
|00005b40| 0d 6b 53 65 63 75 72 69 | 74 79 54 69 63 6b 6c 65 |.kSecuri|tyTickle|
|00005b50| 41 63 74 69 6f 6e 20 69 | 73 20 73 65 6e 74 20 74 |Action i|s sent t|
|00005b60| 6f 20 79 6f 75 72 20 63 | 6f 64 65 20 72 65 73 6f |o your c|ode reso|
|00005b70| 75 72 63 65 20 70 65 72 | 69 6f 64 69 63 61 6c 6c |urce per|iodicall|
|00005b80| 79 2e 20 20 59 6f 75 20 | 63 61 6e 20 61 6c 73 6f |y. You |can also|
|00005b90| 20 72 65 71 75 65 73 74 | 20 61 20 6b 53 65 63 75 | request| a kSecu|
|00005ba0| 72 69 74 79 54 69 63 6b | 6c 65 41 63 74 69 6f 6e |rityTick|leAction|
|00005bb0| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 62 79 20 63 | explici|tly by c|
|00005bc0| 61 6c 6c 69 6e 67 20 74 | 68 65 20 41 52 41 54 69 |alling t|he ARATi|
|00005bd0| 63 6c 65 4d 65 20 72 6f | 75 74 69 6e 65 2e 20 20 |cleMe ro|utine. |
|00005be0| 57 68 65 6e 20 79 6f 75 | 20 63 61 6c 6c 20 41 52 |When you| call AR|
|00005bf0| 41 54 69 63 6b 6c 65 4d | 65 20 79 6f 75 20 70 61 |ATickleM|e you pa|
|00005c00| 73 73 20 61 6e 20 61 64 | 64 69 74 69 6f 6e 61 6c |ss an ad|ditional|
|00005c10| 20 70 61 72 61 6d 65 74 | 65 72 20 77 68 69 63 68 | paramet|er which|
|00005c20| 20 69 73 20 73 65 6e 74 | 20 74 6f 20 79 6f 75 72 | is sent| to your|
|00005c30| 20 22 4d 79 53 65 63 75 | 72 69 74 79 50 72 6f 63 | "MySecu|rityProc|
|00005c40| 45 6e 74 72 79 22 20 61 | 73 20 74 68 65 20 4c 6f |Entry" a|s the Lo|
|00005c50| 6e 67 50 61 72 61 6d 2e | 20 20 54 68 69 73 20 61 |ngParam.| This a|
|00005c60| 64 64 69 74 69 6f 6e 61 | 6c 20 70 61 72 61 6d 65 |dditiona|l parame|
|00005c70| 74 65 72 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |ter can |be used |
|00005c80| 61 73 20 61 20 73 74 61 | 74 65 20 69 6e 64 69 63 |as a sta|te indic|
|00005c90| 61 74 6f 72 2e 20 20 45 | 2e 67 2e 20 61 6e 20 61 |ator. E|.g. an a|
|00005ca0| 73 79 6e 63 68 72 6f 6e | 6f 75 73 20 63 61 6c 6c |synchron|ous call|
|00005cb0| 20 68 61 73 20 66 69 6e | 69 73 68 65 64 2c 20 73 | has fin|ished, s|
|00005cc0| 6f 20 66 72 6f 6d 20 79 | 6f 75 72 20 63 6f 6d 70 |o from y|our comp|
|00005cd0| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 20 79 |letion r|outine y|
|00005ce0| 6f 75 20 63 61 6c 6c 20 | 41 52 41 54 69 63 6b 6c |ou call |ARATickl|
|00005cf0| 65 4d 65 20 77 69 74 68 | 20 74 68 65 20 73 74 61 |eMe with| the sta|
|00005d00| 74 65 20 69 6e 64 69 63 | 61 74 6f 72 20 22 44 69 |te indic|ator "Di|
|00005d10| 64 4d 79 41 73 79 6e 63 | 68 43 61 6c 6c 22 20 28 |dMyAsync|hCall" (|
|00005d20| 74 68 69 73 20 63 61 6e | 20 62 65 20 61 20 76 61 |this can| be a va|
|00005d30| 6c 75 65 20 69 6e 20 61 | 6e 20 65 6e 75 6d 29 2e |lue in a|n enum).|
|00005d40| 20 20 49 6e 20 70 72 6f | 63 65 73 73 69 6e 67 20 | In pro|cessing |
|00005d50| 6f 66 20 6b 53 65 63 75 | 72 69 74 79 54 69 63 6b |of kSecu|rityTick|
|00005d60| 6c 65 41 63 74 69 6f 6e | 20 79 6f 75 20 63 68 65 |leAction| you che|
|00005d70| 63 6b 20 74 68 65 20 4c | 6f 6e 67 50 61 72 61 6d |ck the L|ongParam|
|00005d80| 20 74 6f 20 73 65 65 20 | 69 66 20 69 74 20 6d 61 | to see |if it ma|
|00005d90| 74 63 68 65 73 20 22 44 | 69 64 4d 79 41 73 79 6e |tches "D|idMyAsyn|
|00005da0| 63 68 43 61 6c 6c 22 2e | 20 20 49 66 20 69 74 20 |chCall".| If it |
|00005db0| 6d 61 74 63 68 65 73 20 | 79 6f 75 20 6b 6e 6f 77 |matches |you know|
|00005dc0| 20 79 6f 75 20 68 61 76 | 65 20 66 69 6e 69 73 68 | you hav|e finish|
|00005dd0| 65 64 20 79 6f 75 72 20 | 61 73 79 6e 63 68 72 6f |ed your |asynchro|
|00005de0| 6e 6f 75 73 20 6f 70 65 | 72 61 74 69 6f 6e 20 61 |nous ope|ration a|
|00005df0| 6e 64 20 61 72 65 20 72 | 65 61 64 79 20 74 6f 20 |nd are r|eady to |
|00005e00| 74 72 61 6e 73 69 74 69 | 6f 6e 20 74 6f 20 74 68 |transiti|on to th|
|00005e10| 65 20 6e 65 78 74 20 73 | 74 61 74 65 2e 20 20 59 |e next s|tate. Y|
|00005e20| 6f 75 20 73 68 6f 75 6c | 64 20 61 6c 73 6f 20 64 |ou shoul|d also d|
|00005e30| 6f 20 61 6e 20 41 52 41 | 54 69 63 6b 6c 65 4d 65 |o an ARA|TickleMe|
|00005e40| 20 77 68 65 6e 20 79 6f | 75 20 6e 65 65 64 20 74 | when yo|u need t|
|00005e50| 6f 20 70 65 72 66 6f 72 | 6d 20 6d 61 69 6e 20 74 |o perfor|m main t|
|00005e60| 68 72 65 61 64 20 74 69 | 6d 65 20 6f 70 65 72 61 |hread ti|me opera|
|00005e70| 74 69 6f 6e 73 20 28 65 | 2e 67 2e 20 61 6c 6c 6f |tions (e|.g. allo|
|00005e80| 63 61 74 65 20 6d 65 6d | 6f 72 79 29 20 2e 20 20 |cate mem|ory) . |
|00005e90| 57 68 65 6e 20 6b 53 65 | 63 75 72 69 74 79 54 69 |When kSe|curityTi|
|00005ea0| 63 6b 6c 65 41 63 74 69 | 6f 6e 20 69 73 20 62 65 |ckleActi|on is be|
|00005eb0| 69 6e 67 20 73 65 6e 74 | 20 70 65 72 69 6f 64 69 |ing sent| periodi|
|00005ec0| 63 61 6c 6c 79 20 62 79 | 20 41 52 41 20 4c 6f 6e |cally by| ARA Lon|
|00005ed0| 67 50 61 72 61 6d 20 77 | 69 6c 6c 20 62 65 20 30 |gParam w|ill be 0|
|00005ee0| 2e 20 20 46 6f 72 20 61 | 6e 20 65 78 61 6d 70 6c |. For a|n exampl|
|00005ef0| 65 20 6f 6e 20 74 68 65 | 20 75 73 65 20 6f 66 20 |e on the| use of |
|00005f00| 6b 53 65 63 75 72 69 74 | 79 54 69 63 6b 6c 65 41 |kSecurit|yTickleA|
|00005f10| 63 74 69 6f 6e 20 61 6e | 64 20 41 52 41 54 69 63 |ction an|d ARATic|
|00005f20| 6b 6c 65 4d 65 20 72 65 | 66 65 72 20 74 6f 20 74 |kleMe re|fer to t|
|00005f30| 68 65 20 53 61 6d 70 6c | 65 20 6d 6f 64 75 6c 65 |he Sampl|e module|
|00005f40| 2e 0d 41 52 41 20 53 65 | 72 76 69 63 65 20 52 6f |..ARA Se|rvice Ro|
|00005f50| 75 74 69 6e 65 73 0d 41 | 52 41 20 53 65 72 76 69 |utines.A|RA Servi|
|00005f60| 63 65 20 52 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |ce Routi|nes are |
|00005f70| 61 20 73 65 74 20 6f 66 | 20 66 75 6e 63 74 69 6f |a set of| functio|
|00005f80| 6e 73 20 74 68 61 74 20 | 63 6f 64 65 20 72 65 73 |ns that |code res|
|00005f90| 6f 75 72 63 65 73 20 68 | 61 76 65 20 61 63 63 65 |ources h|ave acce|
|00005fa0| 73 73 20 74 6f 2e 20 20 | 55 73 69 6e 67 20 74 68 |ss to. |Using th|
|00005fb0| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 2c 20 63 6f |ese rout|ines, co|
|00005fc0| 64 65 20 72 65 73 6f 75 | 72 63 65 73 20 63 61 6e |de resou|rces can|
|00005fd0| 20 72 65 71 75 65 73 74 | 20 41 52 41 20 73 65 72 | request| ARA ser|
|00005fe0| 76 69 63 65 73 2e 20 20 | 54 68 65 20 66 6f 6c 6c |vices. |The foll|
|00005ff0| 6f 77 69 6e 67 20 69 73 | 20 61 20 6c 69 73 74 20 |owing is| a list |
|00006000| 6f 66 20 41 52 41 20 53 | 65 72 76 69 63 65 20 52 |of ARA S|ervice R|
|00006010| 6f 75 74 69 6e 65 73 3a | 0d 41 52 41 52 65 61 64 |outines:|.ARARead|
|00006020| 0d 41 52 41 57 72 69 74 | 65 0d 41 52 41 4c 6f 67 |.ARAWrit|e.ARALog|
|00006030| 4d 65 73 73 61 67 65 0d | 41 52 41 43 61 6c 6c 42 |Message.|ARACallB|
|00006040| 61 63 6b 41 74 0d 41 52 | 41 41 6c 6c 6f 77 55 73 |ackAt.AR|AAllowUs|
|00006050| 65 72 0d 41 52 41 44 6f | 6e 74 41 6c 6c 6f 77 55 |er.ARADo|ntAllowU|
|00006060| 73 65 72 0d 41 52 41 52 | 65 61 64 53 65 63 75 72 |ser.ARAR|eadSecur|
|00006070| 69 74 79 44 61 74 61 0d | 41 52 41 52 65 61 64 4c |ityData.|ARAReadL|
|00006080| 6f 63 6b 53 65 63 75 72 | 69 74 79 44 61 74 61 0d |ockSecur|ityData.|
|00006090| 41 52 41 57 72 69 74 65 | 53 65 63 75 72 69 74 79 |ARAWrite|Security|
|000060a0| 44 61 74 61 0d 41 52 41 | 55 6e 6c 6f 63 6b 53 65 |Data.ARA|UnlockSe|
|000060b0| 63 75 72 69 74 79 44 61 | 74 61 0d 41 52 41 47 65 |curityDa|ta.ARAGe|
|000060c0| 74 55 73 65 72 49 6e 66 | 6f 0d 41 52 41 54 69 63 |tUserInf|o.ARATic|
|000060d0| 6b 6c 65 4d 65 0d 41 52 | 41 43 6f 6d 70 6c 65 74 |kleMe.AR|AComplet|
|000060e0| 65 4f 70 65 72 61 74 69 | 6f 6e 0d 54 68 65 20 66 |eOperati|on.The f|
|000060f0| 6f 6c 6c 6f 77 69 6e 67 | 20 73 75 62 2d 73 65 63 |ollowing| sub-sec|
|00006100| 74 69 6f 6e 73 20 64 65 | 73 63 72 69 62 65 20 65 |tions de|scribe e|
|00006110| 61 63 68 20 6f 66 20 74 | 68 65 20 72 6f 75 74 69 |ach of t|he routi|
|00006120| 6e 65 73 2e 20 20 0d 4e | 6f 74 65 0d 41 6c 6c 20 |nes. .N|ote.All |
|00006130| 6f 66 20 74 68 65 20 72 | 6f 75 74 69 6e 65 73 20 |of the r|outines |
|00006140| 65 78 70 65 63 74 20 61 | 20 4d 79 52 65 66 65 72 |expect a| MyRefer|
|00006150| 65 6e 63 65 20 70 61 72 | 61 6d 65 74 65 72 2e 20 |ence par|ameter. |
|00006160| 20 54 68 69 73 20 76 61 | 6c 75 65 20 69 73 20 70 | This va|lue is p|
|00006170| 61 73 73 65 64 20 74 6f | 20 22 4d 79 53 65 63 75 |assed to| "MySecu|
|00006180| 72 69 74 79 50 72 6f 63 | 45 6e 74 72 79 22 2c 20 |rityProc|Entry", |
|00006190| 61 6e 64 20 69 73 20 61 | 20 75 6e 69 71 75 65 20 |and is a| unique |
|000061a0| 76 61 6c 75 65 20 72 65 | 70 72 65 73 65 6e 74 69 |value re|presenti|
|000061b0| 6e 67 20 74 68 65 20 69 | 6e 73 74 61 6e 63 65 20 |ng the i|nstance |
|000061c0| 6f 66 20 74 68 65 20 73 | 65 63 75 72 69 74 79 20 |of the s|ecurity |
|000061d0| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 2e 0d 41 |code res|ource..A|
|000061e0| 52 41 52 65 61 64 0d 53 | 79 6e 74 61 78 0d 70 61 |RARead.S|yntax.pa|
|000061f0| 73 63 61 6c 20 41 52 41 | 45 72 72 09 41 52 41 52 |scal ARA|Err.ARAR|
|00006200| 65 61 64 28 20 53 65 63 | 75 72 69 74 79 52 65 66 |ead( Sec|urityRef|
|00006210| 65 72 65 6e 63 65 09 09 | 4d 79 52 65 66 65 72 65 |erence..|MyRefere|
|00006220| 6e 63 65 2c 0d 09 09 09 | 09 09 09 20 76 6f 69 64 |nce,....|... void|
|00006230| 09 09 09 09 09 2a 20 44 | 61 74 61 50 74 72 2c 0d |.....* D|ataPtr,.|
|00006240| 09 09 09 09 09 09 20 69 | 6e 74 09 09 09 09 09 44 |...... i|nt.....D|
|00006250| 61 74 61 53 69 7a 65 2c | 0d 09 09 09 09 09 09 20 |ataSize,|....... |
|00006260| 53 65 63 75 72 69 74 79 | 43 6f 6d 70 6c 65 74 69 |Security|Completi|
|00006270| 6f 6e 50 72 6f 63 09 43 | 6f 6d 70 6c 65 74 69 6f |onProc.C|ompletio|
|00006280| 6e 50 72 6f 63 2c 0d 09 | 09 09 09 09 09 20 6c 6f |nProc,..|..... lo|
|00006290| 6e 67 09 09 09 09 09 43 | 6f 6d 70 6c 65 74 69 6f |ng.....C|ompletio|
|000062a0| 6e 50 61 72 61 6d 20 29 | 3b 0d 44 65 73 63 72 69 |nParam )|;.Descri|
|000062b0| 70 74 69 6f 6e 0d 54 68 | 69 73 20 72 6f 75 74 69 |ption.Th|is routi|
|000062c0| 6e 65 20 69 73 20 75 73 | 65 64 20 74 6f 20 69 73 |ne is us|ed to is|
|000062d0| 73 75 65 20 61 6e 20 61 | 73 79 6e 63 68 72 6f 6e |sue an a|synchron|
|000062e0| 6f 75 73 20 72 65 61 64 | 20 63 61 6c 6c 20 74 6f |ous read| call to|
|000062f0| 20 41 52 41 2e 20 20 54 | 68 65 20 72 65 61 64 20 | ARA. T|he read |
|00006300| 77 69 6c 6c 20 63 6f 6d | 70 6c 65 74 65 20 65 69 |will com|plete ei|
|00006310| 74 68 65 72 20 77 68 65 | 6e 20 41 52 41 20 74 69 |ther whe|n ARA ti|
|00006320| 6d 65 73 20 6f 75 74 2c | 20 6f 72 20 74 68 65 20 |mes out,| or the |
|00006330| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|00006340| 72 65 71 75 65 73 74 65 | 64 20 69 73 20 72 65 61 |requeste|d is rea|
|00006350| 64 2e 20 20 54 68 69 73 | 20 72 65 61 64 20 69 73 |d. This| read is|
|00006360| 20 75 73 65 64 20 74 6f | 20 72 65 61 64 20 64 61 | used to| read da|
|00006370| 74 61 20 63 6f 6d 69 6e | 67 20 66 72 6f 6d 20 74 |ta comin|g from t|
|00006380| 68 65 20 72 65 6d 6f 74 | 65 20 6d 61 63 68 69 6e |he remot|e machin|
|00006390| 65 2e 20 20 54 68 65 20 | 70 72 6f 74 6f 63 6f 6c |e. The |protocol|
|000063a0| 2d 6c 65 76 65 6c 20 6d | 6f 64 75 6c 65 73 20 72 |-level m|odules r|
|000063b0| 65 61 64 20 66 72 6f 6d | 20 65 61 63 68 20 6f 74 |ead from| each ot|
|000063c0| 68 65 72 2e 20 20 54 68 | 65 20 6c 69 6e 65 2d 6c |her. Th|e line-l|
|000063d0| 65 76 65 6c 20 6d 6f 64 | 75 6c 65 20 72 65 61 64 |evel mod|ule read|
|000063e0| 73 20 66 72 6f 6d 20 61 | 20 64 65 76 69 63 65 20 |s from a| device |
|000063f0| 6f 6e 20 74 68 65 20 73 | 65 72 76 65 72 20 73 69 |on the s|erver si|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.