Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.24
>
php-7.0.24
> php7-fix_net-snmp_disable_MD5.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php7-fix_net-snmp_disable_MD5.patch of Package php-7.0.24
Index: ext/snmp/snmp.c =================================================================== --- ext/snmp/snmp.c.orig 2015-09-08 12:33:18.057282498 +0200 +++ ext/snmp/snmp.c 2015-09-08 12:35:01.717693824 +0200 @@ -1256,14 +1256,17 @@ Set the authentication protocol in the snmpv3 session */ static int netsnmp_session_set_auth_protocol(struct snmp_session *s, char *prot) { +#ifndef DISABLE_MD5 if (!strcasecmp(prot, "MD5")) { s->securityAuthProto = usmHMACMD5AuthProtocol; s->securityAuthProtoLen = USM_AUTH_PROTO_MD5_LEN; - } else if (!strcasecmp(prot, "SHA")) { + } else +#endif + if (!strcasecmp(prot, "SHA")) { s->securityAuthProto = usmHMACSHA1AuthProtocol; s->securityAuthProtoLen = USM_AUTH_PROTO_SHA_LEN; } else { - php_error_docref(NULL, E_WARNING, "Unknown authentication protocol '%s'", prot); + php_error_docref(NULL, E_WARNING, "Unknown or unsupported authentication protocol '%s'", prot); return (-1); } return (0);