66 succ, msg = optexec(context.setverify, cfg.verify, ctx) |
66 succ, msg = optexec(context.setverify, cfg.verify, ctx) |
67 if not succ then return nil, msg end |
67 if not succ then return nil, msg end |
68 -- Set SSL options |
68 -- Set SSL options |
69 succ, msg = optexec(context.setoptions, cfg.options, ctx) |
69 succ, msg = optexec(context.setoptions, cfg.options, ctx) |
70 if not succ then return nil, msg end |
70 if not succ then return nil, msg end |
|
71 -- Set SSL ciphers |
|
72 succ, msg = optexec(context.setcipher, cfg.ciphers, ctx) |
|
73 if not succ then return nil, msg end |
71 -- Set the depth for certificate verification |
74 -- Set the depth for certificate verification |
72 if cfg.depth then |
75 if cfg.depth then |
73 succ, msg = context.setdepth(ctx, cfg.depth) |
76 succ, msg = context.setdepth(ctx, cfg.depth) |
74 if not succ then return nil, msg end |
77 if not succ then return nil, msg end |
75 end |
78 end |