From 5f26901cb1d06d6093c5f57ea4b9d7533a9784bd Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sun, 23 Apr 2000 05:01:54 +0000 Subject: Change the type of freesession to take u_int64_t as argument. --- sys/crypto/cryptosoft.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/crypto/cryptosoft.c') diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 87e5909160a..f68b811aa70 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -564,11 +564,12 @@ swcr_newsession(u_int32_t *sid, struct cryptoini *cri) * Free a session. */ int -swcr_freesession(u_int32_t sid) +swcr_freesession(u_int64_t tid) { struct swcr_data *swd; struct enc_xform *txf; struct auth_hash *axf; + u_int32_t sid = (tid >> 31) & 0xffff; if ((sid > swcr_sesnum) || (swcr_sessions == NULL) || (swcr_sessions[sid] == NULL)) -- cgit v1.2.3