Lines Matching defs:pem_encoded
290 std::string DecodePEM(const std::string& pem_encoded) {
301 net::PEMTokenizer pem_tokenizer(pem_encoded, pem_headers);
309 if (!base::Base64Decode(pem_encoded, &decoded)) {
310 LOG(ERROR) << "Unable to base64 decode X509 data: " << pem_encoded;
450 const std::string& pem_encoded) {
451 std::string decoded = DecodePEM(pem_encoded);
463 std::string* pem_encoded) {
469 *pem_encoded = it->second;
470 if (pem_encoded->empty()) {
485 std::string pem_encoded;
486 if (!GUIDRefToPEMEncoding(certs_by_guid, guid_ref, &pem_encoded))
490 onc_object->SetStringWithoutPathExpansion(key_pem, pem_encoded);
510 std::string pem_encoded;
511 if (!GUIDRefToPEMEncoding(certs_by_guid, guid_ref, &pem_encoded))
514 pem_list->AppendString(pem_encoded);
530 std::string pem_encoded;
531 if (!GUIDRefToPEMEncoding(certs_by_guid, guid_ref, &pem_encoded))
535 pem_list->AppendString(pem_encoded);