summaryrefslogtreecommitdiffstats
path: root/src/kdc/dispatch.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete definitions of unused macros NEED_SOCKETS and NEED_LOWLEVEL_IOKen Raeburn2005-04-131-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17177 dc483132-0cff-0310-8789-dd5450dbe970
* protoizeKen Raeburn2002-09-111-4/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14841 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c, do_as_req.c, do_tgs_req.c: Define NEED_SOCKETS before ↵Ken Raeburn2002-07-051-0/+1
| | | | | | including k5-int.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14603 dc483132-0cff-0310-8789-dd5450dbe970
* Reduce or localize dependencies on address families.Ken Raeburn2002-07-051-11/+2
| | | | | | | | | | | | | | | | * kdc_util.h (ADDRTYPE2FAMILY): New macro. * do_as_req.c (process_as_req): Use inet_ntop instead of inet_ntoa. * do_tgs_req.c (process_tgs_req): Ditto. * dispatch.c (dispatch): Fix inet_ntop code, and use it always. * kerberos_v4.c (process_v4): Check address family before copying out an IPv4 address. Log if not IPv4, but continue. * network.c (set_sa_port): New function. (setup_port): Use it. Combine IPv4 and IPv6 paths; IPv6 still disabled for now. Modify supplied sockaddr instead of making a copy. (process_packet): SADDR is now sockaddr_storage. Use socket-utils macros instead of casting. Enable the IPv6 code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14602 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c (dispatch): Remove arg "portnum"; update callers.Ken Raeburn2002-06-261-7/+6
| | | | | | | | | | | * do_as_req.c (process_as_req): Ditto. * do_tgs_req.c (process_tgs_req): Ditto. * kerberos_v4.c (process_v4): Remove arg "is_secondary"; update callers. * kdc_util.h (dispatch, process_as_req, process_tgs_req, process_v4): Update prototypes. * main.c (init_realm): Remove unused variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14585 dc483132-0cff-0310-8789-dd5450dbe970
* KDC support for new PRNGSam Hartman2002-01-081-1/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14090 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c (dispatch): inet_ntop() returns const char *Ezra Peisach2000-09-201-4/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12660 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc_preauth.c (verify_sam_response): Declare and set rc_lifetimeTom Yu2000-03-011-1/+4
| | | | | | | | | for real. * dispatch.c: Include some more net-related headers. (dispatch): Fix ifndef HAVE_INET_NTOP branch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12091 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c (dispatch): Log address and port number of detected retransmitsKen Raeburn2000-01-271-1/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11977 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c (dispatch): Make message in lookaside case less suggestive ofKen Raeburn1999-10-291-1/+1
| | | | | | | replay attacks, since it can result from normal packet loss causing retransmissions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11889 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Disable lookaside cache. It's needed if the replay cache is enabled, and couldKen Raeburn1999-06-301-0/+4
| | | | | | | | | theoretically make certain attacks more difficult, but the replay cache is disabled, the attack is very difficult compared to other existing attacks (would need huge numbers of queries), and under heavy load the lookaside cache degrades performance. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11538 dc483132-0cff-0310-8789-dd5450dbe970
* * replay.c (kdc_check_lookaside):Tom Yu1998-07-221-2/+2
| | | | | | | | | | | | | | | | (kdc_insert_lookaside): Add code to originating address of packet, as krb4 initial ticket requests don't contain an address. This would cause a subtle problem wherein two simultaneous krb4 initial ticket requests for the same principal originating from different addresses would result in both replies containing the same address. * kdc_util.h: Modify prototype for lookaside functions. * dispatch.c (dispatch): Update to new calling conventions of the lookaside functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10713 dc483132-0cff-0310-8789-dd5450dbe970
* network.c (setup_network):Theodore Tso1995-10-061-5/+5
| | | | | | | | | | | | | | | | | | | | | main.c (initialize_realms): Massive revamp of how the network ports are setup. The default port list for a realm is read from [kdcdefaults]/kdc_ports from the kdc.conf file. For each realm, a list of ports can be specified in [realms]/<realm>/kdc_ports. extern.h (kdc_realm_t): Remove realm_pport and realm_sport, and added realm_ports. do_tgs_req.c (process_tgs_req): do_as_req.c (process_as_req): dispatch.c (dispatch): Pass the portnumber of the incoming request down to process_as_req and process_tgs_req, instead of the boolean "is_secondary". kerberos_v4.c (kerb_get_principal, kerberos_v4): Fix gcc -Wall flames, by fixing signed vs. unsigned types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6937 dc483132-0cff-0310-8789-dd5450dbe970
* Multiple realm supportPaul Park1995-06-231-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6137 dc483132-0cff-0310-8789-dd5450dbe970
* dispatch.c, kdc_util.h, kerberos_v4.c: Use KRB5_KRB4_COMPAT instead ofTheodore Tso1995-06-091-1/+1
| | | | | | | | | | | | | KRB4 for determining whether to compile in Kerberos V4 backwards compatibility configure.in: Remove standardized set of autoconf macros, which are now handled by CONFIG_RULES. do_as_req.c, do_tgs_req.c, kdc_util.c, kerberos_v4.c, main.c, network.c: Fix -Wall nits. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6016 dc483132-0cff-0310-8789-dd5450dbe970
* Update kadmind5 to use new logging routinesPaul Park1995-06-081-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5976 dc483132-0cff-0310-8789-dd5450dbe970
* * *.[ch]: Avoid <krb5/...> and <com_err.h> includesJohn Gilmore1995-02-281-5/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5031 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-131-1/+2
| | | | | | Added krb5_context to all krb5_*() routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4815 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-6/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4190 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
* Pass in actual packet to process_tgs_req so that two different checksummingTheodore Tso1993-06-031-5/+1
| | | | | | can be done, in case of ASN.1 screwup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2578 dc483132-0cff-0310-8789-dd5450dbe970
* Modifications so that whether something came in on the secondary orTheodore Tso1992-09-011-7/+8
| | | | | | primary port is logged. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2377 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
* XXX not appropriateJohn Kohl1991-04-191-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2017 dc483132-0cff-0310-8789-dd5450dbe970
* only insert the replay if we succeeded in generating a replyJohn Kohl1991-02-141-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1693 dc483132-0cff-0310-8789-dd5450dbe970
* add replay lookaside call-outsJohn Kohl1991-02-131-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1683 dc483132-0cff-0310-8789-dd5450dbe970
* conditionalize v4 supportJohn Kohl1990-12-201-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1577 dc483132-0cff-0310-8789-dd5450dbe970
* changed process_v4() stub & its call to have three arguments,Donald Davis1990-10-111-1/+1
| | | | | | | so that dispatch() will correspond to the real process_v4() in kerberos_v4.c . git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1248 dc483132-0cff-0310-8789-dd5450dbe970
* packet can be modified by decode_krb5_as_req, so we can't be constJohn Kohl1990-10-101-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1241 dc483132-0cff-0310-8789-dd5450dbe970
* change data structure namesJohn Kohl1990-10-101-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1232 dc483132-0cff-0310-8789-dd5450dbe970
* fix reference to copyright/distribution provisionsJohn Kohl1990-05-251-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@945 dc483132-0cff-0310-8789-dd5450dbe970
* fix include filesJohn Kohl1990-05-231-2/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@918 dc483132-0cff-0310-8789-dd5450dbe970
* call process_tgs_req, which calls the othersJohn Kohl1990-05-071-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@760 dc483132-0cff-0310-8789-dd5450dbe970
* add const to argsJohn Kohl1990-04-231-21/+15
| | | | | | rearrange code to use new macros to predetermine packet types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@556 dc483132-0cff-0310-8789-dd5450dbe970
* add more args, pass more args downJohn Kohl1990-02-031-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@251 dc483132-0cff-0310-8789-dd5450dbe970
* *** empty log message ***John Kohl1990-02-021-0/+60
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@232 dc483132-0cff-0310-8789-dd5450dbe970