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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 if (fread(signature, signature_size, 1, cmd_out) != 1) { | 112 if (fread(signature, signature_size, 1, cmd_out) != 1) { |
113 debug("Couldn't read signature.\n"); | 113 debug("Couldn't read signature.\n"); |
114 pclose(cmd_out); | 114 pclose(cmd_out); |
115 Free(signature); | 115 Free(signature); |
116 return NULL; | 116 return NULL; |
117 } | 117 } |
118 | 118 |
119 pclose(cmd_out); | 119 pclose(cmd_out); |
120 return signature; | 120 return signature; |
121 } | 121 } |
OLD | NEW |