diff options
author | Micael Karlberg <[email protected]> | 2013-11-26 15:13:06 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-11-26 15:13:06 +0100 |
commit | 8852c947d413e8814d663c9319f7b8932b05a7ad (patch) | |
tree | 130ab4aea889874be6b20e9058efb9eab79bb2eb /lib/snmp/src/agent/snmpa_usm.erl | |
parent | 666884a245fd57f04e0a15b0602c46bf271966f0 (diff) | |
parent | b73c98771730a6db086d3697eaa6b6ac11be0361 (diff) | |
download | otp-8852c947d413e8814d663c9319f7b8932b05a7ad.tar.gz otp-8852c947d413e8814d663c9319f7b8932b05a7ad.tar.bz2 otp-8852c947d413e8814d663c9319f7b8932b05a7ad.zip |
Merge branch 'bmk/snmp/snmp425_integration' into maint
Conflicts:
lib/snmp/doc/src/notes.xml
lib/snmp/src/app/snmp.appup.src
lib/snmp/src/misc/snmp_log.erl
lib/snmp/vsn.mk
Diffstat (limited to 'lib/snmp/src/agent/snmpa_usm.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_usm.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_usm.erl b/lib/snmp/src/agent/snmpa_usm.erl index 6f54307f9f..719ea4e356 100644 --- a/lib/snmp/src/agent/snmpa_usm.erl +++ b/lib/snmp/src/agent/snmpa_usm.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1999-2011. All Rights Reserved. +%% Copyright Ericsson AB 1999-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -16,6 +16,9 @@ %% %% %CopyrightEnd% %% +%% AES: RFC 3826 +%% + -module(snmpa_usm). %% Avoid warning for local function error/1 clashing with autoimported BIF. @@ -652,7 +655,10 @@ get_des_salt() -> [?i32(EngineBoots), ?i32(SaltInt)]. aes_encrypt(PrivKey, Data) -> - snmp_usm:aes_encrypt(PrivKey, Data, fun get_aes_salt/0). + EngineBoots = snmp_framework_mib:get_engine_boots(), + EngineTime = snmp_framework_mib:get_engine_time(), + snmp_usm:aes_encrypt(PrivKey, Data, fun get_aes_salt/0, + EngineBoots, EngineTime). aes_decrypt(PrivKey, UsmSecParams, EncData) -> #usmSecurityParameters{msgPrivacyParameters = PrivParams, |