Blame include/net-snmp/pdu_api.h.sec-memory-leak

Packit 80f9c6
#ifndef NET_SNMP_PDU_API_H
Packit 80f9c6
#define NET_SNMP_PDU_API_H
Packit 80f9c6
Packit 80f9c6
    /**
Packit 80f9c6
     *  Library API routines concerned with SNMP PDUs.
Packit 80f9c6
     */
Packit 80f9c6
Packit 80f9c6
#include <net-snmp/types.h>
Packit 80f9c6
Packit 80f9c6
#ifdef __cplusplus
Packit 80f9c6
extern          "C" {
Packit 80f9c6
#endif
Packit 80f9c6
Packit 80f9c6
NETSNMP_IMPORT
Packit 80f9c6
netsnmp_pdu    *snmp_pdu_create(int type);
Packit 80f9c6
NETSNMP_IMPORT
Packit 80f9c6
netsnmp_pdu    *snmp_clone_pdu(netsnmp_pdu *pdu);
Packit 80f9c6
NETSNMP_IMPORT
Packit 80f9c6
netsnmp_pdu    *snmp_fix_pdu(  netsnmp_pdu *pdu, int idx);
Packit 80f9c6
NETSNMP_IMPORT
Packit 80f9c6
void            snmp_free_pdu( netsnmp_pdu *pdu);
Packit 80f9c6
NETSNMP_IMPORT
Packit 80f9c6
void            snmp_free_securityStateRef( netsnmp_pdu *pdu);
Packit 80f9c6
Packit 80f9c6
#ifdef __cplusplus
Packit 80f9c6
}
Packit 80f9c6
#endif
Packit 80f9c6
Packit 80f9c6
    /*
Packit 80f9c6
     *    Having extracted the main ("public API") calls relevant
Packit 80f9c6
     *  to this area of the Net-SNMP project, the next step is to
Packit 80f9c6
     *  identify the related "public internal API" routines.
Packit 80f9c6
     *
Packit 80f9c6
     *    In due course, these should probably be gathered
Packit 80f9c6
     *  together into a companion 'library/pdu_api.h' header file.
Packit 80f9c6
     *  [Or some suitable name]
Packit 80f9c6
     *
Packit 80f9c6
     *    But for the time being, the expectation is that the
Packit 80f9c6
     *  traditional headers that provided the above definitions
Packit 80f9c6
     *  will probably also cover the relevant internal API calls.
Packit 80f9c6
     *  Hence they are listed here:
Packit 80f9c6
     */
Packit 80f9c6
Packit 80f9c6
#include <net-snmp/library/snmp_api.h>
Packit 80f9c6
#include <net-snmp/library/snmp_client.h>
Packit 80f9c6
#include <net-snmp/library/asn1.h>
Packit 80f9c6
Packit 80f9c6
#endif                          /* NET_SNMP_PDU_API_H */