This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
bjoernricks
commented
Jul 30, 2019
- add type hints
- cleanup OSPDaemon class
- Improve OSPDaemon initalization (add init method)
Debug the osp command which is going to be processed.
Extract initalizing the logging into an own function. Initialize logging before the daemon is started. Create server class depending on the parsed arguments. Don't convert common args. Instead use Namespace object from argparser directly.
* Use print function again to add newlines automatically * Reformat version outputs * Move copyright info into a module variable
Display version switch info as second item if help is displayed.
The init method will be called before the check and run methods. So the new call flow is -> constructor (__init__) -> init -> check -> run The init method can be used to move expensive intialization code (like loading nvts) out of the constructor.
Imho wrapper is a bad name for a specific OSPDaemon instance.
The OSPDaemon, arguments parsing and main function have changed a lot. Therefore indicate the changes with an incremented version number.
Add ca cert validation function to server module and check passed ca cert file.
The files need to validated at the code where they are used too.
* don't log errors to stderr * update to new parser behavior
jjnicola
approved these changes
Jul 30, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.