Lines Matching defs:librpz
37 librpz_t *librpz;
96 level <= librpz->log_level_val(LIBRPZ_LOG_INVALID))
116 case LIBRPZ_LOG_TRACE3: /* librpz hits */
120 case LIBRPZ_LOG_TRACE4: /* librpz lookups */
137 INSIST(librpz == NULL);
141 * Notice if librpz is available.
143 librpz = librpz_lib_open(&librpz_lib_open_emsg, &librpz_handle,
146 * Stop now without complaining if librpz is not available.
147 * Complain later if and when librpz is needed for a view with
150 if (librpz == NULL) {
156 librpz->set_log(dnsrps_log_fnc, NULL);
158 clist = librpz->clist_create(&emsg, dnsrps_lock, dnsrps_unlock,
177 librpz->clist_detach(&clist);
181 if (librpz != NULL) {
204 new->rps_client = librpz->client_create(&emsg, clist, rps_cstr, false);
208 "librpz->client_create(): %s", emsg.c);
229 * Fail only if we failed to link to librpz.
231 if (librpz == NULL) {
234 "librpz->connect(): %s", librpz_lib_open_emsg.c);
238 if (!librpz->connect(&emsg, rpzs->rps_client, true)) {
241 "librpz->connect(): %s", emsg.c);
246 DNS_RPZ_INFO_LEVEL, "dnsrps: librpz version %s",
247 librpz->version);
264 if (!librpz->rsp_create(emsg, &rpsdb->rsp, NULL, rpzs->rps_client,
342 * Convert a classic BIND9 RPZ rewrite or trigger type to a librpz trigger type.
392 librpz->rsp_detach(&rpsdb->rsp);
476 if (!librpz->rsp_soa(&emsg, &ttl, NULL, NULL, &rpsdb->result,
479 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
488 * Forge an rdataset of the desired type from a librpz result.
532 librpz->log(LIBRPZ_LOG_ERROR, NULL,
564 if (!librpz->rsp_result(&emsg, &rpsdb->result, true, rpsdb->rsp)) {
565 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
568 if (!librpz->rsp_rr(&emsg, &foundtype, &class, &ttl, NULL,
572 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
586 if (!librpz->rsp_rr(&emsg, &foundtype, NULL, NULL, NULL,
590 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
713 if (!librpz->rsp_soa(&emsg, NULL, &rr, NULL, &rpsdb->result,
716 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
725 if (!librpz->rsp_rr(&emsg, &type, &class, NULL, &rr,
729 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
757 if (!librpz->rsp_result(&emsg, &rpsdb->result, true, rpsdb->rsp)) {
758 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
846 if (!librpz->rsp_result(&emsg, &rpsdb->result, true, rpsdb->rsp)) {
847 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);
859 if (!librpz->rsp_rr(&emsg, &type, &class, &ttl, NULL,
863 librpz->log(LIBRPZ_LOG_ERROR, NULL, "%s", emsg.c);