* kerberos 5 distribution.
*/
-gss_cred_id_t gss_cred = GSS_C_NO_CREDENTIAL;
-
static void display_status_1(m, code, type)
char *m;
OM_uint32 code;
}
#ifdef GSI
-int get_gsi_cred()
+char * get_gsi_name()
{
OM_uint32 maj_stat;
OM_uint32 min_stat;
+ gss_name_t pname = GSS_C_NO_NAME;
+ gss_buffer_desc tmpname;
+ gss_buffer_t tmpnamed = &tmpname;
+ char *retname;
gss_OID_set oidset;
-
+ gss_cred_id_t gss_cred = GSS_C_NO_CREDENTIAL;
+
debug("calling gss_acquire_cred");
gss_create_empty_oid_set(&min_stat,&oidset);
gss_add_oid_set_member(&min_stat,&supported_mechs[GSI].oid,&oidset);
return 0;
}
- return 1; /* Success */
-}
-
-char * get_gsi_name()
-{
- OM_uint32 maj_stat;
- OM_uint32 min_stat;
- gss_name_t pname = GSS_C_NO_NAME;
- gss_buffer_desc tmpname;
- gss_buffer_t tmpnamed = &tmpname;
- char *retname;
-
debug("calling gss_inquire_cred");
maj_stat = gss_inquire_cred(&min_stat,
gss_cred,
do {
maj_stat =
gss_init_sec_context(&min_stat,
- gss_cred,
+ GSS_C_NO_CREDENTIAL,
&gss_context,
target_name,
&mech_oid,
*/
if ((supported_authentications & (1 << SSH_AUTH_GSSAPI)) &&
options.gss_authentication) {
- if (get_gsi_cred()) {
char * retname;
char * newname;
}
}
}
- }
- debug("server_user %s", server_user);
+ debug("server_user %s", server_user);
}
#endif /* GSI */
#endif /* GSSAPI */