Lines Matching defs:net
323 static void show_server_cert(am_net_t *net) {
327 cert = SSL_get_peer_certificate(net->ssl.ssl_handle);
330 AM_LOG_DEBUG(net->instance_id,
332 if (net->options != NULL && net->options->log != NULL) {
333 net->options->log("%s server certificate subject: %s", thisfunc, LOGEMPTY(line));
337 AM_LOG_DEBUG(net->instance_id,
339 if (net->options != NULL && net->options->log != NULL) {
340 net->options->log("%s server certificate issuer: %s", thisfunc, LOGEMPTY(line));
359 static char ssl_is_fatal_error(am_net_t *net, int ssl_error) {
369 if (net->options != NULL && net->options->log != NULL) {
370 net->options->log("%s %s", thisfunc, error_string);
373 AM_LOG_ERROR(net->instance_id, "%s %s", thisfunc, error_string);
584 am_net_t *net = (am_net_t *) arg;
585 if (net->options != NULL && net->options->log != NULL) {
586 net->options->log("%s %s (%s)", thisfunc,
589 AM_LOG_DEBUG(net->instance_id, "%s %s (%s)",
592 show_server_cert(net);