projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return free memory more aggressively.
[radsecproxy.git]
/
radsecproxy-hash.c
diff --git
a/radsecproxy-hash.c
b/radsecproxy-hash.c
index
24cf236
..
0080d80
100644
(file)
--- a/
radsecproxy-hash.c
+++ b/
radsecproxy-hash.c
@@
-1,6
+1,4
@@
-/* Copyright (c) 2006-2009, Stig Venaas, UNINETT AS.
- * Copyright (c) 2010, UNINETT AS, NORDUnet A/S.
- * Copyright (c) 2010-2012, NORDUnet A/S. */
+/* Copyright (c) 2011,2013, NORDUnet A/S */
/* See LICENSE for licensing information. */
#include <stdio.h>
/* See LICENSE for licensing information. */
#include <stdio.h>
@@
-20,7
+18,7
@@
usage()
#endif
" -h\t\t\tdisplay this help and exit\n"
" -k key\t\tuse KEY for HMAC\n"
#endif
" -h\t\t\tdisplay this help and exit\n"
" -k key\t\tuse KEY for HMAC\n"
- " -t type\t\tprint digest of type TYPE [
mac
|hmac]\n");
+ " -t type\t\tprint digest of type TYPE [
hash
|hmac]\n");
exit(1);
}
exit(1);
}
@@
-33,7
+31,7
@@
main(int argc, char *argv[])
#if defined(READ_CONFIG)
char *config = NULL;
#endif
#if defined(READ_CONFIG)
char *config = NULL;
#endif
- uint8_t buf[
256
];
+ uint8_t buf[
64+1
];
char mac[80+1];
uint8_t *key = NULL;
enum { TYPE_HASH, TYPE_HMAC } type = TYPE_HASH;
char mac[80+1];
uint8_t *key = NULL;
enum { TYPE_HASH, TYPE_HMAC } type = TYPE_HASH;
@@
-86,3
+84,7
@@
main(int argc, char *argv[])
return 0;
}
return 0;
}
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */