home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / w3 / ssl.elc.z / ssl.elc
Emacs Compiled Lisp  |  1998-05-21  |  5.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 33 |on Mon M|ar 9 13|
|00000040| 3a 30 35 3a 30 37 20 31 | 39 39 38 0a 3b 3b 3b 20 |:05:07 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 77 33 2f 73 |s-20.3/l|isp/w3/s|
|000000a0| 73 6c 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |sl.el.;;|; emacs |
|000000b0| 76 65 72 73 69 6f 6e 20 | 32 30 2e 34 20 22 45 6d |version |20.4 "Em|
|000000c0| 65 72 61 6c 64 22 20 58 | 45 6d 61 63 73 20 20 4c |erald" X|Emacs L|
|000000d0| 75 63 69 64 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |ucid..;;|; byteco|
|000000e0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 32 2e 32 35 20 |mp versi|on 2.25 |
|000000f0| 58 45 6d 61 63 73 3b 20 | 32 32 2d 4d 61 72 2d 39 |XEmacs; |22-Mar-9|
|00000100| 36 2e 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |6..;;; o|ptimizat|
|00000110| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|00000120| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|00000130| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|00000140| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000150| 73 20 31 39 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 19...(|if (and |
|00000160| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000170| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000180| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000190| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|000001a0| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|000001b0| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|000001c0| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 32 |emacs-ve|rsion "2|
|000001d0| 30 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |0"))). | (error|
|000001e0| 20 22 60 73 73 6c 2e 65 | 6c 27 20 77 61 73 20 63 | "`ssl.e|l' was c|
|000001f0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|00000200| 73 20 32 30 22 29 29 0a | 0a 28 6f 72 20 28 62 6f |s 20")).|.(or (bo|
|00000210| 75 6e 64 70 20 27 63 75 | 72 72 65 6e 74 2d 6c 6f |undp 'cu|rrent-lo|
|00000220| 61 64 2d 6c 69 73 74 29 | 20 28 73 65 74 71 20 63 |ad-list)| (setq c|
|00000230| 75 72 72 65 6e 74 2d 6c | 6f 61 64 2d 6c 69 73 74 |urrent-l|oad-list|
|00000240| 20 6e 69 6c 29 29 0a 0a | 0a 28 62 79 74 65 2d 63 | nil))..|.(byte-c|
|00000250| 6f 64 65 20 22 c0 c1 21 | 88 c0 c2 21 88 c3 c4 c5 |ode "..!|...!....|
|00000260| 8f 88 c6 c7 21 ab 85 c8 | c9 21 ac 88 ca cb 4d 88 |....!...|.!....M.|
|00000270| cc cd 4d 88 ce cf c3 d0 | d1 d2 25 87 22 20 5b 72 |..M.....|..%." [r|
|00000280| 65 71 75 69 72 65 20 63 | 6c 20 62 61 73 65 36 34 |equire c|l base64|
|00000290| 20 6e 69 6c 20 28 62 79 | 74 65 2d 63 6f 64 65 20 | nil (by|te-code |
|000002a0| 22 c0 c1 21 87 22 20 5b | 72 65 71 75 69 72 65 20 |"..!." [|require |
|000002b0| 63 75 73 74 6f 6d 5d 20 | 32 29 20 28 28 65 72 72 |custom] |2) ((err|
|000002c0| 6f 72 29 29 20 66 65 61 | 74 75 72 65 70 20 63 75 |or)) fea|turep cu|
|000002d0| 73 74 6f 6d 20 66 62 6f | 75 6e 64 70 20 63 75 73 |stom fbo|undp cus|
|000002e0| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|000002f0| 61 62 6c 65 20 64 65 66 | 67 72 6f 75 70 20 28 6d |able def|group (m|
|00000300| 61 63 72 6f 20 2e 20 23 | 5b 28 26 72 65 73 74 20 |acro . #|[(&rest |
|00000310| 61 72 67 73 29 20 22 c0 | 87 22 20 5b 6e 69 6c 5d |args) ".|." [nil]|
|00000320| 20 31 5d 29 20 64 65 66 | 63 75 73 74 6f 6d 20 28 | 1]) def|custom (|
|00000330| 6d 61 63 72 6f 20 2e 20 | 23 5b 28 76 61 72 20 76 |macro . |#[(var v|
|00000340| 61 6c 75 65 20 64 6f 63 | 20 26 72 65 73 74 20 61 |alue doc| &rest a|
|00000350| 72 67 73 29 20 22 c0 09 | 5c 6e 0b 46 87 22 20 5b |rgs) "..|\n.F." [|
|00000360| 64 65 66 76 61 72 20 76 | 61 72 20 76 61 6c 75 65 |defvar v|ar value|
|00000370| 20 64 6f 63 5d 20 34 5d | 29 20 63 75 73 74 6f 6d | doc] 4]|) custom|
|00000380| 2d 64 65 63 6c 61 72 65 | 2d 67 72 6f 75 70 20 73 |-declare|-group s|
|00000390| 73 6c 20 22 53 75 70 70 | 6f 72 74 20 66 6f 72 20 |sl "Supp|ort for |
|000003a0| 60 53 65 63 75 72 65 20 | 53 6f 63 6b 65 74 73 20 |`Secure |Sockets |
|000003b0| 4c 61 79 65 72 27 20 65 | 6e 63 72 79 70 74 69 6f |Layer' e|ncryptio|
|000003c0| 6e 2e 22 20 3a 67 72 6f | 75 70 20 63 6f 6d 6d 5d |n." :gro|up comm]|
|000003d0| 20 36 29 0a 28 63 75 73 | 74 6f 6d 2d 64 65 63 6c | 6).(cus|tom-decl|
|000003e0| 61 72 65 2d 76 61 72 69 | 61 62 6c 65 20 27 73 73 |are-vari|able 'ss|
|000003f0| 6c 2d 63 65 72 74 69 66 | 69 63 61 74 65 2d 64 69 |l-certif|icate-di|
|00000400| 72 65 63 74 6f 72 79 20 | 27 22 7e 2f 2e 77 33 2f |rectory |'"~/.w3/|
|00000410| 63 65 72 74 73 2f 22 20 | 22 2a 44 69 72 65 63 74 |certs/" |"*Direct|
|00000420| 6f 72 79 20 74 6f 20 73 | 74 6f 72 65 20 43 41 20 |ory to s|tore CA |
|00000430| 63 65 72 74 69 66 69 63 | 61 74 65 73 20 69 6e 22 |certific|ates in"|
|00000440| 20 3a 67 72 6f 75 70 20 | 27 73 73 6c 20 3a 74 79 | :group |'ssl :ty|
|00000450| 70 65 20 27 64 69 72 65 | 63 74 6f 72 79 29 0a 28 |pe 'dire|ctory).(|
|00000460| 63 75 73 74 6f 6d 2d 64 | 65 63 6c 61 72 65 2d 76 |custom-d|eclare-v|
|00000470| 61 72 69 61 62 6c 65 20 | 27 73 73 6c 2d 72 65 68 |ariable |'ssl-reh|
|00000480| 61 73 68 2d 70 72 6f 67 | 72 61 6d 2d 6e 61 6d 65 |ash-prog|ram-name|
|00000490| 20 27 22 63 5f 72 65 68 | 61 73 68 22 20 22 2a 50 | '"c_reh|ash" "*P|
|000004a0| 72 6f 67 72 61 6d 20 74 | 6f 20 72 75 6e 20 61 66 |rogram t|o run af|
|000004b0| 74 65 72 20 61 64 64 69 | 6e 67 20 61 20 63 65 72 |ter addi|ng a cer|
|000004c0| 74 20 74 6f 20 61 20 64 | 69 72 65 63 74 6f 72 79 |t to a d|irectory|
|000004d0| 20 2e 5c 6e 52 75 6e 20 | 77 69 74 68 20 6f 6e 65 | .\nRun |with one|
|000004e0| 20 61 72 67 75 6d 65 6e | 74 2c 20 74 68 65 20 64 | argumen|t, the d|
|000004f0| 69 72 65 63 74 6f 72 79 | 20 6e 61 6d 65 2e 22 20 |irectory| name." |
|00000500| 3a 67 72 6f 75 70 20 27 | 73 73 6c 20 3a 74 79 70 |:group '|ssl :typ|
|00000510| 65 20 27 73 74 72 69 6e | 67 29 0a 28 63 75 73 74 |e 'strin|g).(cust|
|00000520| 6f 6d 2d 64 65 63 6c 61 | 72 65 2d 76 61 72 69 61 |om-decla|re-varia|
|00000530| 62 6c 65 20 27 73 73 6c | 2d 76 69 65 77 2d 63 65 |ble 'ssl|-view-ce|
|00000540| 72 74 69 66 69 63 61 74 | 65 2d 70 72 6f 67 72 61 |rtificat|e-progra|
|00000550| 6d 2d 6e 61 6d 65 20 27 | 22 78 35 30 39 22 20 22 |m-name '|"x509" "|
|00000560| 2a 54 68 65 20 70 72 6f | 67 72 61 6d 20 74 6f 20 |*The pro|gram to |
|00000570| 72 75 6e 20 74 6f 20 70 | 72 6f 76 69 64 65 20 61 |run to p|rovide a|
|00000580| 20 68 75 6d 61 6e 2d 72 | 65 61 64 61 62 6c 65 20 | human-r|eadable |
|00000590| 76 69 65 77 20 6f 66 20 | 61 20 63 65 72 74 69 66 |view of |a certif|
|000005a0| 69 63 61 74 65 2e 22 20 | 3a 67 72 6f 75 70 20 27 |icate." |:group '|
|000005b0| 73 73 6c 20 3a 74 79 70 | 65 20 27 73 74 72 69 6e |ssl :typ|e 'strin|
|000005c0| 67 29 0a 28 63 75 73 74 | 6f 6d 2d 64 65 63 6c 61 |g).(cust|om-decla|
|000005d0| 72 65 2d 76 61 72 69 61 | 62 6c 65 20 27 73 73 6c |re-varia|ble 'ssl|
|000005e0| 2d 76 69 65 77 2d 63 65 | 72 74 69 66 69 63 61 74 |-view-ce|rtificat|
|000005f0| 65 2d 70 72 6f 67 72 61 | 6d 2d 61 72 67 75 6d 65 |e-progra|m-argume|
|00000600| 6e 74 73 20 27 27 28 22 | 2d 74 65 78 74 22 20 22 |nts ''("|-text" "|
|00000610| 2d 69 6e 66 6f 72 6d 22 | 20 22 44 45 52 22 29 20 |-inform"| "DER") |
|00000620| 22 2a 41 72 67 75 6d 65 | 6e 74 73 20 74 68 61 74 |"*Argume|nts that|
|00000630| 20 73 68 6f 75 6c 64 20 | 62 65 20 70 61 73 73 65 | should |be passe|
|00000640| 64 20 74 6f 20 74 68 65 | 20 63 65 72 74 69 66 69 |d to the| certifi|
|00000650| 63 61 74 65 20 76 69 65 | 77 69 6e 67 20 70 72 6f |cate vie|wing pro|
|00000660| 67 72 61 6d 2e 5c 6e 54 | 68 65 20 63 65 72 74 69 |gram.\nT|he certi|
|00000670| 66 69 63 61 74 65 20 69 | 73 20 70 69 70 65 64 20 |ficate i|s piped |
|00000680| 74 6f 20 69 74 2e 5c 6e | 4d 61 79 62 65 20 61 20 |to it.\n|Maybe a |
|00000690| 77 61 79 20 6f 66 20 70 | 61 73 73 69 6e 67 20 61 |way of p|assing a|
|000006a0| 20 66 69 6c 65 20 73 68 | 6f 75 6c 64 20 62 65 20 | file sh|ould be |
|000006b0| 69 6d 70 6c 65 6d 65 6e | 74 65 64 22 20 3a 67 72 |implemen|ted" :gr|
|000006c0| 6f 75 70 20 27 73 73 6c | 20 3a 74 79 70 65 20 27 |oup 'ssl| :type '|
|000006d0| 6c 69 73 74 29 0a 28 63 | 75 73 74 6f 6d 2d 64 65 |list).(c|ustom-de|
|000006e0| 63 6c 61 72 65 2d 76 61 | 72 69 61 62 6c 65 20 27 |clare-va|riable '|
|000006f0| 73 73 6c 2d 63 65 72 74 | 69 66 69 63 61 74 65 2d |ssl-cert|ificate-|
|00000700| 64 69 72 65 63 74 6f 72 | 79 2d 73 74 79 6c 65 20 |director|y-style |
|00000710| 27 27 73 73 6c 65 61 79 | 20 22 2a 53 74 79 6c 65 |''ssleay| "*Style|
|00000720| 20 6f 66 20 63 65 72 74 | 20 64 61 74 61 62 61 73 | of cert| databas|
|00000730| 65 20 74 6f 20 75 73 65 | 2c 20 74 68 65 20 6f 6e |e to use|, the on|
|00000740| 6c 79 20 76 61 6c 69 64 | 20 76 61 6c 75 65 20 72 |ly valid| value r|
|00000750| 69 67 68 74 20 6e 6f 77 | 20 69 73 20 60 73 73 6c |ight now| is `ssl|
|00000760| 65 61 79 27 2e 5c 6e 54 | 68 69 73 20 6d 65 61 6e |eay'.\nT|his mean|
|00000770| 73 20 61 20 64 69 72 65 | 63 74 6f 72 79 20 6f 66 |s a dire|ctory of|
|00000780| 20 70 65 6d 20 65 6e 63 | 6f 64 65 64 20 63 65 72 | pem enc|oded cer|
|00000790| 74 69 66 69 63 61 74 65 | 73 20 77 69 74 68 20 68 |tificate|s with h|
|000007a0| 61 73 68 20 73 79 6d 6c | 69 6e 6b 73 2e 22 20 3a |ash syml|inks." :|
|000007b0| 67 72 6f 75 70 20 27 73 | 73 6c 20 3a 74 79 70 65 |group 's|sl :type|
|000007c0| 20 27 28 63 68 6f 69 63 | 65 20 28 63 6f 6e 73 74 | '(choic|e (const|
|000007d0| 20 3a 74 61 67 20 22 53 | 53 4c 65 61 79 22 20 3a | :tag "S|SLeay" :|
|000007e0| 76 61 6c 75 65 20 73 73 | 6c 65 61 79 29 29 29 0a |value ss|leay))).|
|000007f0| 28 63 75 73 74 6f 6d 2d | 64 65 63 6c 61 72 65 2d |(custom-|declare-|
|00000800| 76 61 72 69 61 62 6c 65 | 20 27 73 73 6c 2d 63 65 |variable| 'ssl-ce|
|00000810| 72 74 69 66 69 63 61 74 | 65 2d 76 65 72 69 66 69 |rtificat|e-verifi|
|00000820| 63 61 74 69 6f 6e 2d 70 | 6f 6c 69 63 79 20 27 30 |cation-p|olicy '0|
|00000830| 20 22 2a 48 6f 77 20 66 | 61 72 20 75 70 20 74 68 | "*How f|ar up th|
|00000840| 65 20 63 65 72 74 69 66 | 69 63 61 74 65 20 63 68 |e certif|icate ch|
|00000850| 61 69 6e 20 77 65 20 73 | 68 6f 75 6c 64 20 76 65 |ain we s|hould ve|
|00000860| 72 69 66 79 2e 22 20 3a | 67 72 6f 75 70 20 27 73 |rify." :|group 's|
|00000870| 73 6c 20 3a 74 79 70 65 | 20 27 28 63 68 6f 69 63 |sl :type| '(choic|
|00000880| 65 20 28 63 6f 6e 73 74 | 20 3a 74 61 67 20 22 4e |e (const| :tag "N|
|00000890| 6f 20 76 65 72 69 66 69 | 63 61 74 69 6f 6e 22 20 |o verifi|cation" |
|000008a0| 3a 76 61 6c 75 65 20 30 | 29 20 28 63 6f 6e 73 74 |:value 0|) (const|
|000008b0| 20 3a 74 61 67 20 22 56 | 65 72 69 66 69 63 61 74 | :tag "V|erificat|
|000008c0| 69 6f 6e 20 72 65 71 75 | 69 72 65 64 22 20 3a 76 |ion requ|ired" :v|
|000008d0| 61 6c 75 65 20 31 29 20 | 28 63 6f 6e 73 74 20 3a |alue 1) |(const :|
|000008e0| 74 61 67 20 22 52 65 6a | 65 63 74 20 63 6f 6e 6e |tag "Rej|ect conn|
|000008f0| 65 63 74 69 6f 6e 20 69 | 66 20 76 65 72 69 66 69 |ection i|f verifi|
|00000900| 63 61 74 69 6f 6e 20 66 | 61 69 6c 73 22 20 3a 76 |cation f|ails" :v|
|00000910| 61 6c 75 65 20 33 29 20 | 28 63 6f 6e 73 74 20 3a |alue 3) |(const :|
|00000920| 74 61 67 20 22 53 53 4c | 5f 56 45 52 49 46 59 5f |tag "SSL|_VERIFY_|
|00000930| 43 4c 49 45 4e 54 5f 4f | 4e 43 45 22 20 3a 76 61 |CLIENT_O|NCE" :va|
|00000940| 6c 75 65 20 35 29 29 29 | 0a 28 63 75 73 74 6f 6d |lue 5)))|.(custom|
|00000950| 2d 64 65 63 6c 61 72 65 | 2d 76 61 72 69 61 62 6c |-declare|-variabl|
|00000960| 65 20 27 73 73 6c 2d 70 | 72 6f 67 72 61 6d 2d 6e |e 'ssl-p|rogram-n|
|00000970| 61 6d 65 20 27 22 73 5f | 63 6c 69 65 6e 74 22 20 |ame '"s_|client" |
|00000980| 22 2a 54 68 65 20 70 72 | 6f 67 72 61 6d 20 74 6f |"*The pr|ogram to|
|00000990| 20 72 75 6e 20 69 6e 20 | 61 20 73 75 62 70 72 6f | run in |a subpro|
|000009a0| 63 65 73 73 20 74 6f 20 | 6f 70 65 6e 20 61 6e 20 |cess to |open an |
|000009b0| 53 53 4c 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2e 22 |SSL conn|ection."|
|000009c0| 20 3a 67 72 6f 75 70 20 | 27 73 73 6c 20 3a 74 79 | :group |'ssl :ty|
|000009d0| 70 65 20 27 73 74 72 69 | 6e 67 29 0a 28 63 75 73 |pe 'stri|ng).(cus|
|000009e0| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|000009f0| 61 62 6c 65 20 27 73 73 | 6c 2d 70 72 6f 67 72 61 |able 'ss|l-progra|
|00000a00| 6d 2d 61 72 67 75 6d 65 | 6e 74 73 20 27 27 28 22 |m-argume|nts ''("|
|00000a10| 2d 68 6f 73 74 22 20 68 | 6f 73 74 20 22 2d 70 6f |-host" h|ost "-po|
|00000a20| 72 74 22 20 73 65 72 76 | 69 63 65 20 22 2d 76 65 |rt" serv|ice "-ve|
|00000a30| 72 69 66 79 22 20 28 69 | 6e 74 2d 74 6f 2d 73 74 |rify" (i|nt-to-st|
|00000a40| 72 69 6e 67 20 73 73 6c | 2d 63 65 72 74 69 66 69 |ring ssl|-certifi|
|00000a50| 63 61 74 65 2d 76 65 72 | 69 66 69 63 61 74 69 6f |cate-ver|ificatio|
|00000a60| 6e 2d 70 6f 6c 69 63 79 | 29 20 22 2d 43 41 70 61 |n-policy|) "-CApa|
|00000a70| 74 68 22 20 73 73 6c 2d | 63 65 72 74 69 66 69 63 |th" ssl-|certific|
|00000a80| 61 74 65 2d 64 69 72 65 | 63 74 6f 72 79 29 20 22 |ate-dire|ctory) "|
|00000a90| 2a 41 72 67 75 6d 65 6e | 74 73 20 74 68 61 74 20 |*Argumen|ts that |
|00000aa0| 73 68 6f 75 6c 64 20 62 | 65 20 70 61 73 73 65 64 |should b|e passed|
|00000ab0| 20 74 6f 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | to the |program |
|00000ac0| 60 73 73 6c 2d 70 72 6f | 67 72 61 6d 2d 6e 61 6d |`ssl-pro|gram-nam|
|00000ad0| 65 27 2e 5c 6e 54 68 69 | 73 20 73 68 6f 75 6c 64 |e'.\nThi|s should|
|00000ae0| 20 62 65 20 75 73 65 64 | 20 69 66 20 79 6f 75 72 | be used| if your|
|00000af0| 20 53 53 4c 20 70 72 6f | 67 72 61 6d 20 6e 65 65 | SSL pro|gram nee|
|00000b00| 64 73 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |ds comma|nd line |
|00000b10| 73 77 69 74 63 68 65 73 | 20 74 6f 5c 6e 73 70 65 |switches| to\nspe|
|00000b20| 63 69 66 79 20 61 6e 79 | 20 62 65 68 61 76 69 6f |cify any| behavio|
|00000b30| 75 72 20 28 63 65 72 74 | 69 66 69 63 61 74 65 20 |ur (cert|ificate |
|00000b40| 66 69 6c 65 20 6c 6f 63 | 61 74 69 6f 6e 73 2c 20 |file loc|ations, |
|00000b50| 65 74 63 29 2e 5c 6e 54 | 68 65 20 73 70 65 63 69 |etc).\nT|he speci|
|00000b60| 61 6c 20 73 79 6d 62 6f | 6c 73 20 27 68 6f 73 74 |al symbo|ls 'host|
|00000b70| 20 61 6e 64 20 27 70 6f | 72 74 20 6d 61 79 20 62 | and 'po|rt may b|
|00000b80| 65 20 75 73 65 64 20 69 | 6e 20 74 68 65 20 6c 69 |e used i|n the li|
|00000b90| 73 74 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 5c |st of ar|guments\|
|00000ba0| 6e 61 6e 64 20 77 69 6c | 6c 20 62 65 20 72 65 70 |nand wil|l be rep|
|00000bb0| 6c 61 63 65 64 20 77 69 | 74 68 20 74 68 65 20 68 |laced wi|th the h|
|00000bc0| 6f 73 74 6e 61 6d 65 20 | 61 6e 64 20 73 65 72 76 |ostname |and serv|
|00000bd0| 69 63 65 2f 70 6f 72 74 | 20 74 68 61 74 20 77 69 |ice/port| that wi|
|00000be0| 6c 6c 20 62 65 20 63 6f | 6e 6e 65 63 74 65 64 5c |ll be co|nnected\|
|00000bf0| 6e 74 6f 2e 22 20 3a 67 | 72 6f 75 70 20 27 73 73 |nto." :g|roup 'ss|
|00000c00| 6c 20 3a 74 79 70 65 20 | 27 6c 69 73 74 29 0a 23 |l :type |'list).#|
|00000c10| 40 31 37 34 20 41 73 6b | 20 69 66 20 74 68 65 20 |@174 Ask| if the |
|00000c20| 75 73 65 72 20 69 73 20 | 77 69 6c 6c 69 6e 67 20 |user is |willing |
|00000c30| 74 6f 20 61 63 63 65 70 | 74 20 61 20 6e 65 77 20 |to accep|t a new |
|00000c40| 43 41 20 63 65 72 74 69 | 66 69 63 61 74 65 2e 20 |CA certi|ficate. |
|00000c50| 54 68 65 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 0a |The buff|er-name.|
|00000c60| 73 68 6f 75 6c 64 20 62 | 65 20 74 68 65 20 69 6e |should b|e the in|
|00000c70| 74 65 6e 64 65 64 20 6e | 61 6d 65 20 6f 66 20 74 |tended n|ame of t|
|00000c80| 68 65 20 63 65 72 74 69 | 66 69 63 61 74 65 2c 20 |he certi|ficate, |
|00000c90| 61 6e 64 20 74 68 65 20 | 62 75 66 66 65 72 20 73 |and the |buffer s|
|00000ca0| 68 6f 75 6c 64 20 70 72 | 6f 62 61 62 6c 79 0a 62 |hould pr|obably.b|
|00000cb0| 65 20 69 6e 20 44 45 52 | 20 65 6e 63 6f 64 69 6e |e in DER| encodin|
|00000cc0| 67 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 73 |g..(defa|lias 'ss|
|00000cd0| 6c 2d 61 63 63 65 70 74 | 2d 63 61 2d 63 65 72 74 |l-accept|-ca-cert|
|00000ce0| 69 66 69 63 61 74 65 20 | 23 5b 6e 69 6c 20 22 c0 |ificate |#[nil ".|
|00000cf0| 19 c2 c3 21 1c 8a c5 c6 | 65 64 0e 07 c0 0c c8 0e |...!....|ed......|
|00000d00| 09 26 08 ca 61 ad 94 cb | 0c 21 ad 8f 65 62 ad 8b |.&..a...|.!..eb..|
|00000d10| cc 20 88 cd ce 21 ad 83 | cf 0c 21 29 89 1e 10 ad |. ...!..|..!)....|
|00000d20| bf d1 0e 12 21 ac 85 d3 | 0e 12 21 88 0e 14 d5 61 |....!...|..!....a|
|00000d30| ad ae d6 65 64 5c 22 88 | 65 62 88 d7 63 88 64 62 |...ed\".|eb..c.db|
|00000d40| 88 d8 63 88 d9 da db 20 | 21 dc 50 0e 12 5c 22 1e |..c.... |!.P..\".|
|00000d50| 1d de 0e 1d 21 88 df 0e | 20 c0 89 89 d9 0e 12 21 |....!...| ......!|
|00000d60| 25 29 2b 87 22 20 5b 6e | 69 6c 20 70 72 6f 63 65 |%)+." [n|il proce|
|00000d70| 73 73 2d 63 6f 6e 6e 65 | 63 74 69 6f 6e 2d 74 79 |ss-conne|ction-ty|
|00000d80| 70 65 20 67 65 6e 65 72 | 61 74 65 2d 6e 65 77 2d |pe gener|ate-new-|
|00000d90| 62 75 66 66 65 72 20 22 | 58 35 30 39 20 43 41 20 |buffer "|X509 CA |
|00000da0| 43 65 72 74 69 66 69 63 | 61 74 65 20 49 6e 66 6f |Certific|ate Info|
|00000db0| 72 6d 61 74 69 6f 6e 22 | 20 74 6d 70 62 75 66 20 |rmation"| tmpbuf |
|00000dc0| 61 70 70 6c 79 20 63 61 | 6c 6c 2d 70 72 6f 63 65 |apply ca|ll-proce|
|00000dd0| 73 73 2d 72 65 67 69 6f | 6e 20 73 73 6c 2d 76 69 |ss-regio|n ssl-vi|
|00000de0| 65 77 2d 63 65 72 74 69 | 66 69 63 61 74 65 2d 70 |ew-certi|ficate-p|
|00000df0| 72 6f 67 72 61 6d 2d 6e | 61 6d 65 20 74 20 73 73 |rogram-n|ame t ss|
|00000e00| 6c 2d 76 69 65 77 2d 63 | 65 72 74 69 66 69 63 61 |l-view-c|ertifica|
|00000e10| 74 65 2d 70 72 6f 67 72 | 61 6d 2d 61 72 67 75 6d |te-progr|am-argum|
|00000e20| 65 6e 74 73 20 30 20 73 | 77 69 74 63 68 2d 74 6f |ents 0 s|witch-to|
|00000e30| 2d 62 75 66 66 65 72 20 | 72 65 63 65 6e 74 65 72 |-buffer |recenter|
|00000e40| 20 79 65 73 2d 6f 72 2d | 6e 6f 2d 70 20 22 41 63 | yes-or-|no-p "Ac|
|00000e50| 63 65 70 74 20 74 68 69 | 73 20 43 41 20 74 6f 20 |cept thi|s CA to |
|00000e60| 76 6f 75 63 68 20 66 6f | 72 20 73 65 63 75 72 65 |vouch fo|r secure|
|00000e70| 20 73 65 72 76 65 72 20 | 69 64 65 6e 74 69 74 69 | server |identiti|
|00000e80| 65 73 3f 20 22 20 6b 69 | 6c 6c 2d 62 75 66 66 65 |es? " ki|ll-buffe|
|00000e90| 72 20 72 65 73 70 6f 6e | 73 65 20 66 69 6c 65 2d |r respon|se file-|
|00000ea0| 64 69 72 65 63 74 6f 72 | 79 2d 70 20 73 73 6c 2d |director|y-p ssl-|
|00000eb0| 63 65 72 74 69 66 69 63 | 61 74 65 2d 64 69 72 65 |certific|ate-dire|
|00000ec0| 63 74 6f 72 79 20 6d 61 | 6b 65 2d 64 69 72 65 63 |ctory ma|ke-direc|
|00000ed0| 74 6f 72 79 20 73 73 6c | 2d 63 65 72 74 69 66 69 |tory ssl|-certifi|
|00000ee0| 63 61 74 65 2d 64 69 72 | 65 63 74 6f 72 79 2d 73 |cate-dir|ectory-s|
|00000ef0| 74 79 6c 65 20 73 73 6c | 65 61 79 20 62 61 73 65 |tyle ssl|eay base|
|00000f00| 36 34 2d 65 6e 63 6f 64 | 65 2d 72 65 67 69 6f 6e |64-encod|e-region|
|00000f10| 20 22 2d 2d 2d 2d 2d 42 | 45 47 49 4e 20 43 45 52 | "-----B|EGIN CER|
|00000f20| 54 49 46 49 43 41 54 45 | 2d 2d 2d 2d 2d 5c 6e 22 |TIFICATE|-----\n"|
|00000f30| 20 22 2d 2d 2d 2d 2d 45 | 4e 44 20 43 45 52 54 49 | "-----E|ND CERTI|
|00000f40| 46 49 43 41 54 45 2d 2d | 2d 2d 2d 5c 6e 22 20 65 |FICATE--|---\n" e|
|00000f50| 78 70 61 6e 64 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |xpand-fi|le-name |
|00000f60| 66 69 6c 65 2d 6e 61 6d | 65 2d 73 61 6e 73 2d 65 |file-nam|e-sans-e|
|00000f70| 78 74 65 6e 73 69 6f 6e | 20 62 75 66 66 65 72 2d |xtension| buffer-|
|00000f80| 6e 61 6d 65 20 22 2e 70 | 65 6d 22 20 66 20 77 72 |name ".p|em" f wr|
|00000f90| 69 74 65 2d 66 69 6c 65 | 20 63 61 6c 6c 2d 70 72 |ite-file| call-pr|
|00000fa0| 6f 63 65 73 73 20 73 73 | 6c 2d 72 65 68 61 73 68 |ocess ss|l-rehash|
|00000fb0| 2d 70 72 6f 67 72 61 6d | 2d 6e 61 6d 65 5d 20 31 |-program|-name] 1|
|00000fc0| 30 20 28 23 24 20 2e 20 | 33 30 39 33 29 5d 29 0a |0 (#$ . |3093)]).|
|00000fd0| 23 40 37 33 31 20 4f 70 | 65 6e 20 61 20 53 53 4c |#@731 Op|en a SSL|
|00000fe0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 66 6f 72 20 | connect|ion for |
|00000ff0| 61 20 73 65 72 76 69 63 | 65 20 74 6f 20 61 20 68 |a servic|e to a h|
|00001000| 6f 73 74 2e 0a 52 65 74 | 75 72 6e 73 20 61 20 73 |ost..Ret|urns a s|
|00001010| 75 62 70 72 6f 63 65 73 | 73 2d 6f 62 6a 65 63 74 |ubproces|s-object|
|00001020| 20 74 6f 20 72 65 70 72 | 65 73 65 6e 74 20 74 68 | to repr|esent th|
|00001030| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 2e 0a 49 6e |e connec|tion..In|
|00001040| 70 75 74 20 61 6e 64 20 | 6f 75 74 70 75 74 20 77 |put and |output w|
|00001050| 6f 72 6b 20 61 73 20 66 | 6f 72 20 73 75 62 70 72 |ork as f|or subpr|
|00001060| 6f 63 65 73 73 65 73 3b | 20 60 64 65 6c 65 74 65 |ocesses;| `delete|
|00001070| 2d 70 72 6f 63 65 73 73 | 27 20 63 6c 6f 73 65 73 |-process|' closes|
|00001080| 20 69 74 2e 0a 41 72 67 | 73 20 61 72 65 20 4e 41 | it..Arg|s are NA|
|00001090| 4d 45 20 42 55 46 46 45 | 52 20 48 4f 53 54 20 53 |ME BUFFE|R HOST S|
|000010a0| 45 52 56 49 43 45 2e 0a | 4e 41 4d 45 20 69 73 20 |ERVICE..|NAME is |
|000010b0| 6e 61 6d 65 20 66 6f 72 | 20 70 72 6f 63 65 73 73 |name for| process|
|000010c0| 2e 20 20 49 74 20 69 73 | 20 6d 6f 64 69 66 69 65 |. It is| modifie|
|000010d0| 64 20 69 66 20 6e 65 63 | 65 73 73 61 72 79 20 74 |d if nec|essary t|
|000010e0| 6f 20 6d 61 6b 65 20 69 | 74 20 75 6e 69 71 75 65 |o make i|t unique|
|000010f0| 2e 0a 42 55 46 46 45 52 | 20 69 73 20 74 68 65 20 |..BUFFER| is the |
|00001100| 62 75 66 66 65 72 20 28 | 6f 72 20 62 75 66 66 65 |buffer (|or buffe|
|00001110| 72 2d 6e 61 6d 65 29 20 | 74 6f 20 61 73 73 6f 63 |r-name) |to assoc|
|00001120| 69 61 74 65 20 77 69 74 | 68 20 74 68 65 20 70 72 |iate wit|h the pr|
|00001130| 6f 63 65 73 73 2e 0a 20 | 50 72 6f 63 65 73 73 20 |ocess.. |Process |
|00001140| 6f 75 74 70 75 74 20 67 | 6f 65 73 20 61 74 20 65 |output g|oes at e|
|00001150| 6e 64 20 6f 66 20 74 68 | 61 74 20 62 75 66 66 65 |nd of th|at buffe|
|00001160| 72 2c 20 75 6e 6c 65 73 | 73 20 79 6f 75 20 73 70 |r, unles|s you sp|
|00001170| 65 63 69 66 79 0a 20 61 | 6e 20 6f 75 74 70 75 74 |ecify. a|n output|
|00001180| 20 73 74 72 65 61 6d 20 | 6f 72 20 66 69 6c 74 65 | stream |or filte|
|00001190| 72 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 68 61 |r functi|on to ha|
|000011a0| 6e 64 6c 65 20 74 68 65 | 20 6f 75 74 70 75 74 2e |ndle the| output.|
|000011b0| 0a 20 42 55 46 46 45 52 | 20 6d 61 79 20 62 65 20 |. BUFFER| may be |
|000011c0| 61 6c 73 6f 20 6e 69 6c | 2c 20 6d 65 61 6e 69 6e |also nil|, meanin|
|000011d0| 67 20 74 68 61 74 20 74 | 68 69 73 20 70 72 6f 63 |g that t|his proc|
|000011e0| 65 73 73 20 69 73 20 6e | 6f 74 20 61 73 73 6f 63 |ess is n|ot assoc|
|000011f0| 69 61 74 65 64 0a 20 77 | 69 74 68 20 61 6e 79 20 |iated. w|ith any |
|00001200| 62 75 66 66 65 72 0a 54 | 68 69 72 64 20 61 72 67 |buffer.T|hird arg|
|00001210| 20 69 73 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 | is name| of the |
|00001220| 68 6f 73 74 20 74 6f 20 | 63 6f 6e 6e 65 63 74 20 |host to |connect |
|00001230| 74 6f 2c 20 6f 72 20 69 | 74 73 20 49 50 20 61 64 |to, or i|ts IP ad|
|00001240| 64 72 65 73 73 2e 0a 46 | 6f 75 72 74 68 20 61 72 |dress..F|ourth ar|
|00001250| 67 20 53 45 52 56 49 43 | 45 20 69 73 20 6e 61 6d |g SERVIC|E is nam|
|00001260| 65 20 6f 66 20 74 68 65 | 20 73 65 72 76 69 63 65 |e of the| service|
|00001270| 20 64 65 73 69 72 65 64 | 2c 20 6f 72 20 61 6e 20 | desired|, or an |
|00001280| 69 6e 74 65 67 65 72 0a | 73 70 65 63 69 66 79 69 |integer.|specifyi|
|00001290| 6e 67 20 61 20 70 6f 72 | 74 20 6e 75 6d 62 65 72 |ng a por|t number|
|000012a0| 20 74 6f 20 63 6f 6e 6e | 65 63 74 20 74 6f 2e 1f | to conn|ect to..|
|000012b0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6f 70 65 6e |.(defali|as 'open|
|000012c0| 2d 73 73 6c 2d 73 74 72 | 65 61 6d 20 23 5b 28 6e |-ssl-str|eam #[(n|
|000012d0| 61 6d 65 20 62 75 66 66 | 65 72 20 68 6f 73 74 20 |ame buff|er host |
|000012e0| 73 65 72 76 69 63 65 29 | 20 22 08 a8 ab 84 c1 08 |service)| "......|
|000012f0| 21 10 c2 1b 08 1c c5 c6 | c7 c8 c9 0e 5c 6e 42 42 |!.......|....\nBB|
|00001300| 42 42 21 1e 0b cc 0e 0b | 21 88 0e 0b 2b 87 22 20 |BB!.....|!...+." |
|00001310| 5b 73 65 72 76 69 63 65 | 20 69 6e 74 2d 74 6f 2d |[service| int-to-|
|00001320| 73 74 72 69 6e 67 20 6e | 69 6c 20 70 72 6f 63 65 |string n|il proce|
|00001330| 73 73 2d 63 6f 6e 6e 65 | 63 74 69 6f 6e 2d 74 79 |ss-conne|ction-ty|
|00001340| 70 65 20 70 6f 72 74 20 | 65 76 61 6c 20 73 74 61 |pe port |eval sta|
|00001350| 72 74 2d 70 72 6f 63 65 | 73 73 20 6e 61 6d 65 20 |rt-proce|ss name |
|00001360| 62 75 66 66 65 72 20 73 | 73 6c 2d 70 72 6f 67 72 |buffer s|sl-progr|
|00001370| 61 6d 2d 6e 61 6d 65 20 | 73 73 6c 2d 70 72 6f 67 |am-name |ssl-prog|
|00001380| 72 61 6d 2d 61 72 67 75 | 6d 65 6e 74 73 20 70 72 |ram-argu|ments pr|
|00001390| 6f 63 20 70 72 6f 63 65 | 73 73 2d 6b 69 6c 6c 2d |oc proce|ss-kill-|
|000013a0| 77 69 74 68 6f 75 74 2d | 71 75 65 72 79 5d 20 36 |without-|query] 6|
|000013b0| 20 28 23 24 20 2e 20 34 | 30 35 34 29 5d 29 0a 28 | (#$ . 4|054)]).(|
|000013c0| 70 72 6f 76 69 64 65 20 | 27 73 73 6c 29 0a |provide |'ssl). |
+--------+-------------------------+-------------------------+--------+--------+