| 1 |
/* Definitions for gssutil class. This implements a session of the |
| 2 |
* plain TCP server. |
| 3 |
* |
| 4 |
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. |
| 5 |
* |
| 6 |
* This file is part of rsyslog. |
| 7 |
* |
| 8 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 |
* you may not use this file except in compliance with the License. |
| 10 |
* You may obtain a copy of the License at |
| 11 |
* |
| 12 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 13 |
* -or- |
| 14 |
* see COPYING.ASL20 in the source distribution |
| 15 |
* |
| 16 |
* Unless required by applicable law or agreed to in writing, software |
| 17 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
* See the License for the specific language governing permissions and |
| 20 |
* limitations under the License. |
| 21 |
*/ |
| 22 |
#ifndef GSS_MISC_H_INCLUDED |
| 23 |
#define GSS_MISC_H_INCLUDED 1 |
| 24 |
|
| 25 |
#include <stddef.h> |
| 26 |
#include <gssapi/gssapi.h> |
| 27 |
#include "obj.h" |
| 28 |
|
| 29 |
/* interfaces */ |
| 30 |
BEGINinterface(gssutil) /* name must also be changed in ENDinterface macro! */ |
| 31 |
int (*recv_token)(int s, gss_buffer_t tok, size_t max_tok_len, unsigned int timeout_secs); |
| 32 |
int (*send_token)(int s, gss_buffer_t tok); |
| 33 |
void (*display_status)(char *m, OM_uint32 maj_stat, OM_uint32 min_stat); |
| 34 |
void (*display_ctx_flags)(OM_uint32 flags); |
| 35 |
ENDinterface(gssutil) |
| 36 |
#define gssutilCURR_IF_VERSION 3 /* increment whenever you change the interface structure! */ |
| 37 |
|
| 38 |
|
| 39 |
/* prototypes */ |
| 40 |
PROTOTYPEObj(gssutil); |
| 41 |
|
| 42 |
/* the name of our library binary */ |
| 43 |
#define LM_GSSUTIL_FILENAME "lmgssutil" |
| 44 |
|
| 45 |
#endif /* #ifndef GSS_MISC_H_INCLUDED */ |