diff options
Diffstat (limited to 'ssh-gss.h')
-rw-r--r-- | ssh-gss.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -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 | ||
75 | typedef struct { | 74 | typedef struct { |
@@ -131,20 +130,21 @@ void ssh_gssapi_delete_ctx(Gssctxt **); | |||
131 | OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); | 130 | OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); |
132 | OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); | 131 | OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); |
133 | void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); | 132 | void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); |
133 | int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *); | ||
134 | 134 | ||
135 | typedef int ssh_gssapi_check_fn(gss_OID, void *); | 135 | /* In the server */ |
136 | typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *); | ||
136 | char *ssh_gssapi_client_mechanisms(const char *host); | 137 | char *ssh_gssapi_client_mechanisms(const char *host); |
137 | char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, void *); | 138 | char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *); |
138 | int ssh_gssapi_check_mechanism(gss_OID, void *); | 139 | gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int); |
139 | gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int *); | 140 | int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *); |
140 | |||
141 | int ssh_gssapi_server_check_mech(gss_OID, void *); | ||
142 | int ssh_gssapi_userok(char *name); | 141 | int ssh_gssapi_userok(char *name); |
143 | OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); | 142 | OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); |
144 | void ssh_gssapi_do_child(char ***, u_int *); | 143 | void ssh_gssapi_do_child(char ***, u_int *); |
145 | void ssh_gssapi_cleanup_creds(void); | 144 | void ssh_gssapi_cleanup_creds(void); |
146 | void ssh_gssapi_storecreds(void); | 145 | void ssh_gssapi_storecreds(void); |
147 | char * ssh_gssapi_server_mechanisms(void); | 146 | |
147 | char *ssh_gssapi_server_mechanisms(void); | ||
148 | int ssh_gssapi_oid_table_ok(); | 148 | int ssh_gssapi_oid_table_ok(); |
149 | #endif /* GSSAPI */ | 149 | #endif /* GSSAPI */ |
150 | 150 | ||