Page MenuHomeFreeBSD

Split logic to create new sessions into a separate function.
ClosedPublic

Authored by jhb on Nov 2 2020, 8:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 5 2025, 8:44 PM
Unknown Object (File)
Nov 23 2025, 7:20 AM
Unknown Object (File)
Nov 21 2025, 12:59 AM
Unknown Object (File)
Nov 21 2025, 12:59 AM
Unknown Object (File)
Nov 21 2025, 12:55 AM
Unknown Object (File)
Nov 21 2025, 12:52 AM
Unknown Object (File)
Nov 10 2025, 3:37 AM
Unknown Object (File)
Nov 7 2025, 5:58 AM
Subscribers

Details

Summary

This simplifies cryptof_ioctl as it now a wrapper around functions that
contain the bulk of the per-ioctl logic.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 34583
Build 31674: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 2 2020, 8:50 PM
jhb created this revision.
markj added inline comments.
sys/opencrypto/cryptodev.c
431

At times I've wanted a CRYPTO_NULL or so for this case.

716

Is it worth keeping ARGSUSED and similar linter annotations? I usually delete them when I come across them.

This revision is now accepted and ready to land.Nov 2 2020, 10:09 PM
sys/opencrypto/cryptodev.c
431

Yeah. Unfortunately, CRYPTO_NULL_HMAC and CRYPTO_NULL_CBC get in the way. Really we should kill those though. I feel like IPsec, etc. should handle "null" ciphers explicitly. NULL_HMAC is especially egregious as it writes out a 96-bit zero hash that is IPsec-specific.

716

Hmm, probably not. I'll kill them in things I move.

jhb marked an inline comment as done.Nov 6 2020, 12:15 AM

Trimmed ARGSUSED in the followup commit that moves the function.