~ubuntu-branches/ubuntu/trusty/lua-sec/trusty

« back to all changes in this revision

Viewing changes to samples/verification/fail-table/server.lua

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2014-02-01 14:21:36 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140201142136-a3y41pzungz2w06i
Tags: 0.5-1
* New upstream release 
* Bump Standards-Version to 3.9.5, no changes
* Copyright updated and ported to format 1.0 

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
   cafile = "../../certs/rootA.pem",
13
13
   verify = {"peer", "fail_if_no_peer_cert"},
14
14
   options = {"all", "no_sslv2"},
 
15
   verifyext = {"lsec_continue", "crl_check", "crl_check_chain"},
15
16
}
16
17
 
17
 
 
18
18
-- [[ SSL context
19
19
local ctx = assert(ssl.newcontext(params))
20
20
--]]
21
21
 
22
 
ctx:setverifyext("lsec_continue", "crl_check", "crl_check_chain")
23
 
 
24
22
local server = socket.tcp()
25
23
server:setoption('reuseaddr', true)
26
24
assert( server:bind("127.0.0.1", 8888) )