/** configuration options */
struct config_file* cfg;
- /** do threading (instead of forking) */
+ /** do threading (instead of forking) for async resolution */
int dothread;
+ /** shared data */
+ /* list of alloc-cache-id points and nextthreadnum */
+ /*struct shareddata* shared;*/
+ /** outstanding querylist and next querynum (to try) */
+
/** shared caches, and so on */
struct alloc_cache superalloc;
/** module env master value */
close(ctx->rrpipe[1]);
config_delete(ctx->cfg);
free(ctx);
- checklock_stop(); /* assumes during checklock tests libunbound users
- only create one context */
}
int
int
ub_val_ctx_process(struct ub_val_ctx* ctx)
{
+ /* TODO */
return UB_NOMEM;
}
{
/* become a resolver thread for a bit */
+ /* TODO */
return UB_NOMEM;
}
ub_val_resolve_async(struct ub_val_ctx* ctx, char* name, int rrtype,
int rrclass, void* mydata, ub_val_callback_t callback, int* async_id)
{
+ /* TODO */
return UB_NOMEM;
}
int
ub_val_cancel(struct ub_val_ctx* ctx, int async_id)
{
+ /* TODO */
return UB_NOMEM;
}
statstr(int sec, struct ub_val_result* result)
{
if(sec) return "[secure]";
- if(result->bogus) return "[not-secure (BOGUS)]";
- return "[not-secure (insecure)]";
+ if(result->bogus) return "[BOGUS (security failure)]";
+ return "[insecure]";
}
/** nice string for type */