Home
last modified time | relevance | path

Searched refs:lws_malloc (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/libwebsockets/lib/jose/jwk/
Djwk.c111 e->buf = lws_malloc(len + 1, "jwk"); in _lws_jwk_set_el_jwk()
165 jwk->e[LWS_GENCRYPTO_KTY_OCT].buf = lws_malloc(ulen, __func__); in lws_jwk_dup_oct()
206 jwk->e[LWS_GENCRYPTO_OCT_KEYEL_K].buf = lws_malloc(sn, "oct"); in lws_jwk_generate()
258 tmp = lws_malloc(tmpsize, "rfc7638 tmp"); in lws_jwk_rfc7638_fingerprint()
289 jwk->meta[idx].buf = lws_malloc((unsigned int)len, __func__); in lws_jwk_strdup_meta()
Djose_key.c144 e->buf = lws_malloc(dec_size, "jwk"); in _lws_jwk_set_el_jwk_b64()
164 e->buf = lws_malloc(dec_size, "jwk"); in _lws_jwk_set_el_jwk_b64u()
603 char *buf = lws_malloc(buflen, "jwk-load"); in lws_jwk_load()
627 char *buf = lws_malloc((unsigned int)buflen, "jwk-save"); in lws_jwk_save()
/third_party/libwebsockets/lib/misc/
Dgetifaddrs.c144 *end = lws_malloc(sizeof(**end), "getifaddrs"); in getifaddrs2()
149 (*end)->ifa_addr = lws_malloc(salen, "getifaddrs"); in getifaddrs2()
157 lws_malloc(sizeof(ifr->ifr_broadaddr), "getifaddrs"); in getifaddrs2()
162 lws_malloc(sizeof(ifr->ifr_dstaddr), "getifaddrs"); in getifaddrs2()
Dlws-ring.c31 struct lws_ring *ring = lws_malloc(sizeof(*ring), "ring create"); in lws_ring_create()
42 ring->buf = lws_malloc(ring->buflen, "ring buf"); in lws_ring_create()
Ddiskcache.c98 struct lws_diskcache_scan *lds = lws_malloc(sizeof(*lds), "cachescan"); in lws_diskcache_create()
290 lds->batch = lws_malloc(sizeof(struct file_entry) * in lws_diskcache_trim()
/third_party/libwebsockets/lib/roles/http/server/
Daccess-log.c66 wsi->http.access_log.header_log = lws_malloc((unsigned int)l, "access log"); in lws_prepare_access_log_info()
113 lws_malloc((unsigned int)l + 5, "access log"); in lws_prepare_access_log_info()
129 wsi->http.access_log.referrer = lws_malloc((unsigned int)l + 5, "referrer"); in lws_prepare_access_log_info()
Drewrite.c9 struct lws_rewrite *r = lws_malloc(sizeof(*r), "rewrite"); in lws_rewrite_create()
/third_party/libwebsockets/lib/tls/
Dtls.c235 *buf = lws_malloc(s + 1, "alloc_file"); in alloc_file()
288 *buf = lws_malloc(s + 1, "alloc_file"); in alloc_file()
348 pem = lws_malloc((size_t)inlen, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
364 pem = lws_malloc(((size_t)inlen * 3) / 4, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
Dlws-genec-common.c75 lws_malloc(len + 1, "cert crv"); in lws_genec_confirm_curve_allowed_by_tls_id()
/third_party/libwebsockets/lib/cose/
Dcose_key.c244 e->buf = lws_malloc(len + 1, "ck"); in lws_ck_set_el()
404 ke->buf = lws_malloc(ke->len + 1, __func__); in cb_cose_key()
437 ke->buf = lws_malloc(ke->len + 1, __func__); in cb_cose_key()
670 ke->buf = lws_malloc(ctx->npos, __func__); in cb_cose_key()
694 ke->buf = lws_malloc(ctx->npos, __func__); in cb_cose_key()
810 ke->buf = lws_malloc((size_t)count, __func__); in lws_cose_key_generate()
822 ke->buf = lws_malloc(kl, __func__); in lws_cose_key_generate()
853 ke->buf = lws_malloc(sn, "oct"); in lws_cose_key_generate()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c411 *x509 = lws_malloc(sizeof(**x509), __func__); in lws_x509_create()
617 jwk->e[n].buf = lws_malloc(jwk->e[n].len, "certkeyimp"); in lws_x509_public_to_jwk()
719 jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf = lws_malloc((unsigned int)n, "ec"); in lws_x509_jwk_privkey_pem()
788 jwk->e[LWS_GENCRYPTO_RSA_KEYEL_D].buf = lws_malloc((unsigned int)n, "privjk"); in lws_x509_jwk_privkey_pem()
797 jwk->e[LWS_GENCRYPTO_RSA_KEYEL_P].buf = lws_malloc((unsigned int)n, "privjk"); in lws_x509_jwk_privkey_pem()
805 jwk->e[LWS_GENCRYPTO_RSA_KEYEL_Q].buf = lws_malloc((unsigned int)n, "privjk"); in lws_x509_jwk_privkey_pem()
Dopenssl-session.c192 ts = lws_malloc(sizeof(*ts) + nl + 1, __func__); in lws_tls_session_add_entry()
389 v = d.blob = lws_malloc(d.blob_len, __func__); in lws_tls_session_dump_save()
/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c287 lws_malloc(el[LWS_GENCRYPTO_EC_KEYEL_CRV].len, "ec"); in lws_genecdh_new_keypair()
295 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdh_new_keypair()
361 lws_malloc(el[LWS_GENCRYPTO_EC_KEYEL_CRV].len, "ec"); in lws_genecdsa_new_keypair()
369 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdsa_new_keypair()
Dmbedtls-x509.c323 *x509 = lws_malloc(sizeof(**x509), __func__); in lws_x509_create()
435 jwk->e[n].buf = lws_malloc(mbedtls_mpi_size(mpi[n]), "certjwk"); in lws_x509_public_to_jwk()
514 jwk->e[n].buf = lws_malloc(mbedtls_mpi_size(mpi[n]), "certjwk"); in lws_x509_jwk_privkey_pem()
/third_party/libwebsockets/lib/drivers/netdev/
Dnetdev.c57 buf = lws_malloc(max, __func__); /* length should be computed */ in lws_netdev_credentials_settings_set()
98 buf = lws_malloc(l, __func__); in lws_netdev_credentials_settings_get()
/third_party/libwebsockets/lib/core/
Dlws_map.c70 return lws_malloc(x, __func__); in lws_map_alloc_lws_malloc()
122 map = lws_malloc(size, __func__); in lws_map_create()
Dalloc.c83 void *lws_malloc(size_t size, const char *reason) in lws_malloc() function
/third_party/libwebsockets/lib/roles/mqtt/
Dprimitives.c159 lws_mqtt_str_t *s = lws_malloc(sizeof(*s) + lim + 1, __func__); in lws_mqtt_str_create()
283 s->buf = lws_malloc(s->len, __func__); in lws_mqtt_str_parse()
/third_party/libwebsockets/lib/drivers/settings/
Dsettings.c60 p = lws_malloc(n + 2, __func__); in lws_settings_plat_printf()
/third_party/libwebsockets/lib/plat/windows/
Dwindows-resolv.c39 fi = (FIXED_INFO *)lws_malloc(ul, __func__); in lws_plat_asyncdns_init()
/third_party/libwebsockets/lib/secure-streams/protocols/
Dss-mqtt.c85 expbuf = lws_malloc(used_out + 1, __func__); in secstream_mqtt_subscribe()
122 lws_malloc(sizeof(lws_mqtt_topic_elem_t), __func__); in secstream_mqtt_subscribe()
170 expbuf = lws_malloc(used_out + 1, __func__); in secstream_mqtt_publish()
620 h->u.mqtt.heap_baggage = lws_malloc(tot, __func__); in secstream_connect_munge_mqtt()
/third_party/libwebsockets/lib/plat/unix/
Dunix-plugins.c100 pin = lws_malloc(sizeof(*pin), __func__); in lws_plat_dlopen()
/third_party/libwebsockets/lib/roles/http/compression/deflate/
Ddeflate.c33 ctx->u.deflate = lws_malloc(sizeof(*ctx->u.deflate), __func__); in lcs_init_compression_deflate()
/third_party/libwebsockets/lib/core-net/client/
Dconmon.c99 ai = lws_malloc(al + cl + 1, __func__); in lws_conmon_append_copy_new_dns_results()
/third_party/libwebsockets/lib/system/fault-injection/
Dfault-injection.c149 pv = lws_malloc(sizeof(*pv) + n + 1, __func__); in lws_fi_add()
204 fi.pattern = lws_malloc((size_t)((fi.count >> 3) + 1), __func__); in do_inherit()

1234