summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2005-12-29 14:40:22 +0000
committerdfr <dfr@FreeBSD.org>2005-12-29 14:40:22 +0000
commitd9cbcb50b52b6c033a00eac46c9285955eed228c (patch)
treef226da354a25653f837708c3ecef3468ea981824 /crypto
parent11d326ac1ada3057acc7c5e99fe9a161d43a4c8e (diff)
downloadFreeBSD-src-d9cbcb50b52b6c033a00eac46c9285955eed228c.zip
FreeBSD-src-d9cbcb50b52b6c033a00eac46c9285955eed228c.tar.gz
Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism as a plugin library for the new implementation. This also includes a comprehensive set of manpages for the GSS-API functions with text mostly taken from the RFC. Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/sshd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c
index cf30bd6..7e5e386 100644
--- a/crypto/openssh/sshd.c
+++ b/crypto/openssh/sshd.c
@@ -56,6 +56,9 @@ RCSID("$FreeBSD$");
#ifdef __FreeBSD__
#include <resolv.h>
+#ifdef GSSAPI
+#include <gssapi/gssapi.h>
+#endif
#endif
#include "ssh.h"
@@ -1636,6 +1639,18 @@ main(int ac, char **av)
debug("res_init()");
res_init();
}
+#ifdef GSSAPI
+ /*
+ * Force GSS-API to parse its configuration and load any
+ * mechanism plugins.
+ */
+ {
+ gss_OID_set mechs;
+ OM_uint32 minor_status;
+ gss_indicate_mechs(&minor_status, &mechs);
+ gss_release_oid_set(&minor_status, &mechs);
+ }
+#endif
#endif
/*
OpenPOWER on IntegriCloud