Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Remove unnecessary casts #82

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pprindeville
Copy link
Collaborator

Unnecessary casts are a blight in that they mask possible programming
errors. We shouldn't use them where they aren't required.

Also, add a convenience function to convert a header pointer to a
body pointer by adding the correct offset.

@pprindeville
Copy link
Collaborator Author

This should go in after PR #72 but before PR #78.

Derive the authentication type from tac_login string
It's precursory to separate marshalling functions from I/O if
event-driven I/O is to be done, or if multiple Tacacs+ sessions
can be active at the same time (you don't want to be polling on
one socket and miss a timeout on another).
If you're connecting to multiple servers simultaneously, then
per-server parameters can't be globals.  Move them into a
session container.

Note: this obviously has API and ABI compatibility implications.
As this is obviously related to the session.
Unnecessary casts are a blight in that they mask possible programming
errors.  We shouldn't use them where they aren't required.

Also, add a convenience function to convert a header pointer to a
body pointer by adding the correct offset.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant