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

Function sctp_alloc_sharedkey

freebsd/netinet/sctp_auth.c:456–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456sctp_sharedkey_t *
457sctp_alloc_sharedkey(void)
458{
459 sctp_sharedkey_t *new_key;
460
461 SCTP_MALLOC(new_key, sctp_sharedkey_t *, sizeof(*new_key),
462 SCTP_M_AUTH_KY);
463 if (new_key == NULL) {
464 /* out of memory */
465 return (NULL);
466 }
467 new_key->keyid = 0;
468 new_key->key = NULL;
469 new_key->refcount = 1;
470 new_key->deactivated = 0;
471 return (new_key);
472}
473
474void
475sctp_free_sharedkey(sctp_sharedkey_t *skey)

Callers 3

sctp_setoptFunction · 0.85
sctp_inpcb_allocFunction · 0.85
sctp_copy_sharedkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected