Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/sctp_os_bsd.h
Show First 20 Lines • Show All 439 Lines • ▼ Show 20 Lines | |||||
struct mbuf * | struct mbuf * | ||||
sctp_get_mbuf_for_msg(unsigned int space_needed, | sctp_get_mbuf_for_msg(unsigned int space_needed, | ||||
int want_header, int how, int allonebuf, int type); | int want_header, int how, int allonebuf, int type); | ||||
/* | /* | ||||
* SCTP AUTH | * SCTP AUTH | ||||
*/ | */ | ||||
#define SCTP_READ_RANDOM(buf, len) read_random(buf, len) | #define SCTP_READ_RANDOM(buf, len) arc4rand(buf, len, 0) | ||||
/* map standard crypto API names */ | /* map standard crypto API names */ | ||||
#define SCTP_SHA1_CTX SHA1_CTX | #define SCTP_SHA1_CTX SHA1_CTX | ||||
#define SCTP_SHA1_INIT SHA1Init | #define SCTP_SHA1_INIT SHA1Init | ||||
#define SCTP_SHA1_UPDATE SHA1Update | #define SCTP_SHA1_UPDATE SHA1Update | ||||
#define SCTP_SHA1_FINAL(x,y) SHA1Final((caddr_t)x, y) | #define SCTP_SHA1_FINAL(x,y) SHA1Final((caddr_t)x, y) | ||||
#define SCTP_SHA256_CTX SHA256_CTX | #define SCTP_SHA256_CTX SHA256_CTX | ||||
Show All 28 Lines |