- Timestamp:
- Jun 22, 2011, 3:40:50 PM (12 years ago)
- Branches:
- master, release-1.8, release-1.9
- Children:
- b343c2c
- Parents:
- 84a071f
- git-author:
- Jason Gross <jgross@mit.edu> (06/06/11 05:24:30)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (06/22/11 15:40:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zcrypt.c
r5b197f7 rd427f08 53 53 } ZWRITEOPTIONS; 54 54 55 char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance);55 G_GNUC_WARN_UNUSED_RESULT char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance); 56 56 int ParseCryptSpec(const char *spec, const char **keyfile); 57 char *BuildArgString(char **argv, int start, int end);58 char *read_keystring(const char *keyfile);57 G_GNUC_WARN_UNUSED_RESULT char *BuildArgString(char **argv, int start, int end); 58 G_GNUC_WARN_UNUSED_RESULT char *read_keystring(const char *keyfile); 59 59 60 60 int do_encrypt(int zephyr, const char *class, const char *instance, … … 364 364 /* Build a space-separated string from argv from elements between start * 365 365 * and end - 1. malloc()'s the returned string. */ 366 char *BuildArgString(char **argv, int start, int end)366 G_GNUC_WARN_UNUSED_RESULT char *BuildArgString(char **argv, int start, int end) 367 367 { 368 368 int len = 1; … … 401 401 #define MAX_SEARCH 3 402 402 /* Find the class/instance in the .crypt-table */ 403 char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance)403 G_GNUC_WARN_UNUSED_RESULT char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance) 404 404 { 405 405 char *keyfile = NULL; … … 579 579 } 580 580 581 char *slurp_stdin(int ignoredot, int *length) {581 G_GNUC_WARN_UNUSED_RESULT char *slurp_stdin(int ignoredot, int *length) { 582 582 char *buf; 583 583 char *inptr; … … 611 611 } 612 612 613 char *GetInputBuffer(ZWRITEOPTIONS *zoptions, int *length) {613 G_GNUC_WARN_UNUSED_RESULT char *GetInputBuffer(ZWRITEOPTIONS *zoptions, int *length) { 614 614 char *buf; 615 615 … … 637 637 } 638 638 639 char *read_keystring(const char *keyfile) {639 G_GNUC_WARN_UNUSED_RESULT char *read_keystring(const char *keyfile) { 640 640 char *keystring; 641 641 FILE *fkey = fopen(keyfile, "r");
Note: See TracChangeset
for help on using the changeset viewer.