From: Jeffrey Altman Date: Wed, 11 Feb 2004 22:18:58 +0000 (+0000) Subject: Add missing file: gss-misc.h copied from src/appl/gss-sample X-Git-Tag: krb5-1.4-beta1~624 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b4f1e4465c0166e572d09da434e818f9f04cfc5;p=krb5.git Add missing file: gss-misc.h copied from src/appl/gss-sample ticket: new target_version: 1.3.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16062 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/gss/ChangeLog b/src/windows/gss/ChangeLog index df98326ac..386bc405c 100644 --- a/src/windows/gss/ChangeLog +++ b/src/windows/gss/ChangeLog @@ -1,3 +1,7 @@ +2004-02-11 Jeffrey Altman + + * gss-misc.h: Add file. Copy from src/appl/gss-sample/ + 2004-02-06 Jeffrey Altman * resource.h: add new component id values for replay, mutual, sequence diff --git a/src/windows/gss/gss-misc.h b/src/windows/gss/gss-misc.h new file mode 100644 index 000000000..35b3b7390 --- /dev/null +++ b/src/windows/gss/gss-misc.h @@ -0,0 +1,60 @@ +/* + * Copyright 1994 by OpenVision Technologies, Inc. + * + * Permission to use, copy, modify, distribute, and sell this software + * and its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice appears in all copies and + * that both that copyright notice and this permission notice appear in + * supporting documentation, and that the name of OpenVision not be used + * in advertising or publicity pertaining to distribution of the software + * without specific, written prior permission. OpenVision makes no + * representations about the suitability of this software for any + * purpose. It is provided "as is" without express or implied warranty. + * + * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + +/* + * $Id$ + */ + +#ifndef _GSSMISC_H_ +#define _GSSMISC_H_ + +#include +#include + +extern FILE *display_file; + +int send_token + (int s, int flags, gss_buffer_t tok); +int recv_token + (int s, int *flags, gss_buffer_t tok); +void display_status + (char *msg, OM_uint32 maj_stat, OM_uint32 min_stat); +void display_ctx_flags + (OM_uint32 flags); +void print_token + (gss_buffer_t tok); + +/* Token types */ +#define TOKEN_NOOP (1<<0) +#define TOKEN_CONTEXT (1<<1) +#define TOKEN_DATA (1<<2) +#define TOKEN_MIC (1<<3) + +/* Token flags */ +#define TOKEN_CONTEXT_NEXT (1<<4) +#define TOKEN_WRAPPED (1<<5) +#define TOKEN_ENCRYPTED (1<<6) +#define TOKEN_SEND_MIC (1<<7) + +extern gss_buffer_t empty_token; + +#endif