gba/gbafilter/src/HTTPFilterGBA.cpp
branchRCL_3
changeset 8 ece4bbb094df
parent 7 6e226572c5f0
equal deleted inserted replaced
7:6e226572c5f0 8:ece4bbb094df
    18 #include <http/rhttptransaction.h>
    18 #include <http/rhttptransaction.h>
    19 #include <http/rhttpheaders.h>
    19 #include <http/rhttpheaders.h>
    20 #include <http/rhttpresponse.h>
    20 #include <http/rhttpresponse.h>
    21 #include <httperr.h>
    21 #include <httperr.h>
    22 #include <httpstringconstants.h>
    22 #include <httpstringconstants.h>
    23 #include <imcvcodc.h>      //for base64 en/decoding
    23 #include <tconvbase64.h>                   //for base64 en/decoding
    24 #include "HTTPFilterGBA.h"
    24 #include "HTTPFilterGBA.h"
    25 #include "GbaCommon.h"
    25 #include "GbaCommon.h"
    26 #include <bautils.h>
    26 #include <bautils.h>
    27 #include <e32math.h>
    27 #include <e32math.h>
    28 #include <hash.h>
    28 #include <hash.h>
   607                         GBA_TRACE_DEBUG(("Have stored credentials"));
   607                         GBA_TRACE_DEBUG(("Have stored credentials"));
   608                         RHTTPTransactionPropertySet propSet = aTrans.PropertySet();
   608                         RHTTPTransactionPropertySet propSet = aTrans.PropertySet();
   609                         GBA_TRACE_DEBUG(("BTID:"));
   609                         GBA_TRACE_DEBUG(("BTID:"));
   610                         GBA_TRACE_DEBUG(iGbaOutputParams.iBTID);
   610                         GBA_TRACE_DEBUG(iGbaOutputParams.iBTID);
   611                         // Encodes the KNAF to generate a password
   611                         // Encodes the KNAF to generate a password
   612                         TImCodecB64 b64coder;
   612                         TBase64 b64coder;
   613                         TBuf8<KB64KeySize> keyBase64;
   613                         TBuf8<KB64KeySize> keyBase64;
   614                         b64coder.Initialise();
       
   615                         b64coder.Encode( iGbaOutputParams.iKNAF, keyBase64 );
   614                         b64coder.Encode( iGbaOutputParams.iKNAF, keyBase64 );
   616                         RString username = iStringPool.OpenStringL( iGbaOutputParams.iBTID );
   615                         RString username = iStringPool.OpenStringL( iGbaOutputParams.iBTID );
   617                         CleanupClosePushL<RString>( username );
   616                         CleanupClosePushL<RString>( username );
   618                         RString password = iStringPool.OpenStringL( keyBase64 );
   617                         RString password = iStringPool.OpenStringL( keyBase64 );
   619                         CleanupClosePushL<RString>( password );
   618                         CleanupClosePushL<RString>( password );