Add composite name support (for when it shows up in libraries).
[shibboleth/cpp-sp-resolver.git] / src / shibresolver / resolver.h
index 179a4ba..ffbdc7c 100644 (file)
@@ -101,11 +101,30 @@ namespace shibresolver {
 #ifdef SHIBRESOLVER_HAVE_GSSAPI
         /**
          * Adds a GSS-API security context as input to the resolver.
-         * <p>The caller retains ownership of the context.
+         * <p>The caller loses ownership of the context.
          *
          * @param ctx an input context to evaluate
          */
-        void addToken(gss_ctx_id_t ctx);
+        void addToken(gss_ctx_id_t* ctx);
+
+        /**
+         * Adds a GSS-API exported security context as input to
+         * the resolver.
+         * <p>The caller retains ownership of the buffer.
+         *
+         * @param ctx an input exported security context to evaluate
+         */
+        void addToken(const gss_buffer_t token);
+
+# ifndef SHIBRESOLVER_HAVE_GSSAPI_COMPOSITE_NAME
+        /**
+         * Adds a GSS-API mechanism name as input to the resolver.
+         * <p>The caller retains ownership of the name.
+         *
+         * @param name an input mechanism name to evaluate
+         */
+        void addToken(gss_name_t name);
+# endif
 #endif
 
         /**