Create p11_ahex_dump() in p11util.c, that could be used
    elsewhere (for debugging purposes mostly).

Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
 usr/lib/pkcs11/leeds_stdll/host_api.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/usr/lib/pkcs11/leeds_stdll/host_api.c 
b/usr/lib/pkcs11/leeds_stdll/host_api.c
index 1629a99..6a0541a 100755
--- a/usr/lib/pkcs11/leeds_stdll/host_api.c
+++ b/usr/lib/pkcs11/leeds_stdll/host_api.c
@@ -720,36 +720,6 @@ APISlot2Local(snum)
 
 
 
-void
-hex_dump(char *str,CK_BYTE_PTR ptr, int  len )
-{
-   int  lendone=0;
-   int  by10 = 0;
-   int   i,j;
-
-
-   printf("%s Dumping  %d bytes \n",str,len);
-   by10 = len/10;
-   for (i=0;i< by10;i++){
-      for (j=0;j<10;j++){
-         lendone ++;
-         printf("0x%02X ",*ptr);
-         ptr++;
-      }
-      printf("\n");
-   }
-
-   for (j=lendone; j< len;j++){
-         printf("0x%02X ",*ptr);
-         ptr++;
-   }
-
-      printf("\n Done Dumping  \n");
-
-
-}
-
-
 
 CK_RV
 MY_LockMutex(void)
-- 
1.7.2.3


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to