Commit Graph

479 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav c62b2f9c1b
Merge pull request #22 from cryb-to/cirrus-ci
Switch from Travis to Cirrus CI
2022-10-02 19:50:51 +02:00
Dag-Erling Smørgrav da870efaac Ignore distfiles. 2022-10-02 19:42:11 +02:00
Dag-Erling Smørgrav 010323a520 AM_CONFIG_HEADER is now AC_CONFIG_HEADERS. 2022-10-02 19:42:00 +02:00
Dag-Erling Smørgrav 4f8c337f00 Ensure that ssize_t is present. 2022-10-02 19:42:00 +02:00
Dag-Erling Smørgrav 214cc900bc Avoid empty format strings. 2022-10-02 19:42:00 +02:00
Dag-Erling Smørgrav 46f6ade72a Remove _BSD_SOURCE.
It is no longer needed (autoconf should take care of it) and harmful on some recent Linux distributions.
2022-10-02 19:42:00 +02:00
Dag-Erling Smørgrav 0b9ee39e23 Switch to Cirrus CI. 2022-10-02 19:42:00 +02:00
Dag-Erling Smørgrav 724d00a6e2 Bump version. 2022-10-02 19:41:32 +02:00
Dag-Erling Smørgrav 48f7ef327d Revert "Merge counter and lastused."
This reverts commit 4d76b664d2.
2022-10-02 16:15:28 +02:00
Dag-Erling Smørgrav 62dfa73532
Merge pull request #21 from cryb-to/cryb-test-zero
Add zero predicates.
2022-10-02 16:02:35 +02:00
Dag-Erling Smørgrav b5a705fab4 Add t_compare_ch(). 2022-09-16 11:11:08 +02:00
Dag-Erling Smørgrav d014682206 Add t_is_zero predicates. 2022-09-16 11:09:55 +02:00
Dag-Erling Smørgrav 7885f54152 Catch up with toolchain changes. 2022-09-16 11:09:43 +02:00
Dag-Erling Smørgrav 96a5cef4ba
Merge pull request #20 from cryb-to/cryb-hash-fnv
Implement the Fowler-No-Voll hash functions.
2022-09-16 11:08:35 +02:00
Dag-Erling Smørgrav 1af982f951 Documentation improvements. 2022-05-15 18:30:03 +02:00
Dag-Erling Smørgrav 8ab9839cc2 Implement Fowler-No-Voll. 2022-05-15 18:27:01 +02:00
Dag-Erling Smørgrav 6d8a39589f Catch up with OpenSSL API changes. 2021-10-20 13:06:40 +02:00
Dag-Erling Smørgrav b915055c2b Remove obsolete setprops script. 2021-10-20 13:06:24 +02:00
Dag-Erling Smørgrav d6886e2230 New alpha release. 2019-03-26 12:28:13 +01:00
Dag-Erling Smørgrav 66eb8315d0 Bump version. 2019-03-26 12:03:08 +01:00
Dag-Erling Smørgrav 111446260f Bump copyright. 2019-03-26 12:02:04 +01:00
Dag-Erling Smørgrav ca82fe9e4d
Merge pull request #19 from cryb-to/cryb-test
Fix double-NULL case.
2019-02-22 14:36:03 +02:00
Dag-Erling Smørgrav 52364cd8d9 Fix double-NULL case.
Fix null pointer dereference in t_compare_mem() and t_compare_str() when both the expected value and the received value are NULL.
2019-02-20 14:07:47 +01:00
Dag-Erling Smørgrav c31fe69263 Sort .gitignore, rm obsolete entry. 2018-12-02 18:31:24 +01:00
Dag-Erling Smørgrav d87c1864bc Bump a few copyright dates. 2018-11-17 17:17:07 +01:00
Dag-Erling Smørgrav 96704ea4a2
Merge pull request #18 from cryb-to/bitwise
Fix ffs() / fls() and add unit tests.
2018-11-17 17:43:51 +02:00
Dag-Erling Smørgrav b32175d625 Fix our ffs() / fls() and add unit tests. 2018-11-17 16:37:22 +01:00
Dag-Erling Smørgrav 332c7bd54c Clean up a little. 2018-11-17 16:36:44 +01:00
Dag-Erling Smørgrav d8a72285f7 Rename some files. 2018-11-17 16:35:49 +01:00
Dag-Erling Smørgrav 53885159e0 New alpha release. 2018-11-15 19:07:10 +01:00
Dag-Erling Smørgrav 0ce844d8a5 Bump version. 2018-11-15 18:35:51 +01:00
Dag-Erling Smørgrav 11a5c9c587 Belatedly bump copyright dates. 2018-11-15 18:35:01 +01:00
Dag-Erling Smørgrav 4d76b664d2 Merge counter and lastused.
To prevent replay attacks, HOTP uses a counter, while TOTP keeps track of the time the key was last used.  Since these values have the same type and are never used at the same time, merge them into an anonymous union.
2018-11-15 18:35:01 +01:00
Dag-Erling Smørgrav a439adc68f Differentiate between provider and consumer.
Introduce a new macro, CRYB_I_AM, which replaces CRYB_INIT for projects that provide Cryb components or extensions.  Currently, the main difference is that they are not required to have the exact same PACKAGE_VERSION as the Cryb version that they use.
2018-11-15 18:34:57 +01:00
Dag-Erling Smørgrav 47547534d7 Switch Travis to Xenial. 2018-11-15 18:08:25 +01:00
Dag-Erling Smørgrav c4e1eaa820 Add my copyright. 2018-11-14 13:16:01 +01:00
Dag-Erling Smørgrav 04a7104126 New alpha release. 2018-05-13 16:40:29 +02:00
Dag-Erling Smørgrav 20b8f7528b Bump version. 2018-05-13 16:37:46 +02:00
Dag-Erling Smørgrav 323197908d Continue to refine our build system.
Most importantly, differentiate between library and non-library components.  The former can be provided and required, and if provided but disabled, can be replaced by pre-installed versions.  The latter can only be provided and cannot be the target of a dependency relationship.
2018-05-13 00:24:38 +02:00
Dag-Erling Smørgrav 85bf898826 Don't invoke pkg-config unnecessarily.
Previously, we always invoked AX_PKG_CONFIG_CHECK() for a disabled component (i.e. a component which we provide but which was disabled on the configure command line).  This is both excessive (because we only need to run this check for components that will be needed during the build) and insufficient (because we also need to run it for components from other Cryb projects).
2018-05-11 18:21:26 +02:00
Dag-Erling Smørgrav 68809ea833 Add a CRYB_VERBOSE environment variable. 2018-05-11 17:41:54 +02:00
Dag-Erling Smørgrav bfbd8da63a Bump version. 2018-05-06 20:55:20 +02:00
Dag-Erling Smørgrav d53673deee
Merge pull request #17 from cryb-to/memsafe
Improved memory-safe functions
2018-05-06 20:08:34 +02:00
Dag-Erling Smørgrav cdd29a0700 If we're going to have a sentinel, we may as well have fun with it. 2018-05-06 19:21:00 +02:00
Dag-Erling Smørgrav 354759a9f2 Further improvements to memcpy_s(), memset_s(), and their man pages. 2018-05-06 19:12:51 +02:00
Dag-Erling Smørgrav a1bf5e87f0 Implement rsize_t / RSIZE_MAX (almost) correctly.
The caveat is needed because if you include one of these headers on a system that defines rsize_t without having the correct incantations in your configure.ac, you are going to have a bad time.  But there is no good general solution to the problem.
2018-05-06 19:12:51 +02:00
Dag-Erling Smørgrav 56bd595396 Modernize. 2018-05-06 19:12:51 +02:00
Dag-Erling Smørgrav d6e82b474f Add man pages for memset_s(3) and memcpy_s(3) 2018-05-06 19:12:51 +02:00
Dag-Erling Smørgrav c73fd34d97 Implement a memcpy_s() equivalent. 2018-05-06 19:12:51 +02:00
Dag-Erling Smørgrav bf624acec1 Tweak memset_s() and its unit tests, mostly renaming variables. 2018-05-06 19:12:51 +02:00