WIP: Fix the Proxy-State issue.
[libradsec.git] / radsecproxy-hash.c
index 48b3845..0080d80 100644 (file)
@@ -1,10 +1,5 @@
-/*
- * Copyright (C) 2011 NORDUnet A/S
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- */
+/* Copyright (c) 2011,2013, NORDUnet A/S */
+/* See LICENSE for licensing information. */
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -23,7 +18,7 @@ usage()
 #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);
 }
 
@@ -36,7 +31,7 @@ main(int argc, char *argv[])
 #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;
@@ -89,3 +84,7 @@ main(int argc, char *argv[])
 
   return 0;
 }
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */