Lines Matching refs:pem
42 size_t der_size, char **pem, size_t *pem_size)
109 if (pem != NULL) {
110 *pem = pem_cert_str;
124 errno_t sss_cert_pem_to_der(TALLOC_CTX *mem_ctx, const char *pem,
146 if (pem == NULL || *pem == '\0') {
150 if ((pem = strstr(pem, NS_CERT_HEADER)) == NULL) {
155 pem_len = strlen(pem);
161 if (pem[NS_CERT_HEADER_LEN] != '\n') {
166 pe = pem + pem_len - NS_CERT_TRAILER_LEN;
167 if (pem[pem_len - 1] == '\n') {
175 ps = pem + NS_CERT_HEADER_LEN + 1;