INNER CODE UNIT · C

agent

wolfSSL/wolfssh · src/agent.c:1577

    agent = (WOLFSSH_AGENT_CTX*)WMALLOC(sizeof(*agent), heap, DYNTYPE_AGENT);
    agent = AgentInit(agent, heap);

    WLOG(WS_LOG_AGENT, "Leaving wolfSSH_AGENT_new(), agent = %p", agent);
    return agent;
}


void wolfSSH_AGENT_free(WOLFSSH_AGENT_CTX* agent)
{
    void* heap = NULL;

    WLOG(WS_LOG_AGENT, "Entering wolfSSH_AGENT_free()");

    if (agent != NULL) {
        heap = agent->heap;
        if (agent->msg != NULL)
            WFREE(agent->msg, agent->heap, DYNTYPE_AGENT_BUFFER);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…