| 792 | } |
| 793 | |
| 794 | void |
| 795 | sctp_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 | |
| 813 | uint32_t |
| 814 | sctp_get_auth_chunk_len(uint16_t hmac_algo) |
no test coverage detected