summaryrefslogtreecommitdiffstats
path: root/src/appl/gss-sample/gss-client.c
Commit message (Collapse)AuthorAgeFilesLines
* Add "-dce" commandline option to gss-client.c to set GSS_C_DCE_STYLE flagSam Hartman2011-10-141-0/+2
| | | | | | Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25333 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed some warnings on WindowsSam Hartman2011-09-191-2/+2
| | | | | | | | | | Windows VC compiler complains about comparison between signed and unsigned int types, unused variables Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com> Signed-off-by: Sam Hartman <hartmans@debian.org> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25205 dc483132-0cff-0310-8789-dd5450dbe970
* Reindent per krb5-batch-reindent.el.Ken Raeburn2011-09-041-1/+1
| | | | | | | Some minor reformatting added in places to avoid exceeding 80 columns. Used Emacs 22.1 built-in C mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25144 dc483132-0cff-0310-8789-dd5450dbe970
* WhitespaceGreg Hudson2011-08-091-2/+2
| | | | | | Also remove the erroneously added gssapi_err_krb5 error table sources. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25091 dc483132-0cff-0310-8789-dd5450dbe970
* Windows fixes for gss-client.cSam Hartman2011-08-091-9/+19
| | | | | | | | | | | | close(s) -> closesocket(s) #include "port-sockets.h" (for closesocket()) #include "winsock.h" -> #include "winsock2.h" for consistency with port-sockets.h call WSAStartup() before using sockets functions on Windows Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> Signed-off-by: Sam Hartman <hartmans@painless-security.com> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25089 dc483132-0cff-0310-8789-dd5450dbe970
* Merge users/lhoward/sasl-gs2 to trunkGreg Hudson2010-10-061-7/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24436 dc483132-0cff-0310-8789-dd5450dbe970
* Add IAKERB mechanism and gss_acquire_cred_with_passwordGreg Hudson2010-04-301-9/+81
| | | | | | | | | | | | | | 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
* Mark and reindent what's left of the appl directoryGreg Hudson2009-11-241-433/+429
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23342 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-7/+7
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except ↵Ken Raeburn2009-02-021-1/+1
| | | | | | unicode, windows code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
* Convert many uses of sprintf to snprintf or asprintfGreg Hudson2008-12-011-6/+10
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21258 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup some warnings on missing prototypesEzra Peisach2006-10-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18715 dc483132-0cff-0310-8789-dd5450dbe970
* reindent to style in doc/coding-style, via gnu indentKen Raeburn2005-10-211-480/+490
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17447 dc483132-0cff-0310-8789-dd5450dbe970
* Jeff's patches for a multi-threaded gss-sample suite, modified to not break theKen Raeburn2005-10-211-17/+130
| | | | | | | | | | 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
* * gss-client.c: change if (this) if (that) => if (this && that)Jeffrey Altman2004-02-271-170/+168
| | | | | | | | ticket: new target_version: next tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16136 dc483132-0cff-0310-8789-dd5450dbe970
* update copyright notices on gss sample appsTom Yu2004-02-111-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
* gss-client.c: remove extraneous parameters from client_establish_context()Jeffrey Altman2004-02-101-5/+5
| | | | | | | | ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16052 dc483132-0cff-0310-8789-dd5450dbe970
* * update usage() for gss-clientJeffrey Altman2004-02-071-0/+1
| | | | | | ticket: 2212 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16027 dc483132-0cff-0310-8789-dd5450dbe970
* 2004-02-06 Jeffrey Altman <jaltman@mit.edu>Jeffrey Altman2004-02-061-13/+20
| | | | | | | | | | | * Add new command line switches to the gss-client to support the use of GSS_C_SEQUENCE_FLAG or to disable the use of either GSS_C_MUTUAL_FLAG or GSS_C_REPLAY_FLAG ticket: 2212 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16023 dc483132-0cff-0310-8789-dd5450dbe970
* Between the 1.1 and 1.2 releases of Kerberos, the gss-sample protocolSam Hartman2003-01-091-15/+25
| | | | | | | | | | | | | | | changed. People seem to use this sample for interop testing, so support for the old protocol is needed. This commit adds a -v1 flag to the gss-client that will use the old protocol. The server does not yet support the old protocol, so the ticket remains open. Ticket: 881 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15103 dc483132-0cff-0310-8789-dd5450dbe970
* Free the context when it is non-null not when it is nullSam Hartman2002-04-301-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14428 dc483132-0cff-0310-8789-dd5450dbe970
* Fix typo in last checkinEzra Peisach2001-12-051-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14045 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-client.c, gss-misc.c, gss-server.c: Cast buffer length toEzra Peisach2001-12-051-5/+6
| | | | | | int in length argument for printf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14038 dc483132-0cff-0310-8789-dd5450dbe970
* 2001-11-01 Sam Hartman <hartmans@mit.edu>Sam Hartman2001-11-011-3/+3
| | | | | | | | | | * 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
* * gss-client.c (parse_oid): Cast argument to isdigit() to intEzra Peisach2001-06-181-5/+1
| | | | | | * 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
* * gss-misc.c: Include <sys/socket.h> for prototype definitionsEzra Peisach2000-09-261-9/+9
| | | | | | * gss-client.c gss-server.c: Warning cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12682 dc483132-0cff-0310-8789-dd5450dbe970
* * README, gss-client.c, gss-misc.c, gss-misc.h, gss-server.c:Tom Yu2000-02-111-218/+308
| | | | | | Patches from jik to make gss-sample more versatile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12039 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-client.c, gss-server.c, gss-misc.c: Include Windows headersDanilo Almeida2000-02-011-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
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-301-16/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* gss-server.c (server_establish_context): Rearrange server establishTheodore Tso1997-06-111-8/+12
| | | | | | | | | | | | 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
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-131-1/+1
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* gss-server.c: Re-added code to test import and export securityTheodore Tso1996-10-221-7/+52
| | | | | | | | | | | | | 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
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-221-326/+261
| | | | | | | | | 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
* When reading in the test value from a file, don't free freeTheodore Tso1996-06-061-2/+2
| | | | | | inbuf.value until after the last place where we use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8245 dc483132-0cff-0310-8789-dd5450dbe970
* gss-server.c (sign_server): Do better import/export security checking.Theodore Tso1996-03-021-13/+75
| | | | | | | | | | | | | | | 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
* Get the nametype OID from gss_display_name, print it, and then releaseTheodore Tso1996-02-281-2/+14
| | | | | | | the nametype OID. This tests gss_display_name()'s ability to return a valid nametype, which can then be freed successfully. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7570 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-client.c (main, client_establish_context): If the -d flag isTheodore Tso1996-01-041-2/+9
| | | | | | | given to the client, then try to delegate credentials when establishing the context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7265 dc483132-0cff-0310-8789-dd5450dbe970
* gss-client.c (main): Set display_file to be stdoutTheodore Tso1995-09-291-0/+4
| | | | | | | | | | | 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
* Update for GSSAPI-V2. Add -v2 switch to use some of these featuresPaul Park1995-08-311-16/+155
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6639 dc483132-0cff-0310-8789-dd5450dbe970
* Use new gss_{im,ex}port_sec_contextPaul Park1995-08-291-1/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6630 dc483132-0cff-0310-8789-dd5450dbe970
* Check for string.h and include if present, else include strings.hEzra Peisach1995-05-241-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5862 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-4/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4188 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: fix infinite recursion in rulesTom Yu1994-07-211-11/+21
| | | | | | | | * 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
* As submitted from Openvision --- a sample GSSAPI client/server application!Theodore Tso1994-06-151-0/+313
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3794 dc483132-0cff-0310-8789-dd5450dbe970