MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_free_authinfo

Function sctp_free_authinfo

freebsd/netinet/sctp_auth.c:794–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void
795sctp_free_authinfo(sctp_authinfo_t *authinfo)
796{
797 if (authinfo == NULL)
798 return;
799
800 if (authinfo->random != NULL)
801 sctp_free_key(authinfo->random);
802 if (authinfo->peer_random != NULL)
803 sctp_free_key(authinfo->peer_random);
804 if (authinfo->assoc_key != NULL)
805 sctp_free_key(authinfo->assoc_key);
806 if (authinfo->recv_key != NULL)
807 sctp_free_key(authinfo->recv_key);
808
809 /* We are NOT dynamically allocating authinfo's right now... */
810 /* SCTP_FREE(authinfo, SCTP_M_AUTH_??); */
811}
812
813uint32_t
814sctp_get_auth_chunk_len(uint16_t hmac_algo)

Callers 1

sctp_free_assocFunction · 0.85

Calls 1

sctp_free_keyFunction · 0.85

Tested by

no test coverage detected