Home
last modified time | relevance | path

Searched refs:pembuf (Results 1 – 1 of 1) sorted by relevance

/external/libwebsockets/minimal-examples/crypto/minimal-crypto-x509/
Dmain.c16 read_pem(const char *filename, char *pembuf, int pembuf_len) in read_pem() argument
22 n = read(fd, pembuf, pembuf_len - 1); in read_pem()
25 pembuf[n++] = '\0'; in read_pem()
32 char *pembuf, int pembuf_len) in read_pem_c509_cert() argument
36 n = read_pem(filename, pembuf, pembuf_len); in read_pem_c509_cert()
46 if (lws_x509_parse_from_pem(*x509, pembuf, n) < 0) { in read_pem_c509_cert()
63 char pembuf[6144]; in main() local
90 if (read_pem_c509_cert(&x509, p, pembuf, sizeof(pembuf))) { in main()
99 if (read_pem_c509_cert(&x509_trusted, p, pembuf, in main()
100 sizeof(pembuf))) { in main()
[all …]