@@ -1733,7 +1733,9 @@ PHP_METHOD(SNMP, setSecurity)
17331733{
17341734 php_snmp_object * snmp_object ;
17351735 zval * object = ZEND_THIS ;
1736- zend_string * a1 = NULL , * a2 = NULL , * a3 = NULL , * a4 = NULL , * a5 = NULL , * a6 = NULL , * a7 = NULL ;
1736+ zend_string * security_level = NULL , * auth_protocol = NULL , * auth_passphrase = NULL ;
1737+ zend_string * privacy_protocol = NULL , * privacy_passphrase = NULL ;
1738+ zend_string * context_name = NULL , * context_engine_id = NULL ;
17371739 uint32_t auth_protocol_arg_num = 2 ;
17381740 uint32_t context_engine_id_arg_num = 7 ;
17391741
@@ -1743,11 +1745,11 @@ PHP_METHOD(SNMP, setSecurity)
17431745 RETURN_THROWS ();
17441746 }
17451747
1746- if (zend_parse_parameters (ZEND_NUM_ARGS (), "S|SSSSSS" , & a1 , & a2 , & a3 , & a4 , & a5 , & a6 , & a7 ) == FAILURE ) {
1748+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "S|SSSSSS" , & security_level , & auth_protocol , & auth_passphrase , & privacy_protocol , & privacy_passphrase , & context_name , & context_engine_id ) == FAILURE ) {
17471749 RETURN_THROWS ();
17481750 }
17491751
1750- if (!snmp_session_set_security (snmp_object -> session , a1 , a2 , a3 , a4 , a5 , a6 , a7 , auth_protocol_arg_num , context_engine_id_arg_num )) {
1752+ if (!snmp_session_set_security (snmp_object -> session , security_level , auth_protocol , auth_passphrase , privacy_protocol , privacy_passphrase , context_name , context_engine_id , auth_protocol_arg_num , context_engine_id_arg_num )) {
17511753 /* An error has already been emitted, just bail out. */
17521754 RETURN_FALSE ;
17531755 }
0 commit comments