// Callouts that use the context
int pkt4_receive(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
:
:
int pkt4_send(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
:
:
// destroyed.
int context_destroy(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
// Delete the pointed-to memory.