summaryrefslogtreecommitdiffstats
path: root/src/lib/cryptolink (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [1442] split -L and -l and add botan ldflags firstJelte Jansen2011-12-012-1/+2
| | | | our debian test system has old botan libs in the library path used for gtest, making it fail with unknown algorithm errors unless botan is specified first
* [1442] rename log4cplus and botan make varsJelte Jansen2011-11-302-3/+3
| | | | and put them in the correct place
* [trac1286] change check_PROGRAMS to noinst_PROGRAMSJeremy C. Reed2011-10-111-1/+1
| | | | | | | | | | | | | | And for check_LTLIBRARIES to noinst_LTLIBRARIES too. This is so a regular "make" will build the test programs and libraries too. So the "make check" will just run the tests (and not build them). This is to help with test-driven development. This reverses some from #1091, plus does the rest too. Note that doing a "make check" before a "make" does not currently work due to dependencies depending on each other (e.g. python/isc/log tests needs datasrc but python/isc/datasrc tests need log_config_update).
* [trac1091] don't install the unittest librariesJeremy C. Reed2011-10-061-1/+1
| | | | | | and while here also only build when the "make check" target is used; since we already require --with-gtest maybe this step is not of much interest.
* [trac954] small libdep addition to src/lib/cryptolink/tests/Makefile.amJelte Jansen2011-06-011-0/+1
|
* [trac954] added a sanity check on the size of test data as suggested in review.JINMEI Tatuya2011-05-311-0/+4
|
* [trac954] re-apply the proposed diff, temporarily disabling truncation testJINMEI Tatuya2011-05-311-286/+136
| | | | cases (which currently fail due to other problem)
* Merge branch 'trac951'Jelte Jansen2011-05-303-5/+5
|\
| * [trac951] added a clarification comment on "truncation" to preventJINMEI Tatuya2011-05-271-3/+3
| | | | | | | | accidental remove like this.
| * [trac951] Revert "[trac951] we do have truncation support (at least in the ↵JINMEI Tatuya2011-05-272-3/+11
| | | | | | | | | | | | | | | | | | api), so remove check and enable tests" This reverts commit 76ae47d1f6061a09f4a8e20852a9874ea28a4e19. We cannot yet remove the additional check and re-enable the corresponding tests. See my comment on ticket #951.
| * [trac951] we do have truncation support (at least in the api), so remove ↵Jelte Jansen2011-05-232-11/+3
| | | | | | | | check and enable tests
| * [trac951] workaround for debian build problemJelte Jansen2011-05-232-2/+2
| | | | | | | | also added an extra test to libdns's tsig-unittests that uses one of the algorithms causing the problem, to trigger it outside of libcryptolink itself
* | [master] make signHMAC match headerJeremy C. Reed2011-05-241-1/+1
| | | | | | | | | | | | | | | | | | use "const" for second parameter (const size_t data_len). This was noticed by Undefined symbol when linking when compiling using Sunstudio. Okayed on jabber.
* | [trac542] Merge branch 'master' into trac542Stephen Morris2011-05-243-72/+365
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Makefile.am src/lib/config/tests/Makefile.am src/lib/config/tests/run_unittests.cc src/lib/datasrc/tests/Makefile.am src/lib/nsas/tests/Makefile.am src/lib/nsas/tests/run_unittests.cc src/lib/server_common/tests/Makefile.am src/lib/util/Makefile.am
| * [master] temporarily disabled the HMAC_SHA224_RFC4231_SIGN test due to #951JINMEI Tatuya2011-05-211-1/+1
| | | | | | | | agreed on jabber.
| * [master] corrected the what() string when throwing UnsupportedAlgorithm fromJINMEI Tatuya2011-05-201-1/+2
| | | | | | | | | | the HMACImpl constructor. okayed on jabber, directly pushing.
| * [trac782] add optional hmac algorithm supportfeng2011-05-203-34/+284
| |\
| | * [trac782] set the unknown hash algorithm enum value to 0, avoid that each ↵feng2011-05-121-8/+8
| | | | | | | | | | | | time we add new alogirthm, we have to modify the it since it is the last one
| | * [trac782] add changelog for trac782, refine the unit test codefeng2011-05-111-196/+171
| | |
| | * [trac782] add optional algorithm like sha224/sha384/sha512hanfeng2011-05-103-1/+234
| | |
| * | [trac936] always fail on secret_len == 0Jelte Jansen2011-05-181-4/+2
| | |
| * | [trac936] addressed some commentsJelte Jansen2011-05-181-4/+2
| | |
| * | [trac936] use botan-provided version macroJelte Jansen2011-05-181-14/+11
| | | | | | | | | | | | turns out botan had a check for exactly this, so we don't need to reinvent our own
| * | [trac936] check for botan API version, and use appropriate calls in cryptolinkJelte Jansen2011-05-181-1/+33
| | | | | | | | | | | | | | | Added separate checks for compatibility with 1.8 and 1.9, see configure.ac cryptolink now has 3 special cases depending on version
| * | [trac893] make sure verify() immediately rejects shorter sigs (calling same_memJINMEI Tatuya2011-05-091-1/+1
| | | | | | | | | | | | | | | with a longer length was wrong, even though it normally wouldn't cause visible disruption and would return the expected result).
| * | [trac893] temporarily disabled hmac tests using truncation due to change a64f778JINMEI Tatuya2011-05-061-36/+44
| | |
| * | [trac893] temporary change for short signatures: modify cryptolink to rejectJINMEI Tatuya2011-05-061-0/+9
| | | | | | | | | | | | | | | | | | | | | the case of output_len != sig_len. Until we implement RFC4635 truncation consideration won't work correctly (and could dangerously accept very short sigs). Since the truncation support is not so urgent, it would be better to defer to it a seprate later task.
| * | [trac890] re-added BOTAN_RPATH to cryptolink/Makefile.am.JINMEI Tatuya2011-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | according to the libtool manual, http://www.gnu.org/software/libtool/manual/html_node/Link-mode.html the intent seems to propagate -R from a library's dependency_libs to the program that uses the library. On our systems libtool doesn't do this propagation and we needed the global rpath, but if the documentation is correct, there may be a version of libtool that works.
| * | [trac890] proposed workaround fix to the botan rpath problem: specify theJINMEI Tatuya2011-05-021-1/+1
| |/ | | | | | | | | | | rpath in the global LDFLAGS. also remove BOTAN_RPATH from libcryptolink/Makefile.am (which is not part of fix, but is simply unnecessary)
* | [trac542] Add libexceptions to Makefile.amStephen Morris2011-05-111-0/+1
| | | | | | | | | | | | | | | | | | For some reason, libtool is not picking up this library from the dependency in libutil_unittests. Adding the library to the link cures the problem. Also, move the directory util/io/tests to util/io_tests so that the utilities code and tests build in the right order.
* | [trac542] Alterations to makefiles to take out unnecessary dependenciesStephen Morris2011-05-111-3/+0
| |
* | [trac542] Convert RUN_ALL_TESTS() to call to isc::util::unittest::run_all()Stephen Morris2011-05-112-1/+4
|/ | | | Also update the test Makefile.am files to include the appropriate libraries.
* [master] small change to make it compile again on my systemJelte Jansen2011-04-291-1/+1
| | | | acked by shane on jabber
* [master] Merge branch 'trac812' with fixing conflicts and regression.JINMEI Tatuya2011-04-293-7/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/Doxyfile src/lib/Makefile.am src/lib/cryptolink/cryptolink.cc src/lib/dns/tsigkey.cc src/lib/util/unittests/Makefile.am Other fixes: - cppcheck filter adjustment - (indirect) dependency on libbotan. actually we should be able to make the link within libcryptolink, so I chose that approach. hopefully it doesn't break autobuild.
| * [trac812] fixups to make cryptolink buildable with recent lib/util stuffJINMEI Tatuya2011-04-267-18/+10
| | | | | | | | (with some non related cleanups)
* | [master] use botan-configJelte Jansen2011-04-281-1/+1
| | | | | | | | | | if nothing (or --with-botan) is specified it will be taken from $PATH, if --with-botan=dir is specified it will be taken from $withval/bin If --without-botan is specified configure will print an error
* | [master] fix BOTAN_LDFLAGS and BOTAN_INCLUDESJelte Jansen2011-04-282-2/+2
| |
* | [master] Merge branch 'trac781'Jelte Jansen2011-04-277-13/+11
| | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/Doxyfile src/lib/Makefile.am Also updated includes (because of the lib/util move)
* | [trac781] use shared_ptr with deleter instead of scoped_ptrJelte Jansen2011-04-272-19/+26
|/
* [trac781] add deleteHMAC()Jelte Jansen2011-04-263-1/+20
|
* [trac781] move hash algorithm enum to cryptolink.hJelte Jansen2011-04-265-116/+106
| | | | also made the friend declaration more specific
* [trac781] some more updates (added doc and a few test changes)Jelte Jansen2011-04-213-28/+46
|
* Merge branch 'trac781' of ssh://bind10.isc.org/var/bind10/git/bind10 into ↵Jelte Jansen2011-04-214-15/+15
|\ | | | | | | trac781
| * [trac781] minor editorial cleanup (basically along with the style guideline)JINMEI Tatuya2011-04-204-15/+15
| | | | | | | | and constify one thing
* | [trac781] rename 'main' cryptolink file, and clean up includesJelte Jansen2011-04-207-20/+19
|/
* [trac781] catch all (unexpected) Botan errors and rethrow them as LibraryErrorJelte Jansen2011-04-203-22/+80
|
* [trac781] move signHMAC and verifyHMAC to hmac filesJelte Jansen2011-04-204-97/+127
|
* [trac781] bit of cleanupJelte Jansen2011-04-203-23/+44
|
* [trac781] rename 'crypto' to cryptolinkJelte Jansen2011-04-208-0/+1156
renamed the directory, libname, namespace and main class