* Allocate Net-SNMP securityAuthProto dynamically
The Net-SNMP securityAuthProto session member is freed when a session is
closed. Hence, any pointers stored in this session member must be allocated
dynamically.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
* Prepare for Net-SNMP 5.10
Net-SNMP commit 2f2240513138 ("libsnmp: Enable type checking for session
pointers") changed the return type of snmp_sess_open() and several other
functions from void * into struct session_list *. This commit is not in
release 5.9 but will be included in the upcoming Net-SNMP release 5.10.
Prepare for the Net-SNMP 5.10 release by making the SNMPSession::session_ptr
type identical to the Net-SNMP snmp_sess_open() return type.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---------
Signed-off-by: Bart Van Assche <bvanassche@acm.org>