diff -r b75757c81051 -r 318c4eab2439 gba/gbaserver/src/bootstrap.cpp --- 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 //for base64 en/decoding +#include +#include +#include //for base64 en/decoding + #include #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);