Skip to content

Commit

Permalink
Public-Auto-release: v2.19.2
Browse files Browse the repository at this point in the history
# Changed
* Bugfix: Update device authentication
  • Loading branch information
blickfeld-lidar committed Mar 25, 2021
1 parent 45dd3ce commit cb32f01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ influence the resulting point cloud.

### Removed

## [2.19.2] - 2021.03.25

### Changed
* Bugfix: Update device authentication

## [2.19.1] - 2021.03.22

### Changed
Expand Down
2 changes: 1 addition & 1 deletion python/blickfeld_scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def __init__(self, hostname_or_ip, port, key_and_cert=None, ssl_protocol=ssl.PRO
raise
os.unlink(key_and_cert_file)

self._ssl_context.verify_mode = ssl.CERT_REQUIRED
self._ssl_context.verify_mode = ssl.CERT_NONE
self.socket = self._ssl_context.wrap_socket(socket.create_connection((hostname_or_ip, port)), server_hostname=hostname_or_ip)
else:
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Expand Down
2 changes: 1 addition & 1 deletion src/scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ scanner::scanner(std::string hostname_or_ip, std::string cert_key_file) :
ssl_context->set_options(asio::ssl::context::default_workarounds|asio::ssl::context::no_sslv2|asio::ssl::context::single_dh_use);
ssl_context->use_certificate_file(cert_key_file, asio::ssl::context::pem);
ssl_context->use_private_key_file(cert_key_file, asio::ssl::context::pem);
ssl_context->set_verify_mode(asio::ssl::verify_peer);
ssl_context->set_verify_mode(asio::ssl::verify_none);
ssl_context->load_verify_file(cert_key_file);
conn = new scanner_connection(*io_context, hostname_or_ip, *ssl_context);
#else
Expand Down

0 comments on commit cb32f01

Please sign in to comment.