diff options
author | foobar <sniper@php.net> | 2006-07-26 23:57:43 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2006-07-26 23:57:43 +0000 |
commit | 67a82e5106ec1602e3c30be094554965e9b1fcad (patch) | |
tree | 3a28280dd5cb932f9bd5a276442dc800686df1ea | |
parent | a7768dd36f1c35955ca1ef31cd5c2248558283f8 (diff) | |
download | php-git-67a82e5106ec1602e3c30be094554965e9b1fcad.tar.gz |
MFH: - Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 compatibility issue)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/snmp/snmp.c | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -21,6 +21,8 @@ PHP NEWS itself). (Ilia) - Fixed bug #38132 (ReflectionClass::getStaticProperties() retains \0 in key names). (Ilia) +- Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 + compatibility issue). (Jani, patch by scott dot moynes+php at gmail dot com) 24 Jul 2006, PHP 5.2.0RC1 - Updated bundled MySQL client library to version 5.0.22 in the Windows diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 4964890722..e0568cec18 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -834,10 +834,14 @@ static int netsnmp_session_set_sec_protocol(struct snmp_session *s, char *prot T * * As we want this extension to compile on both versions, we use the latter * symbol on purpose, as it's defined to be the same as the former. +* +* However, in 5.2 the type of usmAES128PrivProtocol is a pointer, not an +* array, so we cannot use the OIDSIZE macro because it uses sizeof(). +* */ || !strcasecmp(prot, "AES")) { s->securityPrivProto = usmAES128PrivProtocol; - s->securityPrivProtoLen = OIDSIZE(usmAES128PrivProtocol); + s->securityPrivProtoLen = USM_PRIV_PROTO_AES128_LEN; return (0); #else ) { |