aboutsummaryrefslogtreecommitdiff
path: root/src/appl/gss-sample/gss-server.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-04Merge branch 'master' into users/lhoward/moonshot-mechglue-fixesLuke Howard1-4/+3
Conflicts: src/appl/gss-sample/gss-server.c src/lib/gssapi/mechglue/Makefile.in src/lib/gssapi/mechglue/g_acquire_cred.c src/lib/gssapi/mechglue/g_initialize.c git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/moonshot-mechglue-fixes@24841 dc483132-0cff-0310-8789-dd5450dbe970
2011-03-21add gss_pname_to_uid test to gss-serverLuke Howard1-0/+19
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/moonshot-mechglue-fixes@24735 dc483132-0cff-0310-8789-dd5450dbe970
2010-10-06Merge users/lhoward/sasl-gs2 to trunkGreg Hudson1-2/+82
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24436 dc483132-0cff-0310-8789-dd5450dbe970
2010-04-30Add IAKERB mechanism and gss_acquire_cred_with_passwordGreg Hudson1-1/+12
Merge branches/iakerb to trunk. Includes the following: * New IAKERB mechanism. * New gss_acquire_cred_with_password mechglue function. * ASN.1 encoders and decoders for IAKERB structures (with tests). * New shortcuts in gss-sample client and server. * Tests to exercise SPNEGO and IAKERB using gss-sample application. ticket: 6712 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23960 dc483132-0cff-0310-8789-dd5450dbe970
2010-04-24Add a sentinel to the sample gss-server after the socket is ready, andGreg Hudson1-0/+1
use it in gssapi.exp in the dejagnu test suite instead of sleeping. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23934 dc483132-0cff-0310-8789-dd5450dbe970
2009-11-24Mark and reindent what's left of the appl directoryGreg Hudson1-385/+378
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23342 dc483132-0cff-0310-8789-dd5450dbe970
2009-10-31make mark-cstyleTom Yu1-5/+5
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
2006-10-15Cleanup some warnings on missing prototypesEzra Peisach1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18715 dc483132-0cff-0310-8789-dd5450dbe970
2005-10-21Renamed variable 'log' to 'logfile' and made it staticKen Raeburn1-40/+41
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17448 dc483132-0cff-0310-8789-dd5450dbe970
2005-10-21reindent to style in doc/coding-style, via gnu indentKen Raeburn1-505/+511
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17447 dc483132-0cff-0310-8789-dd5450dbe970
2005-10-21Jeff's patches for a multi-threaded gss-sample suite, modified to not break theKen Raeburn1-14/+151
single-threaded UNIX case. (Tested on Linux/x86.) Needs stylistic cleanup at some point. ticket: 3214 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17445 dc483132-0cff-0310-8789-dd5450dbe970
2004-02-11update copyright notices on gss sample appsTom Yu1-0/+23
update copyrights ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16056 dc483132-0cff-0310-8789-dd5450dbe970
2004-01-30Address issues discovered while testing updated Windows gss sample client.Jeffrey Altman1-142/+142
A Missing parameter to a sign_server call in gss-server.c and the need for a select() call in read_all() to prevent blocking indefinitely. ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15986 dc483132-0cff-0310-8789-dd5450dbe970
2002-04-30Free the context when it is non-null not when it is nullSam Hartman1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14428 dc483132-0cff-0310-8789-dd5450dbe970
2001-12-05 * gss-client.c, gss-misc.c, gss-server.c: Cast buffer length toEzra Peisach1-3/+4
int in length argument for printf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14038 dc483132-0cff-0310-8789-dd5450dbe970
2001-11-19 * gss-server.c (server_establish_context, sign_server): EnsureEzra Peisach1-10/+34
that memory blocks are only freed once. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13991 dc483132-0cff-0310-8789-dd5450dbe970
2001-11-012001-11-01 Sam Hartman <hartmans@mit.edu>Sam Hartman1-8/+12
* gss-server.c gss-client.c: ONly free buffers returned from GSSAPI using gss_release_buffer * gss-client.c (client_establish_context): Trailing null should not be part of service name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13926 dc483132-0cff-0310-8789-dd5450dbe970
2001-06-18 * gss-client.c (parse_oid): Cast argument to isdigit() to intEzra Peisach1-6/+2
* gss-server.c (sign_server): Cast argument to isspace() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13379 dc483132-0cff-0310-8789-dd5450dbe970
2001-05-15* gss-server.c (usage): Fix usage info *again* to reflect thatDanilo Almeida1-1/+1
service_name is required. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13242 dc483132-0cff-0310-8789-dd5450dbe970
2000-09-26 * gss-misc.c: Include <sys/socket.h> for prototype definitionsEzra Peisach1-7/+9
* gss-client.c gss-server.c: Warning cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12682 dc483132-0cff-0310-8789-dd5450dbe970
2000-02-11 * README, gss-client.c, gss-misc.c, gss-misc.h, gss-server.c:Tom Yu1-152/+231
Patches from jik to make gss-sample more versatile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12039 dc483132-0cff-0310-8789-dd5450dbe970
2000-02-01* gss-client.c, gss-server.c, gss-misc.c: Include Windows headersDanilo Almeida1-1/+6
instead of Unix headers under Windows. * gss-server.c (usage): Fix usage info to reflect that service_name is required. * gss-misc.c (read_all, write_all): Change write to send and read to recv for portability. (gettimeofday): Add an implementation of gettimeofday() for Windows. * Makefile.in: Build under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11981 dc483132-0cff-0310-8789-dd5450dbe970
1998-12-22gss-server.c (test_import_export_context): Fix memory leakTheodore Tso1-0/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11094 dc483132-0cff-0310-8789-dd5450dbe970
1998-10-30pull up 3des implementation from the marc-3des branchMarc Horowitz1-10/+12
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
1997-09-19remove occurences of USE_STRING_H, HAS_STRDUP, and HAS_LABSTom Yu1-1/+1
(see ChangeLogs for details) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10199 dc483132-0cff-0310-8789-dd5450dbe970
1997-06-11gss-server.c (server_establish_context): Rearrange server establishTheodore Tso1-8/+11
context loop to match with the draft-ietf-gssv2-cbind-04.txt suggestion --- always send the output token even in the case of an error, and call gss_delete_sec_context() if needed. gss-client.c (client_establish_context): Check for error condition after sending the output token, if present. In case of error, call delete_sec_context if necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10096 dc483132-0cff-0310-8789-dd5450dbe970
1996-10-22gss-server.c: Re-added code to test import and export securityTheodore Tso1-8/+77
context. Yes, yes, I know this isn't the best place to have this test, but DO NOT REMOVE THIS TEST UNTIL WE HAVE IT CODED ELSEWHERE. Better slightly ugly sample server code than untested (and broken) library code.... Add code to print out the mechanism OID used by accept_sec_context. gss-client.c: Add code to allow user to specify the mechanism OID that gss-client should use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9230 dc483132-0cff-0310-8789-dd5450dbe970
1996-07-22this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1-325/+245
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
1996-03-13* gss-server.c (timeval_subtract): Use old-style function definitionKen Raeburn1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7615 dc483132-0cff-0310-8789-dd5450dbe970
1996-03-03 * gss-server.c (test_import_export_context): Add second argumentEzra Peisach1-3/+3
to gettimeofday. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7585 dc483132-0cff-0310-8789-dd5450dbe970
1996-03-02gss-server.c (sign_server): Do better import/export security checking.Theodore Tso1-25/+89
If the received message to be signed is not printable (at least the first two characters are not), display the message in hex. Print the hex values of the incoming and outcoming packets, for your information. gss-misc.c (print_token, display_buffer): Two new tokens for displaying GSSAPI buffers, either has hex or as a printable string. gss-client.c (call_server): Add option to support reading in the message to be signed from a file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7583 dc483132-0cff-0310-8789-dd5450dbe970
1995-09-29gss-client.c (main): Set display_file to be stdoutTheodore Tso1-0/+2
gss-server.c (main): Set display_file to 0 if using inetd; otherwise, set it to be stdout. gss-misc.c (send_token, recv_token, display_status): If display_file is null, don't set it to stderr; just don't print the log message instead. Needed for inetd operation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6892 dc483132-0cff-0310-8789-dd5450dbe970
1995-09-16(sign_server): Only try using gss_export_context andTheodore Tso1-24/+43
gss_import_context if the dov2 flag has been set. (server_establish_context): Make sure the client gss_name_t is released. (main): Add a -once option which causes the gss-server to exit after processing one client. Allows purify to report memory leaks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6799 dc483132-0cff-0310-8789-dd5450dbe970
1995-08-31Update for GSSAPI-V2. Add -v2 switch to use some of these featuresPaul Park1-6/+24
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6639 dc483132-0cff-0310-8789-dd5450dbe970
1995-08-29Use new gss_{im,ex}port_sec_contextPaul Park1-1/+20
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6630 dc483132-0cff-0310-8789-dd5450dbe970
1995-05-24Check for string.h and include if present, else include strings.hEzra Peisach1-0/+6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5862 dc483132-0cff-0310-8789-dd5450dbe970
1995-05-22Fix problem when gss_accept_sec_context() fails where error message was lostPaul Park1-2/+3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5845 dc483132-0cff-0310-8789-dd5450dbe970
1995-04-28gss-server.c (main, sign_server): Make changes to allowTheodore Tso1-12/+49
gss-server to be fired out of inetd. New options: -inetd and -logfile. The -logfile allows the output of gss-server to be redirected to a file. gss-misc.c (send_token, recv_token, display_status_1): Add support for -logfile option. If the external FILE *display_file is set, redirect error messages to display_file instead of stderr. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5626 dc483132-0cff-0310-8789-dd5450dbe970
1995-02-03ret_flags should be an int based on the prototype ofTheodore Tso1-1/+2
gss_accept_sec_context git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4890 dc483132-0cff-0310-8789-dd5450dbe970
1994-08-18stamp out rcs keywordsMark Eichin1-4/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4188 dc483132-0cff-0310-8789-dd5450dbe970
1994-08-14use unistd.h if the system has itMark Eichin1-1/+3
lint git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4128 dc483132-0cff-0310-8789-dd5450dbe970
1994-07-21 * Makefile.in: fix infinite recursion in rulesTom Yu1-11/+20
* gss-client.c: * gss-misc.c: * gss-server.c: downgrade to K&R function definitions git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4007 dc483132-0cff-0310-8789-dd5450dbe970
1994-06-15As submitted from Openvision --- a sample GSSAPI client/server application!Theodore Tso1-0/+346
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3794 dc483132-0cff-0310-8789-dd5450dbe970