#37564 [Opn->Fbk]: php-snmp with AES is broken
| From: | tony2001@php.net | Date: | Wed, 24 May 2006 06:41:50 +0000 |
| Subject: | #37564 [Opn->Fbk]: php-snmp with AES is broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97489@lists.php.net to get a copy of this message | ||
ID: 37564
Updated by: tony2001@php.net
Reported By: scott dot moynes+php at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: SNMP related
PHP Version: 5.1.4
New Comment:
We would appreciate a patch in unified diff format.
Previous Comments:
------------------------------------------------------------------------
[2006-05-23 18:10:22] scott dot moynes+php at gmail dot com
In snmp.c, one cannot use the OIDSIZE macro for the
usmAES128PrivProtocol symbol because it is defined as a oid pointer to
usmAESPrivProtocol, not an oid array.
The fix is to change all OIDSIZE(usmAES128PrivProtocol) expressions to
USM_PRIV_PROTO_AES_LEN.
This is with net-snmp; not sure about ucd-snmp.
------------------------------------------------------------------------
[2006-05-23 17:53:18] scott dot moynes+php at gmail dot com
Description:
------------
A bug in the source of php-snmp causes use of AES privacy encryption
impossible.
Reproduce code:
---------------
//Assuming snmpd is configured appropriately for the user
$result = snmp3_walk("localhost", "user", "authPriv", "sha",
"passphrase", "AES", "passphrase", "system", 1000000, 10);
print_r($result);
Expected result:
----------------
//The output of the system OID
Array
(
[0] => STRING: Linux smoynes 2.6.11.4-21.10-smp #1 SMP Tue Nov 29
14:32:49 UTC 2005 i686
...
)
Actual result:
--------------
PHP Warning: %v%v(): An error occurred, quitting in aes_test.php on
line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37564&edit=1