gba/gbaserver/src/bootstrap.cpp
changeset 15 318c4eab2439
parent 0 164170e6151a
child 66 67b3e3c1fc87
--- a/gba/gbaserver/src/bootstrap.cpp	Fri Mar 19 09:41:08 2010 +0200
+++ b/gba/gbaserver/src/bootstrap.cpp	Fri Apr 16 15:53:24 2010 +0300
@@ -25,7 +25,10 @@
 // 6. return SRES 
 // 7. Store keymaterial  to a token   
 
-#include <imcvcodc.h>                   //for base64 en/decoding
+#include <s32stor.h>
+#include <s32file.h>
+#include <tconvbase64.h>                   //for base64 en/decoding
+
 #include <ecom.h>
 #include "dataretriever.h"
 #include "bootstrap.h" 
@@ -699,8 +702,7 @@
     ptrDecNonce.FillZ();
     
     // decodes the base64 nonce
-    TImCodecB64 b64coder;
-    b64coder.Initialise();
+    TBase64 b64coder;
     b64coder.Decode( *nonce, ptrDecNonce );
     
     GBA_TRACE_DEBUG((" The decoded nonce value in binary"));
@@ -1037,7 +1039,8 @@
             }
         
         GBA_TRACE_DEBUG(("Cached IMPI = ")); 
-        GBA_TRACE_DEBUG(*tmpIdentity);
+        if(tmpIdentity != NULL)
+        	GBA_TRACE_DEBUG(*tmpIdentity);
         GBA_TRACE_DEBUG(("IMPI from smart card = ")); 
         GBA_TRACE_DEBUG(*iIdentity);