-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add m_hash_crypt module #246
Open
Elizafox
wants to merge
10
commits into
inspircd:master
Choose a base branch
from
Elizafox:hash-crypt
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Nov 28, 2020
-
This is a crypt(3)-based hash function for compatibility with Unix crypt and other IRC daemons that use it. This relies on the system crypt which may unfortunately be deficient, hence there are ugly ifdef's.
Configuration menu - View commit details
-
Copy full SHA for fcae848 - Browse repository at this point
Copy the full SHA fcae848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4df2202 - Browse repository at this point
Copy the full SHA 4df2202View commit details -
Add a rather crappy heuristic test for libcrypt
Turns out that you can't depend on pkg-config just picking up -lcrypt everywhere. It doesn't work on my Debian box for example.
Configuration menu - View commit details
-
Copy full SHA for ec166f8 - Browse repository at this point
Copy the full SHA ec166f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d66ef4b - Browse repository at this point
Copy the full SHA d66ef4bView commit details -
Make hack in m_hash_crypt a lot less hacky.
Basically, we know that linux, freebsd, and netbsd require -lcrypt. openbsd and darwin don't (and the build will fail on at least macos if we add that flag). So, add the known systems to the LinkerFlags and go on our merry way. The reason we can't use pkg-config is because libcrypt-dev is not widely available yet (Debian stale notably does not have it) and operating systems like FreeBSD are unlikely to really ever have it.
Configuration menu - View commit details
-
Copy full SHA for 1b3aa88 - Browse repository at this point
Copy the full SHA 1b3aa88View commit details -
Remove explicit support for md5, blowfish, and DES
These are insecure and should not be generated. crypt-generic is introduced instead, for access to the system crypt directly. This shouldn't be used to generate passwords, but can be used for password checking.
Configuration menu - View commit details
-
Copy full SHA for 6696dcb - Browse repository at this point
Copy the full SHA 6696dcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fda1ee - Browse repository at this point
Copy the full SHA 2fda1eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4455a07 - Browse repository at this point
Copy the full SHA 4455a07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 404d451 - Browse repository at this point
Copy the full SHA 404d451View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3d7458 - Browse repository at this point
Copy the full SHA b3d7458View commit details
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.