equal
deleted
inserted
replaced
681 |
681 |
682 // ----------------------------------------------------------------------------- |
682 // ----------------------------------------------------------------------------- |
683 // C3GPPBootstrapHttpHandler::MHFRunError() |
683 // C3GPPBootstrapHttpHandler::MHFRunError() |
684 // ----------------------------------------------------------------------------- |
684 // ----------------------------------------------------------------------------- |
685 // |
685 // |
686 TInt C3GPPBootstrapHttpHandler::MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& aEvent) |
686 TInt C3GPPBootstrapHttpHandler::MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& /*aEvent*/) |
687 { |
687 { |
688 GBA_TRACE_DEBUG_NUM(("MHFRunError called with error code = %d"), aError); |
688 GBA_TRACE_DEBUG_NUM(("MHFRunError called with error code = %d"), aError); |
689 GBA_TRACE_DEBUG_NUM(("MHFRunError called with http event = %d"),aEvent.iStatus ); |
689 //GBA_TRACE_DEBUG_NUM(("MHFRunError called with http event = %d"),aEvent.iStatus ); |
690 // tell caller that there was an error |
690 // tell caller that there was an error |
691 TRAPD(err, iEventSink->EventRequestCompletedL(aError)); |
691 TRAPD(err, iEventSink->EventRequestCompletedL(aError)); |
692 return err; |
692 return err; |
693 } |
693 } |
694 |
694 |
957 // ----------------------------------------------------------------------------- |
957 // ----------------------------------------------------------------------------- |
958 // C3GPPBootstrapHttpHandler::EncodeDigestAuthL() |
958 // C3GPPBootstrapHttpHandler::EncodeDigestAuthL() |
959 // ----------------------------------------------------------------------------- |
959 // ----------------------------------------------------------------------------- |
960 // |
960 // |
961 void C3GPPBootstrapHttpHandler::EncodeDigestAuthL( const RString& aUsername, |
961 void C3GPPBootstrapHttpHandler::EncodeDigestAuthL( const RString& aUsername, |
962 const RString& aPW, |
962 const RString& /*aPW*/, |
963 RHTTPTransaction& aTransaction, |
963 RHTTPTransaction& aTransaction, |
964 TInt aHeaderPart, |
964 TInt aHeaderPart, |
965 const THTTPHdrVal& aRequestUri ) |
965 const THTTPHdrVal& aRequestUri ) |
966 { |
966 { |
967 GBA_TRACE_BEGIN(); |
967 GBA_TRACE_BEGIN(); |
970 RStringPool stringPool = aTransaction.Session().StringPool(); |
970 RStringPool stringPool = aTransaction.Session().StringPool(); |
971 |
971 |
972 GBA_TRACE_DEBUG(("Username:")); |
972 GBA_TRACE_DEBUG(("Username:")); |
973 GBA_TRACE_DEBUG(aUsername.DesC()); |
973 GBA_TRACE_DEBUG(aUsername.DesC()); |
974 |
974 |
975 GBA_TRACE_DEBUG(("Passwd:")); |
975 //GBA_TRACE_DEBUG(("Passwd:")); |
976 GBA_TRACE_DEBUG_BINARY(aPW.DesC()); |
976 //GBA_TRACE_DEBUG_BINARY(aPW.DesC()); |
977 |
977 |
978 TBuf8<KHashLength> hash; |
978 TBuf8<KHashLength> hash; |
979 TBuf8<KHashLength> cnonce; |
979 TBuf8<KHashLength> cnonce; |
980 //Nonce |
980 //Nonce |
981 THTTPHdrVal nonce; |
981 THTTPHdrVal nonce; |