Check "auth event notification" param in log_json
[nivanova/samba-autobuild/.git] / auth / gensec / gensec.h
index da3e0fdf31d8e5b18a91a4340b626fad36f881f4..d424067d02c8fb25e08fdf36a3413d17aeb41ce0 100644 (file)
@@ -138,15 +138,17 @@ size_t gensec_max_update_size(struct gensec_security *gensec_security);
 NTSTATUS gensec_update(struct gensec_security *gensec_security,
                       TALLOC_CTX *out_mem_ctx,
                       const DATA_BLOB in, DATA_BLOB *out);
-NTSTATUS gensec_update_ev(struct gensec_security *gensec_security,
-                         TALLOC_CTX *out_mem_ctx,
-                         struct tevent_context *ev,
-                         const DATA_BLOB in, DATA_BLOB *out);
 struct tevent_req *gensec_update_send(TALLOC_CTX *mem_ctx,
                                      struct tevent_context *ev,
                                      struct gensec_security *gensec_security,
                                      const DATA_BLOB in);
 NTSTATUS gensec_update_recv(struct tevent_req *req, TALLOC_CTX *out_mem_ctx, DATA_BLOB *out);
+
+#define GENSEC_UPDATE_IS_NTERROR(status) ( \
+       !NT_STATUS_IS_OK(status) && \
+       !NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED) \
+       )
+
 /**
  * @brief Ask for features for a following authentication
  *