summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * ktdefname.c (krb5_kt_default_name): Fix a few memory-leak typeTom Yu1996-11-132-5/+11
| | | | | | problems in previous changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9402 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
* * osconfig.c: Remove krb5_defkeyname to catch other things thatTom Yu1996-11-132-2/+3
| | | | | | may break. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9399 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (krb5_init_context): Oops. Initialize kt_default_nameTom Yu1996-11-132-0/+4
| | | | | | to NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9398 dc483132-0cff-0310-8789-dd5450dbe970
* * ktdefname.c (krb5_kt_default_name): Change logic to no longerTom Yu1996-11-132-30/+54
| | | | | | | use a global variable; also add krb5_kt_set_default_name() to allow for the changing of the default keytab name in the context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9397 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (krb5_free_context): Free kt_default_name if it'sTom Yu1996-11-132-0/+7
| | | | | | non-NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9396 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.c (auth_gssapi_create): handle channel bindingsBarry Jaspan1996-11-122-2/+13
| | | | | | failure so UDP connections can work [krb5-libs/180] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9390 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/helpers.exp, client.c, server.c, config/unix.exp,Barry Jaspan1996-11-126-22/+79
| | | | | | | Makefile.in: test GSS-RPC with both TCP and UDP transport layers [krb5-libs/180] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9389 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_setup.sh: Fix test of $VERBOSE_TEST so that $VERBOSETom Yu1996-11-122-2/+10
| | | | | | only gets set if $VERBOSE_TEST is not empty. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9388 dc483132-0cff-0310-8789-dd5450dbe970
* missed some ChangeLogsTom Yu1996-11-121-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9381 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_setup.sh: Use a temp file rather than a here documentTom Yu1996-11-122-3/+8
| | | | | | feeding into eval because Ultrix sh doesn't deal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9379 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to support AC_CANONICAL_HOST for runtest flags; seeTom Yu1996-11-123-1/+7
| | | | | | ChangeLogs for details. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9378 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
* * kadm_rpc_xdr.c: fix memory leak handling key_data and tl_dataBarry Jaspan1996-11-112-2/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9375 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_modify_principal): fix memory leakBarry Jaspan1996-11-112-8/+22
| | | | | | handling tl_data git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9374 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (client.o, server.o): client.o and server.o, notTom Yu1996-11-112-4/+6
| | | | | | client.c and server.c, depend on rpc_test.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9369 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 (check-unix): Invoking t_ser requires thatEzra Peisach1996-11-093-1/+13
| | | | | | | | | | | KRB5_CONFIG points to a valid krb5.conf * t_ser.c (main): If verbose flag is set and there is an error, display error message. This would not have been noticed on a system with a valid /etc/krb5.conf... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9352 dc483132-0cff-0310-8789-dd5450dbe970
* Remove erroneous changelog entry that should have been entered inTheodore Tso1996-11-081-6/+0
| | | | | | src/lib/krb5/ChangeLog instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9347 dc483132-0cff-0310-8789-dd5450dbe970
* Check to see if the -lgen library exists; if so, add it to theTheodore Tso1996-11-083-1/+10
| | | | | | | SHLIB_LIBS line, since it will be needed by an_to_ln.c, in all probability. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9346 dc483132-0cff-0310-8789-dd5450dbe970
* Remove calls to macros that are a part of CONFIG_RULES;Tom Yu1996-11-084-4/+6
| | | | | | see ChangeLogs for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9338 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_iters.c (glob_to_regexp): a principal glob with no @Barry Jaspan1996-11-072-5/+8
| | | | | | defaults to @*, not @LOCAL.REAM [krb5-admin/161] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9337 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (server.o): Fix typo in previous checkinTom Yu1996-11-072-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9336 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/init-v2.exp: update tests for new init error codes andBarry Jaspan1996-11-072-2/+24
| | | | | | get_config_params behavior when KDC_PROFILE does not exist git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9329 dc483132-0cff-0310-8789-dd5450dbe970
* lib.t moved to lib/lib.tBarry Jaspan1996-11-071-367/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9328 dc483132-0cff-0310-8789-dd5450dbe970
* Make the KRB5_CONFIG_CANTOPEN andTheodore Tso1996-11-072-2/+8
| | | | | | | KRB5_CONFIG_BADFORMAT error messages more clear that the problem is with the _Kerberos_ configuration file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9327 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/mod-principal-v2.exp: provide finer-grained test numbersBarry Jaspan1996-11-072-15/+25
| | | | | | in case of failure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9325 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed mangled copyright noticeTheodore Tso1996-11-073-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9324 dc483132-0cff-0310-8789-dd5450dbe970
* New error codes for KADM5_MISSING_CONF_PARAMS andTheodore Tso1996-11-072-0/+7
| | | | | | KADM5_BAD_SERVER_NAME. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9322 dc483132-0cff-0310-8789-dd5450dbe970
* client_init.c (_kadm5_init_any): Use a more fined grained error code,Theodore Tso1996-11-072-2/+10
| | | | | | | | | KADM5_MISSING_CONF_PARAMS, instead of KRB5_CONFIG_BADFORMAT (_kadm5_init_any): Use a more fined grained error code, KADM5_BAD_SERVER_NAME, instead of KRB5_CONFIG_BADFORMAT. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9321 dc483132-0cff-0310-8789-dd5450dbe970
* server_init.c (kadm5_init): Use a more fined grained error code,Theodore Tso1996-11-072-1/+7
| | | | | | KADM5_MISSING_CONF_PARAMS, instead of KRB5_CONFIG_BADFORMAT git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9320 dc483132-0cff-0310-8789-dd5450dbe970
* alt_prof.c (krb5_aprof_init): If the user specifies the config fileTheodore Tso1996-11-072-9/+24
| | | | | | | | | | using a configuration file, it must exist. Otherwise, krb5_aprof_init will return an error. (kadm5_get_config_params): If aprof_init returns an error, it should return an error as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9319 dc483132-0cff-0310-8789-dd5450dbe970
* Eliminate extra files not needed for Macintosh and Windows. (ThisTheodore Tso1996-11-072-11/+23
| | | | | | directory is only used for Windows and Macintosh at this point.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9318 dc483132-0cff-0310-8789-dd5450dbe970
* * client_principal.c (kadm5_get_principal,Ezra Peisach1996-11-072-2/+19
| | | | | | | kadm5_modify_principal): For a V1 request, copy only the memory that is allocated for the incomming principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9312 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_rpc_xdr.c (xdr_krb5_principal): handle a NULL principalBarry Jaspan1996-11-062-8/+20
| | | | | | | | pointer (this can happen when get_principal is passed a mask without KADM5_PRINCIPAL in it, and will cause a beta 7 kadmind to coredump) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9309 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/lib.t: global $test everywhere it is usedBarry Jaspan1996-11-063-18/+24
| | | | | | | | * api.2/mod-principal-v2.exp: init to kadmin/admin, not kadmin/changepw; specify real principal, not null (obviously I never ran these tests via the client library before) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9308 dc483132-0cff-0310-8789-dd5450dbe970
* Don't ignore errors found from parsing the config file. Currently, weTheodore Tso1996-11-062-4/+27
| | | | | | | | return an error if the profile isn't found. In the future we can maybe do something better with intelligent defaulting if krb5.conf doesn't exist, but we don't have this today. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9307 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_modify_principal): don't free theBarry Jaspan1996-11-062-2/+12
| | | | | | caller's tl_data (oops) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9306 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add dependencies on $(srcdir)/foo.c so that someTom Yu1996-11-062-0/+7
| | | | | | makes can deal with VPATH properly (e.g. NetBSD pmake) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9305 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize the error tables, so applications don't need to callTheodore Tso1996-11-062-0/+8
| | | | | | krb5_init_ets(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9304 dc483132-0cff-0310-8789-dd5450dbe970
* We don't need the special case for linux anymore, since we'reTheodore Tso1996-11-062-11/+6
| | | | | | including the output from rpcgen in the source tree now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9303 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (HDRS): Changes so that $(OBJS) will not getTom Yu1996-11-063-8/+10
| | | | | | | | recompiled gratuitously if someone touches the include directory. * configure.in: Revert previous change re: CopySrcHeader. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9302 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Revert removal of CopySrcHeader, etc., for nowTom Yu1996-11-053-33/+25
| | | | | | | | * Makefile.in (OBJS): Remove dependency of $(OBJS) on shared, also remove dependency of $(HDRS) on $(HDRDIR). Both of these to avoid unecessary copying. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9301 dc483132-0cff-0310-8789-dd5450dbe970
* * serialize.c (krb5_register_serializer): Do not free a NULL pointerEzra Peisach1996-11-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9296 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_err.et: update for new tl_data semantics [krb5-admin/140]Barry Jaspan1996-11-012-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9273 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_modify_principal): update for new tl_dataBarry Jaspan1996-11-012-20/+22
| | | | | | semantics [krb5-admin/140] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9272 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/get-principal-v2.exp, api.2/mod-principal-v2.exp: updateBarry Jaspan1996-11-013-12/+40
| | | | | | for new tl_data semantics [krb5-admin/140] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9271 dc483132-0cff-0310-8789-dd5450dbe970
* Make it more obvious that default ticket lifetimes is not yetTheodore Tso1996-10-312-2/+9
| | | | | | supported. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9267 dc483132-0cff-0310-8789-dd5450dbe970
* Use $(LD) instead of $(CC) at link stage - this allows one to useEzra Peisach1996-10-312-2/+7
| | | | | | purify correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9266 dc483132-0cff-0310-8789-dd5450dbe970