Commit Graph

312 Commits

Author SHA1 Message Date
Love Hornquist Astrand 26e5159572 Remove fd caching since we don't have unload (deconstructor) support
basiclly this is reverting 164c99a4b4

the problem is when an application is using PAM loaded and unloaded
and over again, the file descriptior never get closed on unload of the
pam module. If main app already uses Heimdal, Heimdal doesn't get
unloaded, but in some scenarios this happen more often.

Since we now use fortuna for our internal random generator, this is
not that bad.

Bug found by Victor Guerra.
2009-11-26 10:06:22 -08:00
Asanka Herath c4b95f7330 Make build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-25 02:22:31 +01:00
Love Hornquist Astrand c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Love Hornquist Astrand b9bb21f185 just return if we are asked for 0 bytes 2009-11-22 12:51:23 -08:00
Love Hornquist Astrand 2454e93c62 fix typo 2009-11-22 12:51:02 -08:00
Love Hornquist Astrand 2f2063198f update (c) 2009-11-22 12:50:39 -08:00
Love Hornquist Astrand 2ac04069b6 If the context already have a EVP_MD_CTX allocated, don't make a new
Patch from Derrick Pallas of Riverbed Techology
2009-10-16 16:40:49 -07:00
Love Hornquist Astrand 2064ee1a37 Wrap rc2 with COMMONCRYPTO_SUPPORTS_RC2 since its not suported on Leopard 2009-09-29 13:21:16 -07:00
Love Hornquist Astrand ec263fc5a4 reading negative size is wrong, zero is ok 2009-09-25 14:53:31 -07:00
Love Hornquist Astrand b0e2117322 Add missing symbols and fix malformed symbols
Build failure reported by Rok Papež on heimdal-discuss
2009-09-19 12:26:52 -07:00
Love Hornquist Astrand 7e1e9dc2e7 drop cts support 2009-08-25 20:28:33 -07:00
Love Hornquist Astrand a1aa022f8b drop evp-aes-cts 2009-08-25 20:27:04 -07:00
Love Hornquist Astrand a4d850a656 don't include evp-aes-cts.c 2009-08-25 20:26:38 -07:00
Love Hornquist Astrand eb7448156c export d2i_RSAPublicKey 2009-08-21 21:42:03 -07:00
Love Hornquist Astrand 9f5d22b98a define and use d2i_RSAPublicKey 2009-08-21 18:57:09 -07:00
Love Hornquist Astrand 796a522b46 always call cipher-init so that we can reset IV when caller wants too 2009-08-21 07:43:50 -07:00
Love Hornquist Astrand 2b6a34e132 allocate cleam memory for cipher to play with 2009-08-21 07:43:29 -07:00
Love Hornquist Astrand 292ff66a64 unused variable 2009-08-21 06:22:01 -07:00
Love Hornquist Astrand 3021868ebb Drop write only assignments 2009-08-20 20:13:08 -07:00
Love Hornquist Astrand f6da838557 init variables since compiler doesn't get __attribute__((noreturn)) 2009-08-20 14:05:06 -07:00
Love Hornquist Astrand 1838afe680 Make sure return values are checked, always unblind if we blinded, handle error better 2009-08-20 14:04:34 -07:00
Love Hornquist Astrand dd673af0b6 Import imath 1.14 2009-08-17 16:08:12 +02:00
Love Hornquist Astrand 06f016c1e6 Rename DEF_PROVIDER to HCRYPTO_DEF_PROVIDER 2009-08-17 13:59:17 +02:00
Love Hornquist Astrand e8fce1170f separate out common crypto vs hcrypto 2009-08-17 10:39:19 +02:00
Love Hornquist Astrand 9745ba2d18 export right cts symbol 2009-08-17 08:53:43 +02:00
Love Hornquist Astrand 76e01c5084 (EVP_MD_CTX_cleanup): clean out memory 2009-08-16 20:42:38 +02:00
Love Hornquist Astrand fef41d9e23 Use constant time compare 2009-08-15 13:29:15 +02:00
Love Hornquist Astrand 1cd2e05d82 ct comment 2009-08-15 13:27:55 +02:00
Love Hornquist Astrand 8ef2d2d11b the key argument is const, mark it as such 2009-08-14 20:06:39 +02:00
Love Hornquist Astrand f6dd20ae2b drop unused struct prototypes 2009-08-14 15:46:30 +02:00
Love Hornquist Astrand 241e0444d9 basic framework for ec.c 2009-08-14 15:33:20 +02:00
Love Hornquist Astrand b7fc0614f0 Add return type for ECDH_compute_key 2009-08-14 10:13:48 +02:00
Love Hornquist Astrand 193f14461f Add symbols renaming 2009-08-14 10:07:50 +02:00
Love Hornquist Astrand 628075b646 remove dup EC_KEY_free 2009-08-14 10:06:09 +02:00
Love Hornquist Astrand 21e8270aa2 Support RC4 in EVP 2009-08-10 11:48:12 +02:00
Love Hornquist Astrand 8276a469ab Add CommonCrypto support, split out all hcrypto specific code to hcrypto module 2009-08-10 09:07:37 +02:00
Love Hornquist Astrand 44709846a0 add ec*.h files 2009-08-06 09:28:08 +02:00
Love Hornquist Astrand d1eb77fba8 add basic symbol renaming and header prototection 2009-08-06 09:27:35 +02:00
Love Hornquist Astrand 5334dd9702 add basic symbol renaming and header prototection 2009-08-06 09:26:54 +02:00
Love Hornquist Astrand a9b182bc4e add basic symbol renaming and header prototection 2009-08-06 09:25:52 +02:00
Love Hornquist Astrand b8ebf4e245 add wincrypt 2009-08-05 13:48:40 +02:00
Love Hornquist Astrand 3a031244bc Drop RCSID and HAVE_CONFIG_H 2009-08-05 13:37:37 +02:00
Stefan Metzmacher 513f59dcd4 heimdal:camellia: include roken.h
metze

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-08-04 20:19:44 +02:00
Andrew Bartlett a4287ff403 Include roken.h to fix build of example_evp_cipher test on Linux
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-08-04 20:19:44 +02:00
Love Hörnquist Åstrand f8d7804396 More tests for HC_DEPRECATED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-16 18:28:44 +00:00
Love Hörnquist Åstrand e9cea2daee More tests for HC_DEPRECATED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-16 18:28:24 +00:00
Love Hörnquist Åstrand 164c99a4b4 Do locking around file descriptor, this allows caching of the file
descriptor in the module.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:18 +00:00
Love Hörnquist Åstrand 59e499f32f Prefer /dev/random on MacOS since it's always there and have good performance.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:07 +00:00
Love Hörnquist Åstrand f1c791989f fix typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:55:24 +00:00
Love Hörnquist Åstrand 7e9941b369 test BN_CTX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:55:14 +00:00