gss: SAnon - the Simple Anonymous GSS-API mechanism
Add support for SAnon, a simple key agreement protocol that provides no authentication of initiator or acceptor using x25519 ECDH key exchange. See doc/standardization/draft-howard-gss-sanon-xx.txt for a protocol description.
This commit is contained in:

committed by
Nicolas Williams

parent
beda11a079
commit
4a7eb74374
@@ -296,10 +296,8 @@ _gss_load_mech(void)
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
fp = fopen(conf ? conf : _PATH_GSS_MECH, "r");
|
||||
if (!fp) {
|
||||
HEIMDAL_MUTEX_unlock(&_gss_mech_mutex);
|
||||
return;
|
||||
}
|
||||
if (!fp)
|
||||
goto out;
|
||||
rk_cloexec_file(fp);
|
||||
|
||||
while (fgets(buf, sizeof(buf), fp)) {
|
||||
@@ -460,6 +458,9 @@ _gss_load_mech(void)
|
||||
}
|
||||
fclose(fp);
|
||||
#endif
|
||||
|
||||
out:
|
||||
add_builtin(__gss_sanon_initialize());
|
||||
HEIMDAL_MUTEX_unlock(&_gss_mech_mutex);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user