-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
[RFC]: Add Argon2 to password_* #1997
Changes from 10 commits
de85c2e
3c7fb71
c2551a7
0a1274f
deba2b4
1bc3818
bcfccdd
9f37be5
d398657
f4aa3a4
9bedcb7
1c954c9
9872208
ab837a6
0d4d8ea
d883f65
0e3b3b0
35a74b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
// vim:ft=javascript | ||
// $Id$ | ||
|
||
ARG_WITH("argon2", "Argon2 support", "no"); | ||
|
||
if (PHP_ARGON2 != "no") { | ||
if (CHECK_LIB("Argon2Ref.lib", "argon2", PHP_ARGON2) | ||
&& CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS_ARGON2")) { | ||
AC_DEFINE('HAVE_ARGON2LIB', 1); | ||
EXTENSION("argon2", null, false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look right, simply drop the call to EXTENSION() here and leave the AC_DEFINE(). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was getting linker errors without the call to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi! It's been a while since I was tinkering around with this, but from vague memory this is how it works: CHECK_LIB':
CHECK_HEADER_ADD_INCLUDE
TL;DR: which should allow you to drop the EXTENSION() call. (bear in mind I'm rusty, but else poke around the sources in win32\build)! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi! Thanks for pointing me in the right direction! I really appreciate it. It looks like the trick is to set the second arguement of Thanks again! |
||
} else { | ||
WARNING("Argon2 not enabled; libaries and headers not found"); | ||
} | ||
} | ||
|
||
ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", ""); | ||
|
||
AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be $ARGON2_DIR/$PHP_LIBDIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing.