r6800: A big GENSEC update:
[samba.git] / source4 / auth / gensec / gensec.h
index 268881e4ba1ee58c14318d230fb4f75fd5f68d1c..be6731abfa9d45c7ebd5f38619644868ed1e57d0 100644 (file)
@@ -54,7 +54,7 @@ struct gensec_security_ops {
        const char *name;
        const char *sasl_name;
        uint8_t auth_type;  /* 0 if not offered on DCE-RPC */
-       const char *oid;  /* NULL if not offered by SPNEGO */
+       const char **oid;  /* NULL if not offered by SPNEGO */
        NTSTATUS (*client_start)(struct gensec_security *gensec_security);
        NTSTATUS (*server_start)(struct gensec_security *gensec_security);
        NTSTATUS (*update)(struct gensec_security *gensec_security, TALLOC_CTX *out_mem_ctx,
@@ -92,6 +92,11 @@ struct gensec_security_ops {
        BOOL enabled;
 };
        
+struct gensec_security_ops_wrapper {
+       const struct gensec_security_ops *op;
+       const char *oid;
+};
+
 #define GENSEC_INTERFACE_VERSION 0
 
 struct gensec_security {