Skip to content

Lambda-ify auth server vault callbacks #1703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

dgelessus
Copy link
Contributor

Follow-up to #1539, part 3. This one is a bit bigger, but it makes the low-level vault code much easier to follow - so many helper structs and functions can be condensed into inline lambdas that are just a few lines long.

This intentionally only covers the low-level NetCliAuthVault functions. The high-level vault API still uses C-style function pointers for now - I'll convert that separately later, because I expect that to be a similar amount of effort.

Small detail: some of the NetCliAuthVault functions accepted nullptr if the caller doesn't need a callback, but others didn't. For consistency, I made all of the callbacks required now. If a caller really doesn't need a callback, it's easy to explicitly pass an empty lambda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant