Move TRP messaging to tr_msg.c. Fix old bug.
[trust_router.git] / tid / tid_resp.c
index 2611b3b..44a866a 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include <talloc.h>
 
 #include <tid_internal.h>
 
+TID_RESP *tid_resp_new(TALLOC_CTX *mem_ctx)
+{
+  return talloc(mem_ctx, TID_RESP);
+}
+
+void tid_resp_free(TID_RESP *resp)
+{
+  if (resp)
+    talloc_free(resp);
+}
+
 TR_EXPORT int tid_resp_get_result(TID_RESP *resp)
 {
   return(resp->result);