• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/wpa/src/utils/

Lines Matching defs:hcert

478 static void add_logo(struct http_ctx *ctx, struct http_cert *hcert,
492 n = os_realloc_array(hcert->logo, hcert->num_logo + 1,
496 hcert->logo = n;
497 n = &hcert->logo[hcert->num_logo];
522 hcert->num_logo++;
526 static void add_logo_direct(struct http_ctx *ctx, struct http_cert *hcert,
577 add_logo(ctx, hcert, found_hash, uri);
583 static void add_logo_indirect(struct http_ctx *ctx, struct http_cert *hcert,
601 add_logo(ctx, hcert, hash, uri);
799 static void add_logotype_ext(struct http_ctx *ctx, struct http_cert *hcert,
858 add_logo_direct(ctx, hcert, info->d.direct);
861 add_logo_indirect(ctx, hcert, info->d.indirect);
870 static void parse_cert(struct http_ctx *ctx, struct http_cert *hcert,
873 os_memset(hcert, 0, sizeof(*hcert));
877 add_alt_names(ctx, hcert, *names);
879 add_logotype_ext(ctx, hcert, cert);
883 static void parse_cert_free(struct http_cert *hcert, GENERAL_NAMES *names)
887 for (i = 0; i < hcert->num_dnsname; i++)
888 OPENSSL_free(hcert->dnsname[i]);
889 os_free(hcert->dnsname);
891 for (i = 0; i < hcert->num_othername; i++)
892 os_free(hcert->othername[i].oid);
893 os_free(hcert->othername);
895 for (i = 0; i < hcert->num_logo; i++) {
896 os_free(hcert->logo[i].alg_oid);
897 os_free(hcert->logo[i].hash);
898 os_free(hcert->logo[i].uri);
900 os_free(hcert->logo);
909 struct http_cert hcert;
924 parse_cert(ctx, &hcert, cert, &names);
925 ret = ctx->cert_cb(ctx->cert_cb_ctx, &hcert);
926 parse_cert_free(&hcert, names);
937 struct http_cert hcert;
962 parse_cert(ctx, &hcert, cert, &names);
963 for (i = 0; i < hcert.num_othername; i++) {
964 if (os_strcmp(hcert.othername[i].oid,
966 char *name = os_zalloc(hcert.othername[i].len + 1);
968 os_memcpy(name, hcert.othername[i].data,
969 hcert.othername[i].len);
977 hcert.othername[i].data,
978 hcert.othername[i].len);
981 hcert.othername[i].oid);
983 hcert.othername[i].data,
984 hcert.othername[i].len);
987 parse_cert_free(&hcert, names);