Skip to content

Commit

Permalink
Default key type for auth keys set to Password
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Jan 31, 2024
1 parent 1a15521 commit b50e764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
* Improved password to master key translation performance: ~35%.
* Optimized SNMPv3 message signing.

## Fixed
* Default key type for auth keys set to Password.

## 0.4.0 - 2024-01-29

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/gufo/snmp/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ class BaseAuthKey(BaseKey):
KEY_LENGTH: int

def __init__(
self: "BaseAuthKey", key: bytes, /, key_type: KeyType = KeyType.Master
self: "BaseAuthKey",
key: bytes,
/,
key_type: KeyType = KeyType.Password,
) -> None:
if key_type._is_aligned:
key = self._padded(key, self.KEY_LENGTH)
Expand Down

0 comments on commit b50e764

Please sign in to comment.