| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 * | 4 * |
| 5 * Utility functions for file and key handling. | 5 * Utility functions for file and key handling. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "file_keys.h" | 8 #include "file_keys.h" |
| 9 | 9 |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 if (fread(signature, signature_size, 1, cmd_out) != 1) { | 111 if (fread(signature, signature_size, 1, cmd_out) != 1) { |
| 112 fprintf(stderr, "Couldn't read signature.\n"); | 112 fprintf(stderr, "Couldn't read signature.\n"); |
| 113 pclose(cmd_out); | 113 pclose(cmd_out); |
| 114 Free(signature); | 114 Free(signature); |
| 115 return NULL; | 115 return NULL; |
| 116 } | 116 } |
| 117 | 117 |
| 118 pclose(cmd_out); | 118 pclose(cmd_out); |
| 119 return signature; | 119 return signature; |
| 120 } | 120 } |
| OLD | NEW |