49 mcrt_ctx = calloc(
sizeof(*mcrt_ctx), 1);
50 if (mcrt_ctx == NULL) {
74 if (c_ring->num == sslcert_num) {
103 if (mcrt_ctx == NULL) {
110 mcrt_ctx->
cb(
true, mcrt_ctx->
cbpw);
126 if (mcrt_ctx == NULL) {
131 mcrt_ctx->
cb(
false, mcrt_ctx->
cbpw);
142 if (strcmp(argv[1],
"DESTROY") == 0) {
144 }
else if (strcmp(argv[1],
"GO") == 0) {
int moutf(enum monkey_output_type mout_type, const char *fmt,...)
static void free_sslcert_context(struct monkey_cert *mcrt_ctx)
nserror(* cb)(bool, void *)
static void monkey_sslcert_handle_go(int argc, char **argv)
Interface to utility string handling.
nserror gui_cert_verify(nsurl *url, const struct cert_chain *chain, nserror(*cb)(bool proceed, void *pw), void *cbpw)
Prompt the user to verify a certificate with issuse.
#define RING_ITERATE_END(ring, iteratorptr)
#define RING_INSERT(ring, element)
Insert the given item into the specified ring.
void monkey_sslcert_handle_command(int argc, char **argv)
struct monkey_cert * r_prev
nserror
Enumeration of error codes.
static void monkey_sslcert_handle_destroy(int argc, char **argv)
#define RING_REMOVE(ring, element)
Remove the given element from the specified ring.
void urldb_set_cert_permissions(struct nsurl *url, bool permit)
Set certificate verification permissions.
nsurl * nsurl_ref(nsurl *url)
Increment the reference count to a NetSurf URL object.
#define RING_ITERATE_START(ringtype, ring, iteratorptr)
struct monkey_cert * r_next
static struct monkey_cert * cert_ring
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
NetSurf URL handling (interface).
struct nsurl nsurl
NetSurf URL object.
static struct monkey_cert * monkey_find_sslcert_by_num(uint32_t sslcert_num)
void nsurl_unref(nsurl *url)
Drop a reference to a NetSurf URL object.
#define RING_ITERATE_STOP(ring, iteratorptr)
Unified URL information database internal interface.