diff options
Diffstat (limited to 'ssh-gss.h')
-rw-r--r-- | ssh-gss.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -62,6 +62,13 @@ | |||
62 | 62 | ||
63 | #define SSH_GSS_OIDTYPE 0x06 | 63 | #define SSH_GSS_OIDTYPE 0x06 |
64 | 64 | ||
65 | #define SSH2_MSG_KEXGSS_INIT 30 | ||
66 | #define SSH2_MSG_KEXGSS_CONTINUE 31 | ||
67 | #define SSH2_MSG_KEXGSS_COMPLETE 32 | ||
68 | #define SSH2_MSG_KEXGSS_HOSTKEY 33 | ||
69 | #define SSH2_MSG_KEXGSS_ERROR 34 | ||
70 | #define KEX_GSS_SHA1 "gss-group1-sha1-" | ||
71 | |||
65 | typedef struct { | 72 | typedef struct { |
66 | char *filename; | 73 | char *filename; |
67 | char *envvar; | 74 | char *envvar; |
@@ -99,6 +106,7 @@ typedef struct { | |||
99 | } Gssctxt; | 106 | } Gssctxt; |
100 | 107 | ||
101 | extern ssh_gssapi_mech *supported_mechs[]; | 108 | extern ssh_gssapi_mech *supported_mechs[]; |
109 | extern Gssctxt *gss_kex_context; | ||
102 | 110 | ||
103 | int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); | 111 | int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); |
104 | void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); | 112 | void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); |
@@ -121,7 +129,13 @@ OM_uint32 ssh_gssapi_sign(Gssctxt *, gss_buffer_t, gss_buffer_t); | |||
121 | OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); | 129 | OM_uint32 ssh_gssapi_server_ctx(Gssctxt **, gss_OID); |
122 | void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); | 130 | void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); |
123 | 131 | ||
124 | /* In the server */ | 132 | typedef int ssh_gssapi_check_fn(gss_OID, void *); |
133 | char *ssh_gssapi_client_mechanisms(char *host); | ||
134 | char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, void *); | ||
135 | int ssh_gssapi_check_mechanism(gss_OID, void *); | ||
136 | gss_OID ssh_gssapi_id_kex(Gssctxt *, char *); | ||
137 | |||
138 | int ssh_gssapi_server_check_mech(gss_OID, void *); | ||
125 | int ssh_gssapi_userok(char *name); | 139 | int ssh_gssapi_userok(char *name); |
126 | OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); | 140 | OM_uint32 ssh_gssapi_checkmic(Gssctxt *, gss_buffer_t, gss_buffer_t); |
127 | void ssh_gssapi_do_child(char ***, u_int *); | 141 | void ssh_gssapi_do_child(char ***, u_int *); |