Commit Graph

365 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
a6b897ef0d (hdb_replace_extension): set error message on failure, not success.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-25 10:20:22 +00:00
Love Hörnquist Åstrand
520d13e506 (parse_key_set): handle error case better
(hdb_generate_key_set): return better error


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-25 08:09:38 +00:00
Love Hörnquist Åstrand
f5d20ae666 (hdb_create): print out what we don't support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17219 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 20:57:58 +00:00
Love Hörnquist Åstrand
72a5513806 Remove a delta from last revision that should have gone in later.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:20:45 +00:00
Love Hörnquist Åstrand
4c3ff70933 (hdb_resolve): off by one, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:48:26 +00:00
Love Hörnquist Åstrand
3e9565a941 (hdb_generate_key_set): set ret_key_set before going into the error
clause and freeing key_set. Found by IBM checker.
Make sure ret == 0 after of parse error, we catch the "no entries
parsed" case later.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:45:48 +00:00
Love Hörnquist Åstrand
f9160af5a1 (LDAP_message2entry): in declaration set variable_name as "hdb_entry_ex"
(hdb_ldap_common): change "arg" in condition (if) to "search_base"
(hdb_ldapi_create): change "serach_base" to "search_base"
From Alex V. Labuta.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-30 09:03:27 +00:00
Love Hörnquist Åstrand
b81ea8dcbc Log the filter string to the error message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16690 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:17:10 +00:00
Love Hörnquist Åstrand
91026474ad memset hdb_entry_ex before use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 11:54:10 +00:00
Love Hörnquist Åstrand
0c2369acd0 Wrap hdb_entry with hdb_entry_ex, patch originally from Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:40:12 +00:00
Love Hörnquist Åstrand
eb128f4928 Wrap hdb_entry with hdb_entry_ex, add url support, add ldapi support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16377 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:34:23 +00:00
Love Hörnquist Åstrand
8145f2b840 drop convert_db, 0.0 to 0.1 transition was a long long time ago
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16360 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-08 19:23:53 +00:00
Love Hörnquist Åstrand
6e58db8120 (find_method): accept relative paths as old db format too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16318 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-30 12:22:09 +00:00
Love Hörnquist Åstrand
486c4cd80c Make compile again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 20:34:35 +00:00
Love Hörnquist Åstrand
f32ada0887 Only match db databases on filename starting with '/'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 18:48:07 +00:00
Love Hörnquist Åstrand
0fa794702c (hdb_db_create): use calloc to callocate memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-28 23:33:24 +00:00
Love Hörnquist Åstrand
daf7286660 (hdb_ndbm_create): use calloc to allocate memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-28 23:31:36 +00:00
Love Hörnquist Åstrand
4107ec5557 Catch error returned by ->hdb_unlock. From Henry B. Hotz
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 13:51:40 +00:00
Love Hörnquist Åstrand
96ebe5947e (hdb_seal_key_mkey): dont double encrypt keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-19 13:07:06 +00:00
Love Hörnquist Åstrand
a186871617 provide locking for version entries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-19 13:07:05 +00:00
Love Hörnquist Åstrand
8822335041 only add krb5EncryptionType for already existing entries or heidmal entries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-19 13:07:04 +00:00
Love Hörnquist Åstrand
5d847fc33b provide interface to find avaible databates
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-19 13:07:03 +00:00
Love Hörnquist Åstrand
406caf3df5 HDB extensions access glue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 20:49:31 +00:00
Love Hörnquist Åstrand
1dd8eea802 Build extensions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:18:53 +00:00
Love Hörnquist Åstrand
6a53664484 Print extensions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:18:09 +00:00
Love Hörnquist Åstrand
e5d72971c2 Add error "Entry contains unknown mandatory extension".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15878 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:17:22 +00:00
Love Hörnquist Åstrand
475b015e3c Update (c).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:16:44 +00:00
Love Hörnquist Åstrand
848bf1b529 Update interface version (and indent).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:16:29 +00:00
Love Hörnquist Åstrand
90f0c3cff0 Add support for HDB-extension.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:15:44 +00:00
Love Hörnquist Åstrand
067af5ca8e Expose the crypto operations on the master key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-10 08:41:03 +00:00
Love Hörnquist Åstrand
8443e8221a (DB_open): catch errors from the d->open calls instead of letting them
slip though to d->cursor. Bug repport from Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-09 09:28:39 +00:00
Love Hörnquist Åstrand
f3862df669 (hdb_unseal_key_mkey): try to unseal key with keyusage 0 in case the
key was encrypted with MIT Kerberos (old patch from Johan)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-28 14:06:16 +00:00
Love Hörnquist Åstrand
22ca9e3e4a Check encoder lengths from ASN1_MALLOC_ENCODE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-14 10:12:51 +00:00
Love Hörnquist Åstrand
50215461bc the new asn.1 compiler includes the modules name in the depend file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 06:55:28 +00:00
Love Hörnquist Åstrand
d6560fb1ed (DB_open): in case of error, close database
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15510 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-23 13:41:08 +00:00
Love Hörnquist Åstrand
1f54737a4c (NDBM_open): in case of error, close database
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-23 13:37:57 +00:00
Love Hörnquist Åstrand
c5ac9b9af6 (DB_open): in case of error, close database
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15508 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-23 13:34:17 +00:00
Love Hörnquist Åstrand
aea172a9a7 rename optind to optidx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 05:09:56 +00:00
Love Hörnquist Åstrand
0927e1235b const poison, add a unconst where needed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 05:08:46 +00:00
Love Hörnquist Åstrand
ffb7332d89 provde RTLD_NOW and RTLD_GLOBAL if they don't exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15281 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 18:12:28 +00:00
Love Hörnquist Åstrand
8c03feac90 use PADL version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 17:33:40 +00:00
Love Hörnquist Åstrand
3912e6c785 add EQUALITY rule for krb5ValidStart, krb5ValidEnd, krb5PasswordEnd
From Howard Chu


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-25 14:30:14 +00:00
Love Hörnquist Åstrand
95b30c4a5b this lib include com_err, add -com_err to CHECK_SYMBOLS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14873 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-20 21:17:32 +00:00
Love Hörnquist Åstrand
e621738b3a drop <ctype.h>, no longer use any of the is* macros in this file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-18 08:03:54 +00:00
Love Hörnquist Åstrand
44feff968e CHECK_SYMBOLS += HDBFlags2int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 14:12:27 +00:00
Love Hörnquist Åstrand
e502ee6379 AES is enabled by default, remove ifdefs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-17 00:42:05 +00:00
Love Hörnquist Åstrand
6058abac27 use the newly written hex function from roken and remove the old implementation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-04 15:13:01 +00:00
Love Hörnquist Åstrand
147757d076 bump version to 8:0:1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-24 15:44:42 +00:00
Love Hörnquist Åstrand
0e11d3a6ee (DB_open): correct the check for O_RDONLY
From: Chaskiel M Grundman <cg2v@andrew.cmu.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14578 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-15 17:45:38 +00:00
Love Hörnquist Åstrand
cbdcb76d5c add CHECK_SYMBOLS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 20:46:51 +00:00