This is unnecessarily duplicated code that could be in the previous ```when``` clauses.
e.g.:
```ruby
when 'TLS1', :TLSv1
  version = :TLSv1
...
```