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

Function sctp_print_key

freebsd/netinet/sctp_auth.c:265–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void
266sctp_print_key(sctp_key_t *key, const char *str)
267{
268 uint32_t i;
269
270 if (key == NULL) {
271 SCTP_PRINTF("%s: [Null key]\n", str);
272 return;
273 }
274 SCTP_PRINTF("%s: len %u, ", str, key->keylen);
275 if (key->keylen) {
276 for (i = 0; i < key->keylen; i++)
277 SCTP_PRINTF("%02x", key->key[i]);
278 SCTP_PRINTF("\n");
279 } else {
280 SCTP_PRINTF("[Null key]\n");
281 }
282}
283
284void
285sctp_show_key(sctp_key_t *key, const char *str)

Callers 2

sctp_fill_hmac_digest_mFunction · 0.85
sctp_handle_authFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected