Skip to content
Snippets Groups Projects
Verified Commit 8cee310a authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Fix SSL verification not being possible to enable

Fixes #9
parent 129971ab
No related branches found
No related tags found
No related merge requests found
Pipeline #9180 failed
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
all state, as it now requires a state key. For retrieving full room state, all state, as it now requires a state key. For retrieving full room state,
`#get_room_state_all` is now the method to use. `#get_room_state_all` is now the method to use.
- Changes some advanced parameters to named parameters, ensure your code is updated if it makes use of them - Changes some advanced parameters to named parameters, ensure your code is updated if it makes use of them
- Fixes SSL verification to actually verify certs (#9)
- Adds multiple CS API endpoints - Adds multiple CS API endpoints
- Adds `:room_id` key to all room events - Adds `:room_id` key to all room events
......
...@@ -335,7 +335,7 @@ module MatrixSdk ...@@ -335,7 +335,7 @@ module MatrixSdk
@http.open_timeout = open_timeout @http.open_timeout = open_timeout
@http.read_timeout = read_timeout @http.read_timeout = read_timeout
@http.use_ssl = homeserver.scheme == 'https' @http.use_ssl = homeserver.scheme == 'https'
@http.verify_mode = validate_certificate ? ::OpenSSL::SSL::VERIFY_NONE : nil @http.verify_mode = validate_certificate ? ::OpenSSL::SSL::VERIFY_PEER : ::OpenSSL::SSL::VERIFY_NONE
@http.start @http.start
@http @http
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment