Lines Matching defs:pem
917 * Public key pem to der conversion
920 static CURLcode pubkey_pem_to_der(const char *pem,
927 /* if no pem, exit. */
928 if(!pem)
931 begin_pos = strstr(pem, "-----BEGIN PUBLIC KEY-----");
935 pem_count = begin_pos - pem;
937 if(0 != pem_count && '\n' != pem[pem_count - 1])
944 end_pos = strstr(pem + pem_count, "\n-----END PUBLIC KEY-----");
948 pem_len = end_pos - pem;
955 * Here we loop through the pem array one character at a time between the
960 if('\n' != pem[pem_count] && '\r' != pem[pem_count])
961 stripped_pem[stripped_pem_count++] = pem[pem_count];