Commit graph

471 commits

Author SHA1 Message Date
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
Dag-Erling Smørgrav
1a86caaf37
Merge pull request #16 from cryb-to/autoconf
Create a set of autoconf macros to handle Cryb components and dependencies.
2018-05-06 18:55:23 +02:00
Dag-Erling Smørgrav
4bf16e8ee2 Install our autoconf macros. 2018-05-06 17:38:45 +02:00
Dag-Erling Smørgrav
415f4170c6 Take advantage of the new autoconf macros. 2018-05-06 03:21:59 +02:00
Dag-Erling Smørgrav
dc8984d0a0 Create autoconf macros to automate component selection.
These macros are designed to work in concert with the AX_PKG_CONFIG macros.  It is now possible to disable any component, even if another depends on it, provided that it is already installed.  For enabled components, we define the same variables as AX_PKG_CONFIG would, so Makefiles don't need to know if a component they rely on is being built as part of this packge or if it was already installed.
2018-05-06 03:21:59 +02:00
Dag-Erling Smørgrav
e603e0bc2e Add support for version checks. 2018-05-06 03:21:59 +02:00
Dag-Erling Smørgrav
42e19ba158 Add .gitignore and remove an unused file. 2018-05-05 15:38:02 +02:00
Dag-Erling Smørgrav
fe064e41db Add missing dependency on cryb-rand for t_oath. 2018-05-05 15:37:55 +02:00
Dag-Erling Smørgrav
9be4ffc412 Make inter-library dependencies public. 2018-05-05 15:37:55 +02:00