summaryrefslogtreecommitdiff
path: root/ssh-gss.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-gss.h')
-rw-r--r--ssh-gss.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/ssh-gss.h b/ssh-gss.h
index 213930103..ca8da70a2 100644
--- a/ssh-gss.h
+++ b/ssh-gss.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-gss.h,v 1.5 2004/06/21 17:36:31 avsm Exp $ */ 1/* $OpenBSD: ssh-gss.h,v 1.9 2006/08/18 14:40:34 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. 3 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
4 * 4 *
@@ -28,8 +28,6 @@
28 28
29#ifdef GSSAPI 29#ifdef GSSAPI
30 30
31#include "buffer.h"
32
33#ifdef HAVE_GSSAPI_H 31#ifdef HAVE_GSSAPI_H
34#include <gssapi.h> 32#include <gssapi.h>
35#elif defined(HAVE_GSSAPI_GSSAPI_H) 33#elif defined(HAVE_GSSAPI_GSSAPI_H)
@@ -62,14 +60,15 @@
62 60
63#define SSH_GSS_OIDTYPE 0x06 61#define SSH_GSS_OIDTYPE 0x06
64 62
65#define SSH2_MSG_KEXGSS_INIT 30 63#define SSH2_MSG_KEXGSS_INIT 30
66#define SSH2_MSG_KEXGSS_CONTINUE 31 64#define SSH2_MSG_KEXGSS_CONTINUE 31
67#define SSH2_MSG_KEXGSS_COMPLETE 32 65#define SSH2_MSG_KEXGSS_COMPLETE 32
68#define SSH2_MSG_KEXGSS_HOSTKEY 33 66#define SSH2_MSG_KEXGSS_HOSTKEY 33
69#define SSH2_MSG_KEXGSS_ERROR 34 67#define SSH2_MSG_KEXGSS_ERROR 34
70#define SSH2_MSG_KEXGSS_GROUPREQ 40 68#define SSH2_MSG_KEXGSS_GROUPREQ 40
71#define SSH2_MSG_KEXGSS_GROUP 41 69#define SSH2_MSG_KEXGSS_GROUP 41
72#define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-" 70#define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-"
71#define KEX_GSS_GRP14_SHA1_ID "gss-group14-sha1-"
73#define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-" 72#define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-"
74 73
75typedef struct { 74typedef struct {
@@ -131,20 +130,21 @@ void ssh_gssapi_delete_ctx(Gssctxt **);
131OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); 130OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t);
132OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); 131OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID);
133void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); 132void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *);
133int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *);
134 134
135typedef int ssh_gssapi_check_fn(gss_OID, void *); 135/* In the server */
136typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *);
136char *ssh_gssapi_client_mechanisms(const char *host); 137char *ssh_gssapi_client_mechanisms(const char *host);
137char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, void *); 138char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *);
138int ssh_gssapi_check_mechanism(gss_OID, void *); 139gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int);
139gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int *); 140int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *);
140
141int ssh_gssapi_server_check_mech(gss_OID, void *);
142int ssh_gssapi_userok(char *name); 141int ssh_gssapi_userok(char *name);
143OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); 142OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t);
144void ssh_gssapi_do_child(char ***, u_int *); 143void ssh_gssapi_do_child(char ***, u_int *);
145void ssh_gssapi_cleanup_creds(void); 144void ssh_gssapi_cleanup_creds(void);
146void ssh_gssapi_storecreds(void); 145void ssh_gssapi_storecreds(void);
147char * ssh_gssapi_server_mechanisms(void); 146
147char *ssh_gssapi_server_mechanisms(void);
148int ssh_gssapi_oid_table_ok(); 148int ssh_gssapi_oid_table_ok();
149#endif /* GSSAPI */ 149#endif /* GSSAPI */
150 150