+int afb_context_connect_validated(struct afb_context *context, const char *uuid, struct afb_token *token, struct afb_cred *cred)
+{
+ int rc = afb_context_connect(context, uuid, token, cred);
+ if (!rc)
+ context->validated = 1;
+ return rc;
+}
+
+void afb_context_init_validated(struct afb_context *context, struct afb_session *session, struct afb_token *token, struct afb_cred *cred)
+{
+ afb_context_init(context, session, token, cred);
+ context->validated = 1;
+}
+