summaryrefslogtreecommitdiff
path: root/pysnmp/hlapi
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-07-18 00:06:37 +0200
committerIlya Etingof <etingof@gmail.com>2017-07-18 00:06:37 +0200
commit20790316e63901b439eff43ec43f34e902d39897 (patch)
tree6fc4a6d33c2c47fba1b201abadca0d1aade97765 /pysnmp/hlapi
parenta3b1f2a35006683a9ab28ed0c5bb68f2b2d1be41 (diff)
downloadpysnmp-git-20790316e63901b439eff43ec43f34e902d39897.tar.gz
deprecated UsmUserData instantiation params removed
Diffstat (limited to 'pysnmp/hlapi')
-rw-r--r--pysnmp/hlapi/auth.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/pysnmp/hlapi/auth.py b/pysnmp/hlapi/auth.py
index 961c95e8..0a871431 100644
--- a/pysnmp/hlapi/auth.py
+++ b/pysnmp/hlapi/auth.py
@@ -245,16 +245,10 @@ class UsmUserData(object):
mpModel = 3
contextName = null
- # the contextEngineId/contextName values stored here should
- # be used for USM configuration only, not for PDU contents
def __init__(self, userName,
authKey=None, privKey=None,
authProtocol=None, privProtocol=None,
securityEngineId=None,
- # deprecated parameters begin
- contextName=None,
- contextEngineId=None,
- # deprecated parameters end
securityName=None):
self.userName = userName
if securityName is None:
@@ -281,14 +275,7 @@ class UsmUserData(object):
else:
self.privProtocol = privProtocol
- # the contextEngineId parameter is actually a securityEngineId
- if securityEngineId is None:
- securityEngineId = contextEngineId
- self.contextEngineId = self.securityEngineId = securityEngineId
-
- # the contextName parameter should never be used here
- if contextName is not None:
- self.contextName = contextName
+ self.securityEngineId = securityEngineId
def __hash__(self):
raise TypeError('%s is not hashable' % self.__class__.__name__)