Nikita Popov
8a8c8d4d6a
Enforce min/max rounds in sha256/sha512 crypt
...
This brings our implementation in line with glibc behavior.
2020-06-24 12:41:56 +02:00
Peter Kokot
d3ca28f569
Remove HAVE_STRING_H
...
The C89 standard and later defines the `<string.h>` header as part of
the standard headers [1] and on current systems it is always present.
Code included also `<strings.h>` header as an alterinative in some
files. This kind of check was relevant on some older systems where the
`<strings.h>` file included definitions for the C89 compliant
`<string.h>`. Today such alternative check is not required anymore. The
`<strings.h>` file is part of the POSIX definition these days.
Also Autoconf suggests doing this and relying on C89 or above [2] and [3].
This patch also cleans few unused `<strings.h>` inclusions in the libmbfl.
[1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
[3]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
2018-09-18 05:32:08 +02:00
Anatol Belski
cd8d56102f
Reuse new alignment macros
2018-03-19 14:38:41 +01:00
Xinchen Hui
4bebcb84ad
Fixed condition check
2017-04-10 14:47:24 +08:00
Anatol Belski
7104d88c35
fix thread safety
2015-07-29 10:36:28 +02:00
Anatol Belski
b80853d942
fix datatype mismatches
2014-10-22 20:46:29 +02:00
Anatol Belski
763bfb4f3b
refixed printf fmt, used portable macros
2014-09-20 15:46:19 +02:00
Anatol Belski
4d60f23630
fix printf format
2014-09-19 08:44:35 +02:00
Anatol Belski
c45f4f5461
generalized the case with secure memory zeroing
2014-09-19 01:46:14 +02:00
Anatol Belski
4722d85c1e
zero sensitive data more secure way
2014-09-19 00:06:38 +02:00
Anatol Belski
4d997f63d9
master renames phase 3
2014-08-25 20:22:49 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
90d6f60bc1
mostly fixes to spl, but also some other
2014-08-17 13:31:39 +02:00
Michael Wallner
14caf174ff
unify stdint type usage
...
if you need C99 stdint types, just include "php_stdint.h"
2013-08-06 22:49:56 +02:00
Stanislav Malyshev
d868c71617
fix salt truncation bug in sha256
2011-07-31 21:47:03 +00:00
Ilia Alshanetsky
3c82aab151
Fixed bug relating to un-initialized memory access
2011-07-05 20:10:45 +00:00
Kalle Sommer Nielsen
cb50011016
Fixed compiler warnings in the standard library
2010-09-23 03:45:36 +00:00
Pierre Joye
0aef5f020b
- drop comment
2010-06-14 09:15:20 +00:00
Johannes Schlüter
f732d74f6b
Detect if we can rely on compiler-specific alignment features else use custom
...
workarounds. Fixes #50753
2010-02-09 21:58:13 +00:00
Pierre Joye
9583994828
- fix build
2010-01-14 19:44:54 +00:00
David Soria Parra
33fc7d77d7
Fixes #50496 . Drop stdbool.h dependency as it requires _STDC_C99 set on some systems.
2010-01-11 16:22:12 +00:00
Pierre Joye
a2cf15fcc6
- #50334 , add sha support for VC6 too, not merged in trunk as we don't support vc6 there
2009-12-11 16:07:57 +00:00
Pierre Joye
560ed89bfb
- #50334 , use our own implementations of stpncpy and mempcy, avoiding weird behaviors on certain platforms like solaris
2009-12-11 15:57:01 +00:00
Pierre Joye
8d58b31495
- #50334 , fix build for platform without endian.h (like solaris)
2009-12-09 17:40:19 +00:00
Pierre Joye
9001b4036a
- #50334 , crypt ignores sha512 and add support for sha256/512 to php's crypt [DOC]
2009-12-09 00:20:14 +00:00