summaryrefslogtreecommitdiffstats
path: root/src/lib/kdb
Commit message (Collapse)AuthorAgeFilesLines
...
* * Makefile.in (SHLIB_EXPDEPS):Tom Yu1998-04-152-3/+8
| | | | | | (SHLIB_EXPLIBS): Rename libcrypto -> libk5crypto. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10532 dc483132-0cff-0310-8789-dd5450dbe970
* Remove check for the regular expression functions, since they aren'tTheodore Tso1998-03-022-1/+5
| | | | | | used in lib/kdb. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10486 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-122-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_cpw.c (add_key_pwd): For KRB5_KDB_SALTTYPE_AFS3, the saltEzra Peisach1997-10-282-0/+19
| | | | | | key for afs_mit_string_to_key mut be null terminated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10254 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c (do_testing): Add krb5_free_contextEzra Peisach1997-10-132-0/+7
| | | | | | This makes it easier for purify testing for memory leaks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10223 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c: (krb5_ktkdb_get_entry): Incoming principal is constEzra Peisach1997-09-156-9/+25
| | | | | | | | | | | | | | | | * kdb_dbm.c (krb5_dbm_db_get_principal, krb5_dbm_db_delete_principal): Incoming principal is const. * kdb_xdr.c (krb5_dbe_update_mod_princ_data, krb5_encode_princ_dbkey): Incoming principal is const. * kdb_db2.h (krb5_db2_db_get_principal): Change prototype to const principal. * kdb_db2.c (krb5_db2_db_get_principal, krb5_db2_db_delete_principal): The search for principal is const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10192 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statementEzra Peisach1997-07-312-0/+6
| | | | | | so that all cases have one statement. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10150 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.c (krb5_db2_db_set_hashfirst): Don't cast aTom Yu1997-07-292-1/+6
| | | | | | krb5_context * to a krb5_db2_context *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10140 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.c: Fix typo; also, tweak page size in attempt to speedTom Yu1997-07-263-5/+8
| | | | | | | | things up. * kdb_db2.h: Fix typo. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10137 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c: Reflect changes in the API, mostly db_createTom Yu1997-07-257-60/+1545
| | | | | | | | | | | | | | * Makefile.in: Bump version due to major reworking. * kdb_db2.h: * kdb_db2.c: Add Berkely DB backend. * keytab.c: Add support for new kdb API; delete dead arguments. * kdb_xdr.c: Remove dependencies on dbm; encode things to krb5_datas rather than datums. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10130 dc483132-0cff-0310-8789-dd5450dbe970
* t_kdb.c (do_testing): Clean up error handling for krb5_init_contextTheodore Tso1997-03-243-8/+13
| | | | | | | Makefile.in (check): Define and use KRB5_CONFIG_SETUP which sets up the environment variables appropriately. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10022 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c: Don't assume dbm_db_get_mkey() and dbe_find_enctypeTom Yu1997-03-172-14/+29
| | | | | | | won't error out. Also, some gcc -Wall warning cleanups. [krb5-kdc/361] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10004 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-222-1/+5
| | | | | | * Fix dependencies for library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9952 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-093-50/+34
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-132-1/+5
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c: Ditch DB_OPENCLOSE conditionals, and fix the realMark Eichin1996-11-132-69/+27
| | | | | | | | | | | | | | | | | | | | problem. Like the policy db, the main db is now opened on first lock and closed on last unlock. Set db_dbm_ctx to NULL after closing it, to help detect dangling references. (krb5_dbm_db_put_principal, krb5_dbm_db_delete_principal): KDBM_STORE can fail (in case of database corruption, for example) *without* causing errno to be set. If errno is zero, use KRB5_KDB_DB_CORRUPT instead. (If it is non-zero, it may still be wrong, but at least something gets reported. This will be properly fixed by ditching KDBM_* altogether, and using the non-lossy db interfaces, so it's a good enough fix for now.) (krb5_dbm_db_rename): grab errno from rename *before* calling krb5_dbm_db_end_update, to avoid "not a typewriter" syndrome. (krb5_dbm_db_unlock): only close on zero refcount. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9400 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_cpw.c (add_key_pwd): set length to -1 so krb5_string_to_keyMark Eichin1996-11-122-1/+11
| | | | | | | handles the AFS3 salttype, but then replace it with the actual length for later processing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9377 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_cpw.c (cleanup_key_data): fix memory leak [krb5-kdc/163]Barry Jaspan1996-11-112-2/+15
| | | | | | (add_key_pwd): fix memory leak [krb5-kdc/164] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9376 dc483132-0cff-0310-8789-dd5450dbe970
* * t_krb5.conf: Dummy krb5.conf file from the krb5 libraryEzra Peisach1996-11-094-6/+51
| | | | | | | | * Makefile.in (check): Set KRB5_CONFIG to a valid krb5.conf file. * t_kdb.c (do_testing): Check return value from krb5_init_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9353 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_kdb): Link with $(TOPLIBD)/libdb.aEzra Peisach1996-10-312-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9261 dc483132-0cff-0310-8789-dd5450dbe970
* update rename comment to agree with code and previous comment inBarry Jaspan1996-10-181-1/+1
| | | | | | | ChangeLog: rename will create the database if it does not already exist, but not fail if it does already exist git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9202 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_kdb): Fix up dependencies of t_kdb so it willTom Yu1996-09-042-2/+8
| | | | | | | build on non-shared architectures; also ensure that libs get linked after the objects. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9026 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Makefile so that t_kdb is linked correctly with the appropriateTheodore Tso1996-08-233-3/+7
| | | | | | libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8979 dc483132-0cff-0310-8789-dd5450dbe970
* kdb_dbm.c: Remove vestigal code which was using BERK_DB_DBM define.Theodore Tso1996-08-225-250/+95
| | | | | | | | | Still need to remove kludgey database "switch" code and recode to use the db interface. t_kdb.c: Update t_kdb to use the new libkdb interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8966 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c (krb5_dbm_db_rename): rename should not insist thatBarry Jaspan1996-08-122-1/+6
| | | | | | the target database not already exist git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8930 dc483132-0cff-0310-8789-dd5450dbe970
* Don't dump core when principal doesn't existSam Hartman1996-08-102-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8919 dc483132-0cff-0310-8789-dd5450dbe970
* Change shared:: to shared: in the creation of the shared subdir.Ezra Peisach1996-08-092-1/+7
| | | | | | | | a) This change is consistant with other lib directories. b) The double : form caused the mkdir to be tried every time and mkdir was exiting with a non-zero exit status of it already existed... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8918 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (shared): Always mkdir shared; test -d shared ||Tom Yu1996-08-092-1/+6
| | | | | | mkdir shared breaks under Ultrix sh (grrr...). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8917 dc483132-0cff-0310-8789-dd5450dbe970
* * AIX shared library fix: get -ldb not dbmSam Hartman1996-08-053-1/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8904 dc483132-0cff-0310-8789-dd5450dbe970
* Remove references to unused non-portable symbolsSam Hartman1996-08-021-20/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8898 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up shared library handling and $(STEXT) usageSam Hartman1996-07-282-6/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8855 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: libkdb5.so needs to be built withEzra Peisach1996-07-233-0/+23
| | | | | | | | | libcrypto and libkrb5. * configure.in: Pass version numbers of teh crypto and krb5 shared libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8780 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-226-177/+368
| | | | | | | | | OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c (krb5_ktkdb_close): Free memory allocated byEzra Peisach1996-06-112-1/+17
| | | | | | krb5_ktkdb_resolve. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8291 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-101-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Remove vestigal ODBM supportTheodore Tso1996-05-202-32/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8085 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c: Do not provide prototypes for dbm_error orEzra Peisach1996-05-182-2/+7
| | | | | | | | dbm_clearerr if they are really macros. Required for Ultrix... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8048 dc483132-0cff-0310-8789-dd5450dbe970
* Handle compiling with BERK_DB without dbm available. (Linux whenEzra Peisach1996-05-072-0/+13
| | | | | | the option --with-kdb-db=db) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7923 dc483132-0cff-0310-8789-dd5450dbe970
* add afs3 salt supportMark Eichin1996-04-091-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7770 dc483132-0cff-0310-8789-dd5450dbe970
* bullet-proofing the code -- if the data contents are NULL, it would coredumpRichard Basch1996-03-222-12/+19
| | | | | | (I discovered this one because of another bug) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7700 dc483132-0cff-0310-8789-dd5450dbe970
* Add keytab.cEzra Peisach1996-03-201-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7675 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_RUN_FLAGSEzra Peisach1996-03-193-1/+9
| | | | | | * Makefile.in: Use the run flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7665 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change WITH_KDB_DB to USE_KDB5_LIBRARIES and addEzra Peisach1996-03-183-11/+14
| | | | | | | | | KRB5_LIBRARIES. * Makefile.in: Use libraries as specified by configure. Set LD_LIBRARY_PATH for tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7652 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Change WITH_DB to WITH_KDB_DBEzra Peisach1996-03-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7584 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c (krb5_ktkdb_close): new function, non-optional.Mark Eichin1996-02-242-10/+27
| | | | | | | (krb5_kt_kdb_ops): include _close method, comment what the other slots are. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7510 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c (krb5_dbm_db_rename): Initialize pointer before useEzra Peisach1996-02-142-1/+7
| | | | | | for case where new db does not exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7477 dc483132-0cff-0310-8789-dd5450dbe970
* Several changes to the db rename feature.Richard Basch1996-01-311-19/+25
| | | | | | | | | | Renaming locks the target lock file. If the target lock file doesn't exist, create it. Check the return value of krb5_dbm_db_set_name and set the context accordingly if the target didn't exist. Only unlink the source lock file if one could be computed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7418 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c (krb5_dbm_db_rename): O_EXCL is meaningless withoutMark Eichin1996-01-302-1/+6
| | | | | | O_CREAT. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7416 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefsMark Eichin1996-01-273-2/+18
| | | | | | | | | BERK_DB_DBM. (do_testing): wrap references as well. * keytab.c (krb5_ktkdb_get_entry): use KRB5_PROTOTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7400 dc483132-0cff-0310-8789-dd5450dbe970