Lines Matching refs:pem
248 uint8_t *pem = NULL, *p, *end, *opem; in lws_tls_alloc_pem_to_der_file() local
254 n = alloc_file(context, filename, (uint8_t **)&pem, &len); in lws_tls_alloc_pem_to_der_file()
258 pem = (uint8_t *)inbuf; in lws_tls_alloc_pem_to_der_file()
262 opem = p = pem; in lws_tls_alloc_pem_to_der_file()
269 pem = lws_malloc((size_t)inlen, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
270 if (!pem) in lws_tls_alloc_pem_to_der_file()
273 memcpy(pem, inbuf, (size_t)inlen); in lws_tls_alloc_pem_to_der_file()
275 *buf = pem; in lws_tls_alloc_pem_to_der_file()
285 pem = lws_malloc(((size_t)inlen * 3) / 4, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
286 if (!pem) { in lws_tls_alloc_pem_to_der_file()
334 (char *)pem, (int)(long long)len); in lws_tls_alloc_pem_to_der_file()
335 *buf = (uint8_t *)pem; in lws_tls_alloc_pem_to_der_file()
340 lws_free((uint8_t *)pem); in lws_tls_alloc_pem_to_der_file()