summaryrefslogtreecommitdiffstats
path: root/src/admin/edit/dump.c
Commit message (Collapse)AuthorAgeFilesLines
* Removing programs which are now in the new OV admin systemEzra Peisach1996-08-241-1762/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8980 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-221-30/+35
| | | | | | | | | 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
* * ss_wrapper.c (main): Make sci_idx a global. This makes certain CygnusKen Raeburn1996-05-031-0/+22
| | | | | | | | customizations simpler. * dump.c (restore_dump): If header indicates a beta-5 dump, process it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7886 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX requires a file be opened read-write for lockingRichard Basch1996-03-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7597 dc483132-0cff-0310-8789-dd5450dbe970
* now the keys actually *work* when you load an old dump (a real one,Mark Eichin1996-03-051-3/+8
| | | | | | | | | | | not the fake one the test case creates.) * dump.c (process_k5beta_record): since V4 salt type has no data either, only set key_data_ver to 1 for data_type 0 with 0-length salt. Also, don't include alternate key if akey has all-zero type and length in both fields. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7592 dc483132-0cff-0310-8789-dd5450dbe970
* With this change, lddb -old actually *works* on old dumps..Mark Eichin1996-02-251-1/+40
| | | | | | | | * dump.c (process_k5beta_record): encrypted keys used to have 4 byte lengths in MSB order, need to convert to 2 byte LSB order lengths before storing. Handle primary key and alternate key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7534 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (load_db): dbrenerr_fmt prints "from" first, so pass itMark Eichin1996-01-301-1/+1
| | | | | | to fprintf correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7417 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (process_k5_record): t2..t9 is only 8 vars, not 9Mark Eichin1996-01-281-1/+1
| | | | | | make check is useful, gang... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7412 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :Chris Provenzano1995-12-131-10/+6
| | | | | | Remove mkvno from krb5_db_entry. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7215 dc483132-0cff-0310-8789-dd5450dbe970
* Fix off by one in malloc for reading in nameEzra Peisach1995-10-271-1/+1
| | | | | | | Detected only under Linux, found with purify, except when file compiled -g with suncc.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7001 dc483132-0cff-0310-8789-dd5450dbe970
* * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c :Chris Provenzano1995-09-061-7/+7
| | | | | | s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6698 dc483132-0cff-0310-8789-dd5450dbe970
* * cpw.c, dump.c, dumpv4.c, kdb5_edit.c, loadv4.c : Remove krb5_enctypeChris Provenzano1995-09-061-2/+2
| | | | | | references, and replace with krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6662 dc483132-0cff-0310-8789-dd5450dbe970
* Make new dump format text-based. Also add logic to read/write old formatPaul Park1995-08-211-250/+1584
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6557 dc483132-0cff-0310-8789-dd5450dbe970
* Use new kdb formatChris Provenzano1995-07-271-258/+66
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6329 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid <krb5/...> and <com_err.h> includesJohn Gilmore1995-02-281-13/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5028 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-131-17/+18
| | | | | | Added krb5_context to all krb5_routines throughout the tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4813 dc483132-0cff-0310-8789-dd5450dbe970
* When scanning a database entry, read fail_auth_count into a temporaryTheodore Tso1994-10-141-2/+3
| | | | | | | integer variable, and then copy that into entry.fail_auth_count, which is a char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4513 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure mod time on the dump_ok file is updated. (Some systemsTheodore Tso1994-09-291-0/+8
| | | | | | don't update the mod-time when a file is opened for writing.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4384 dc483132-0cff-0310-8789-dd5450dbe970
* Relink executable when libraries changeTheodore Tso1994-09-291-13/+68
| | | | | | | | | Apply suggested change from Openvision so that principals with spaces in their names can be read in. Pass variable with correct type to ctime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4383 dc483132-0cff-0310-8789-dd5450dbe970
* Exit with a non-zero status if there was an error in an executed command.Theodore Tso1994-09-291-0/+14
| | | | | | (Useful when the -R option is used in a shell-script.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4381 dc483132-0cff-0310-8789-dd5450dbe970
* Fix error string ("for reading" -> "for writing")Theodore Tso1994-09-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4240 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-7/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4187 dc483132-0cff-0310-8789-dd5450dbe970
* lint cleanupMark Eichin1994-08-141-1/+1
| | | | | | comment about misuse of krb5_timestamp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4126 dc483132-0cff-0310-8789-dd5450dbe970
* tcl supportTom Yu1994-06-091-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3687 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed bug in the load routine, so that the alternative salt is loaded onlyTheodore Tso1994-01-131-1/+1
| | | | | | if it exists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3306 dc483132-0cff-0310-8789-dd5450dbe970
* Change use of xfree to krb5_xfree to prevent namespace pollutionTheodore Tso1993-10-151-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2670 dc483132-0cff-0310-8789-dd5450dbe970
* Change export warning notice from "is assumed to require an export license"Theodore Tso1993-09-011-2/+2
| | | | | | to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
* Fix broken kerberos database restoreTheodore Tso1993-07-101-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2617 dc483132-0cff-0310-8789-dd5450dbe970
* New dump version that includes the alternate key, alternate salt,Theodore Tso1992-09-301-52/+137
| | | | | | as well as extra expansion fields. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2458 dc483132-0cff-0310-8789-dd5450dbe970
* Moved defines to kdb5_edit.hTheodore Tso1992-09-241-10/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2383 dc483132-0cff-0310-8789-dd5450dbe970
* Read data into temporary variables to avoid dependencies on size ofJohn Carr1992-08-211-3/+11
| | | | | | key version number data type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2336 dc483132-0cff-0310-8789-dd5450dbe970
* Improve error checkingJohn Carr1992-02-231-1/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2209 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed spelling mistakesTheodore Tso1991-08-201-6/+9
| | | | | | | Change to avoid fscanf() into a character array; make it go into a temporary variable first, and then copy it in, character by character. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2190 dc483132-0cff-0310-8789-dd5450dbe970
* Update copyright noticeJohn Kohl1991-06-061-2/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2156 dc483132-0cff-0310-8789-dd5450dbe970
* libos-proto.h -> los-proto.hJohn Kohl1991-03-141-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1916 dc483132-0cff-0310-8789-dd5450dbe970
* Improved load_db's parsing of the dump fileTheodore Tso1991-03-061-15/+81
| | | | | | Added support for dumping and loading the salt entries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1865 dc483132-0cff-0310-8789-dd5450dbe970
* update copyright noticesJohn Kohl1991-02-191-10/+10
| | | | | | use xfree rather than free((char *)) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1725 dc483132-0cff-0310-8789-dd5450dbe970
* Changed so that kdb5_edit can be run even if there is no validTheodore Tso1991-02-051-17/+42
| | | | | | | | | database. (Needed for slave propagation to do the load_db request). Added backout code to load_db so that if there is an error, the newly created database will be deleted. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1649 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed update_ok_file to use com_err and so that it doesn't exit if itTheodore Tso1991-01-151-22/+21
| | | | | | errors out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1631 dc483132-0cff-0310-8789-dd5450dbe970
* Changed to import progname from an extern variableTheodore Tso1991-01-151-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1629 dc483132-0cff-0310-8789-dd5450dbe970
* Unlink the output dump file before we open it, to make sure we don'tTheodore Tso1991-01-111-0/+11
| | | | | | stomp on a running kprop. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1628 dc483132-0cff-0310-8789-dd5450dbe970
* Changed error message not to refer to kdb_utilTheodore Tso1991-01-101-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1627 dc483132-0cff-0310-8789-dd5450dbe970
* Added code to support the load_db and dump_db requestsTheodore Tso1990-12-201-10/+172
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1586 dc483132-0cff-0310-8789-dd5450dbe970
* Initial revisionTheodore Tso1990-11-021-0/+117
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1403 dc483132-0cff-0310-8789-dd5450dbe970