diff options
Diffstat (limited to 'ssh-gss.h')
-rw-r--r-- | ssh-gss.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -60,6 +60,17 @@ | |||
60 | 60 | ||
61 | #define SSH_GSS_OIDTYPE 0x06 | 61 | #define SSH_GSS_OIDTYPE 0x06 |
62 | 62 | ||
63 | #define SSH2_MSG_KEXGSS_INIT 30 | ||
64 | #define SSH2_MSG_KEXGSS_CONTINUE 31 | ||
65 | #define SSH2_MSG_KEXGSS_COMPLETE 32 | ||
66 | #define SSH2_MSG_KEXGSS_HOSTKEY 33 | ||
67 | #define SSH2_MSG_KEXGSS_ERROR 34 | ||
68 | #define SSH2_MSG_KEXGSS_GROUPREQ 40 | ||
69 | #define SSH2_MSG_KEXGSS_GROUP 41 | ||
70 | #define KEX_GSS_GRP1_SHA1_ID "gss-group1-sha1-" | ||
71 | #define KEX_GSS_GRP14_SHA1_ID "gss-group14-sha1-" | ||
72 | #define KEX_GSS_GEX_SHA1_ID "gss-gex-sha1-" | ||
73 | |||
63 | typedef struct { | 74 | typedef struct { |
64 | char *filename; | 75 | char *filename; |
65 | char *envvar; | 76 | char *envvar; |
@@ -97,6 +108,7 @@ typedef struct { | |||
97 | } Gssctxt; | 108 | } Gssctxt; |
98 | 109 | ||
99 | extern ssh_gssapi_mech *supported_mechs[]; | 110 | extern ssh_gssapi_mech *supported_mechs[]; |
111 | extern Gssctxt *gss_kex_context; | ||
100 | 112 | ||
101 | int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); | 113 | int ssh_gssapi_check_oid(Gssctxt *, void *, size_t); |
102 | void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); | 114 | void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t); |
@@ -121,12 +133,19 @@ void ssh_gssapi_buildmic(Buffer *, const char *, const char *, const char *); | |||
121 | int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *); | 133 | int ssh_gssapi_check_mechanism(Gssctxt **, gss_OID, const char *); |
122 | 134 | ||
123 | /* In the server */ | 135 | /* In the server */ |
136 | typedef int ssh_gssapi_check_fn(Gssctxt **, gss_OID, const char *); | ||
137 | char *ssh_gssapi_client_mechanisms(const char *host); | ||
138 | char *ssh_gssapi_kex_mechs(gss_OID_set, ssh_gssapi_check_fn *, const char *); | ||
139 | gss_OID ssh_gssapi_id_kex(Gssctxt *, char *, int); | ||
140 | int ssh_gssapi_server_check_mech(Gssctxt **,gss_OID, const char *); | ||
124 | int ssh_gssapi_userok(char *name); | 141 | int ssh_gssapi_userok(char *name); |
125 | 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); |
126 | void ssh_gssapi_do_child(char ***, u_int *); | 143 | void ssh_gssapi_do_child(char ***, u_int *); |
127 | void ssh_gssapi_cleanup_creds(void); | 144 | void ssh_gssapi_cleanup_creds(void); |
128 | void ssh_gssapi_storecreds(void); | 145 | void ssh_gssapi_storecreds(void); |
129 | 146 | ||
147 | char *ssh_gssapi_server_mechanisms(void); | ||
148 | int ssh_gssapi_oid_table_ok(); | ||
130 | #endif /* GSSAPI */ | 149 | #endif /* GSSAPI */ |
131 | 150 | ||
132 | #endif /* _SSH_GSS_H */ | 151 | #endif /* _SSH_GSS_H */ |