ID: 37564 User updated by: scott dot moynes+php at gmail dot com Reported By: scott dot moynes+php at gmail dot com Status: Open Bug Type: SNMP related PHP Version: 5.1.4 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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