]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/cipherutils.c
FIX: lf hitag : Mea culpa, simulation should not have reader_field on. thanks to...
[proxmark3-svn] / client / loclass / cipherutils.c
index f82a11cee430b0aea26c7693c4ee3e978822f322..427d3a254a05da2a1cafd26233d20f959db3bd8d 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with IClassCipher.  If not, see <http://www.gnu.org/licenses/>.
+ * along with loclass.  If not, see <http://www.gnu.org/licenses/>.
+ * 
+ * 
+ * 
  ****************************************************************************/
 
 #include <stdint.h>
@@ -168,6 +171,7 @@ void printarr(char * name, uint8_t* arr, int len)
        }
        cx += snprintf(output+cx,outsize-cx,"};");
        prnlog(output);
+       free(output);
 }
 
 void printvar(char * name, uint8_t* arr, int len)
@@ -185,6 +189,7 @@ void printvar(char * name, uint8_t* arr, int len)
        }
 
        prnlog(output);
+       free(output);
 }
 
 void printarr_human_readable(char * title, uint8_t* arr, int len)
@@ -211,7 +216,7 @@ void printarr_human_readable(char * title, uint8_t* arr, int len)
 // Code for testing below
 //-----------------------------
 
-
+#ifndef ON_DEVICE
 int testBitStream()
 {
        uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF};
@@ -275,7 +280,6 @@ int testReversedBitstream()
        return 0;
 }
 
-
 int testCipherUtils(void)
 {
        prnlog("[+] Testing some internals...");
@@ -284,3 +288,4 @@ int testCipherUtils(void)
        retval |= testReversedBitstream();
        return retval;
 }
+#endif
Impressum, Datenschutz