summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/mechglue/g_initialize.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-11-18 03:11:26 +0000
committerTheodore Tso <tytso@mit.edu>1995-11-18 03:11:26 +0000
commitb0ee9d6d0167c55479bdb55bfbe1c22ab9355d6c (patch)
treef5a14061a1beb5cbf43dc1e1c6a996b8e3344922 /src/lib/gssapi/mechglue/g_initialize.c
parent1124954ffcd3e1e500f372f55bda6cadad4ff4ad (diff)
downloadkrb5-b0ee9d6d0167c55479bdb55bfbe1c22ab9355d6c.tar.gz
krb5-b0ee9d6d0167c55479bdb55bfbe1c22ab9355d6c.tar.xz
krb5-b0ee9d6d0167c55479bdb55bfbe1c22ab9355d6c.zip
Renamed filenames so they would be unique in an 8.3 filesystem. Added
GSSAPI V2 functions to mechglueP.h (now mglueP.h) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7114 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/mechglue/g_initialize.c')
-rw-r--r--src/lib/gssapi/mechglue/g_initialize.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
new file mode 100644
index 0000000000..5081b1a286
--- /dev/null
+++ b/src/lib/gssapi/mechglue/g_initialize.c
@@ -0,0 +1,34 @@
+#ident "@(#)gss_initialize.c 1.5 95/09/11 SMI"
+/*
+ * This function will initialize the gssapi mechglue library
+ *
+ * Copyright (c) 1995, by Sun Microsystems, Inc.
+ * All rights reserved.
+ */
+
+#include "mglueP.h"
+
+static int _gss_initialized = 0;
+
+void gss_initialize (void)
+{
+ gss_mechanism mech;
+
+ /* Make sure we've not run already */
+ if (_gss_initialized)
+ return;
+ _gss_initialized = 1;
+
+ /*
+ * Use hard-coded in mechanisms... I need to know what mechanisms
+ * are supported... As more mechanisms become supported, they
+ * should be added here, unless shared libraries are used.
+ */
+
+ /* Initialize the krb5 mechanism */
+ mech = (gss_mechanism)krb5_gss_initialize();
+ if (mech)
+ add_mechanism (mech, 1);
+
+ return;
+}