Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
57 | public function getArray() |
||
58 | { |
||
59 | $context = [ |
||
60 | 'ssl' => [ |
||
61 | 'capture_peer_cert' => true, |
||
62 | 'verify_peer' => false, |
||
63 | 'verify_peer_name' => $this->verifyPeerName(), |
||
64 | ], |
||
65 | ]; |
||
66 | |||
67 | if ($this->sniServerName !== null) { |
||
68 | $context['ssl']['SNI_enabled'] = true; |
||
69 | $context['ssl']['SNI_server_name'] = $this->getSniServerName(); |
||
70 | } |
||
71 | |||
72 | return $context; |
||
73 | } |
||
74 | |||
84 |