Searched refs:FileUniquePtr (Results 1 – 1 of 1) sorted by relevance
23 using FileUniquePtr = std::unique_ptr<FILE, decltype(&fclose)>; typedef155 FileUniquePtr f(fopen(kGeneratedPrivateKey, "w"), &fclose); in GenerateDeveloperCredentialsToFile()164 FileUniquePtr cert_file(fopen(kGeneratedRootCertificateName, "w"), &fclose); in GenerateDeveloperCredentialsToFile()190 FileUniquePtr key_file(fopen(private_key_path.c_str(), "r"), &fclose); in GenerateCredentials()199 FileUniquePtr cert_file(fopen(server_certificate_path.c_str(), "r"), &fclose); in GenerateCredentials()