Lines Matching refs:cert

218 static int process_est_cert(struct hs20_osu_client *ctx, xml_node_t *cert,  in process_est_cert()  argument
229 fingerprint = xml_node_get_text(ctx->xml, cert); in process_est_cert()
309 char *cert; in download_cert() local
350 cert = os_readfile(TMP_CERT_DL_FILE, &len); in download_cert()
352 if (cert == NULL) in download_cert()
355 if (sha256_vector(1, (const u8 **) &cert, &len, digest2) < 0) { in download_cert()
356 os_free(cert); in download_cert()
363 os_free(cert); in download_cert()
367 b64 = base64_encode(cert, len, NULL); in download_cert()
368 os_free(cert); in download_cert()
557 xml_node_t *tnds, *mo, *cert; in hs20_add_pps_mo() local
663 cert = get_child_node(ctx->xml, mo, in hs20_add_pps_mo()
666 if (cert && process_est_cert(ctx, cert, fqdn) < 0) { in hs20_add_pps_mo()
702 xml_node_t *cert; in update_pps_file() local
703 cert = get_child_node(ctx->xml, pps, in update_pps_file()
706 if (cert && os_file_exists("Cert/est_cert.der") && in update_pps_file()
707 process_est_cert(ctx, cert, ctx->fqdn) < 0) { in update_pps_file()
2907 static int osu_cert_cb(void *_ctx, struct http_cert *cert) in osu_cert_cb() argument
2922 ctx->server_dnsname = os_calloc(cert->num_dnsname, sizeof(char *)); in osu_cert_cb()
2926 for (i = 0; i < cert->num_dnsname; i++) { in osu_cert_cb()
2929 os_strdup(cert->dnsname[i]); in osu_cert_cb()
2933 if (host && os_strcasecmp(host, cert->dnsname[i]) == 0) in osu_cert_cb()
2935 wpa_printf(MSG_INFO, "dNSName '%s'", cert->dnsname[i]); in osu_cert_cb()
2949 for (i = 0; i < cert->num_othername; i++) { in osu_cert_cb()
2950 if (os_strcmp(cert->othername[i].oid, in osu_cert_cb()
2954 cert->othername[i].data, in osu_cert_cb()
2955 cert->othername[i].len); in osu_cert_cb()
2962 for (i = 0; i < cert->num_othername; i++) { in osu_cert_cb()
2963 if (os_strcmp(cert->othername[i].oid, in osu_cert_cb()
2966 if (cert->othername[i].len < 3) in osu_cert_cb()
2968 if (os_strncasecmp((char *) cert->othername[i].data, in osu_cert_cb()
2971 if (os_strncmp((char *) cert->othername[i].data + 3, in osu_cert_cb()
2973 cert->othername[i].len - 3) == 0) { in osu_cert_cb()
2990 for (i = 0; i < cert->num_logo; i++) { in osu_cert_cb()
2991 struct http_logo *logo = &cert->logo[i]; in osu_cert_cb()
3007 for (i = 0; i < cert->num_logo; i++) { in osu_cert_cb()
3008 struct http_logo *logo = &cert->logo[i]; in osu_cert_cb()
3042 for (i = 0; i < cert->num_logo; i++) { in osu_cert_cb()
3043 struct http_logo *logo = &cert->logo[i]; in osu_cert_cb()