Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### 0.2.12

- Performence improvement, details see [benchmark/README.md](benchmark/README.md).
- Fix `AttributeError: 'Connection' object has no attribute 'ssl'` in `sha256_password` auth branch. (#147)

### 0.2.11

Expand Down
2 changes: 1 addition & 1 deletion asyncmy/connection.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class Connection:
authresp = auth.scramble_caching_sha2(self._password, self.salt)
elif self._auth_plugin_name == "sha256_password":
plugin_name = b"sha256_password"
if self.ssl and self.server_capabilities & SSL:
if self._ssl_context and self.server_capabilities & SSL:
authresp = self._password + b"\0"
elif self._password:
authresp = b"\1" # request public key
Expand Down