diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-02-11 22:18:58 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-02-11 22:18:58 +0000 |
commit | 3b4f1e4465c0166e572d09da434e818f9f04cfc5 (patch) | |
tree | 4348cc2f14800d053447f1f56e3a1bebb95b5f30 /src/windows/gss | |
parent | e7155b5b369b502bb763032e498340f4a2957792 (diff) | |
download | krb5-3b4f1e4465c0166e572d09da434e818f9f04cfc5.tar.gz krb5-3b4f1e4465c0166e572d09da434e818f9f04cfc5.tar.xz krb5-3b4f1e4465c0166e572d09da434e818f9f04cfc5.zip |
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
Diffstat (limited to 'src/windows/gss')
-rw-r--r-- | src/windows/gss/ChangeLog | 4 | ||||
-rw-r--r-- | src/windows/gss/gss-misc.h | 60 |
2 files changed, 64 insertions, 0 deletions
diff --git a/src/windows/gss/ChangeLog b/src/windows/gss/ChangeLog index df98326ac9..386bc405c3 100644 --- a/src/windows/gss/ChangeLog +++ b/src/windows/gss/ChangeLog @@ -1,3 +1,7 @@ +2004-02-11 Jeffrey Altman <jaltman@mit.edu> + + * gss-misc.h: Add file. Copy from src/appl/gss-sample/ + 2004-02-06 Jeffrey Altman <jaltman@mit.edu> * 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 0000000000..35b3b73906 --- /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 <gssapi/gssapi_generic.h> +#include <stdio.h> + +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 |