Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:13ilya:php73
php73
php7-NETSNMP_DISABLE_DES.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php7-NETSNMP_DISABLE_DES.patch of Package php73
diff -Pdpru php-7.3.33.orig/ext/snmp/snmp.c php-7.3.33/ext/snmp/snmp.c --- php-7.3.33.orig/ext/snmp/snmp.c 2021-11-16 14:18:30.000000000 +0300 +++ php-7.3.33/ext/snmp/snmp.c 2023-01-13 13:30:05.207900838 +0300 @@ -1229,19 +1229,22 @@ static int netsnmp_session_set_auth_prot Set the security protocol in the snmpv3 session */ static int netsnmp_session_set_sec_protocol(struct snmp_session *s, char *prot) { +#ifndef NETSNMP_DISABLE_DES if (!strcasecmp(prot, "DES")) { s->securityPrivProto = usmDESPrivProtocol; s->securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN; + return (0); + } +#endif #ifdef HAVE_AES - } else if (!strcasecmp(prot, "AES128") || !strcasecmp(prot, "AES")) { + if (!strcasecmp(prot, "AES128") || !strcasecmp(prot, "AES")) { s->securityPrivProto = usmAESPrivProtocol; s->securityPrivProtoLen = USM_PRIV_PROTO_AES_LEN; -#endif - } else { - php_error_docref(NULL, E_WARNING, "Unknown security protocol '%s'", prot); - return (-1); + return (0); } - return (0); +#endif + php_error_docref(NULL, E_WARNING, "Unknown security protocol '%s'", prot); + return (-1); } /* }}} */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor