Статус: Активный участник
Группы: Участники
Зарегистрирован: 25.05.2009(UTC) Сообщений: 30 Откуда: Moscow
|
Лог такой же, как и в случае нуллового pProxyPara: Код:[2064] .\Externs.cpp(33) : /Init/
[2064] .\CPSettings.cpp(156) : /Init/
[2064] cades.dll: {1160} /DllMain/ cades.cpp(3792) : hInstance=6E000000, dwReason=1 lpReserved=0
[2064] cades.dll: {1160} /CadesSignMessage/ cades.cpp(2073) : (pSignPara=0x0012F7F8, fDetachedSignature=-1, cToBeSigned=1, rgpbToBeSigned=0x0012F89C, rgcbToBeSigned=0x0012F890, ppSignedBlob=0x0012F884)
[2064] cades.dll: {1160} /CadesSignMessageImpl/ cades.cpp(1936) : Signer updating start
[2064] cades.dll: {1160} /CadesSignMessageImpl/ cades.cpp(1939) : Hash algorithm deduced
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(164) : (pAttr=0)
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(356) : Signer does not have any of signing-certificate attributes
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(369) : Attributes copied
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(372) : signing-certificate(-v2) attribute assembled
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(384) : Signer is updated successfully
[2064] cades.dll: {1160} /CadesMsgOpenToEncode/ cades.cpp(493) : (dwMsgEncodingType=0x00010001, dwFlags=0x00000004, pvMsgEncodeInfo=0x0012F2B0, pszInnerContentObjID=0, pStreamInfo=0x00000000)
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(437) : Start
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(441) : Input parameters checked
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(450) : Copy of input structures is ready
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(456) : Signers updating start
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(461) : Signer #0
[2064] cades.dll: {1072} /DllMain/ cades.cpp(3792) : hInstance=6E000000, dwReason=2 lpReserved=0
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::CheckAlgorithms/ cades.cpp(402) : Public key info is exported successfully
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::CheckAlgorithms/ cades.cpp(409) : Signature algoritm OID info is found: 1.2.643.2.2.3
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(468) : Certificates equality checked
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::DeduceHashAlgorithm/ cades.cpp(140) : (szHashAlgorithm=1.2.643.2.2.9)
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(470) : Hash algorithm deduced
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(159) : (pAttr->pszObjId=1.2.840.113549.1.9.16.2.47)
[2064] cades.dll: {1160} /CadesMsgOpenToEncodeImpl/ cades.cpp(481) : Calling CryptMsgOpenToEncode()
[2064] cades.dll: {1160} /CadesMsgOpenToEncode/ cades.cpp(515) : (hMsg=0x0268B7F8, GetLastError=0x00000000)
[2064] cades.dll: {1160} /CadesMsgEnhanceSignature/ cades.cpp(1228) : (hCryptMsg=0x0268B7F8, dwSignatureIndex=0, pCadesSignPara=0x0012F31C)
[2064] cades.dll: {1160} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1048) : Input parameters checked
[2064] cades.dll: {1160} /CryptoPro::ExtractSignedAttributes/ cryptutil.inl(416) : Signed attributes extracted via CMSG_SIGNER_AUTH_ATTR_PARAM
[2064] cades.dll: {1160} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1052) : Signer certificate ID found
[2064] cades.dll: {1160} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1067) : pSignerCert=0x0267EBD8
[2064] cades.dll: {1160} /CadesMsgGetType/ CadesMsgGetType.cpp(134) : (hCryptMsg=0x0268B7F8, dwSignatureIndex=0, pdwCadesType=0x0012EC78)
[2064] cades.dll: {1160} /CadesMsgGetType/ CadesMsgGetType.cpp(151) : (res=1, GetLastError=0x00000000
[2064] cades.dll: {1160} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1109) : Hash algorithm deduced
[2064] cades.dll: {1160} /CadesMsgEnhanceSignatureImplNamespace::ExtractSignature/ cades.cpp(545) : Signature extracted via CMSG_ENCRYPTED_DIGEST
[2064] .\Externs.cpp(33) : /Init/
[2064] .\CPSettings.cpp(156) : /Init/
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::CheckPolicies/ TSPRequest_Impl.cpp(201) : Checking policies...
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::CheckPolicies/ TSPRequest_Impl.cpp(287) : Checking policies... OK.
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ TSPRequest_Impl.cpp(157) : Making request...
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ TSPRequest_Impl.cpp(177) : Initializing request...
[2064] .\Externs.cpp(33) : /Init/
[2064] .\CPSettings.cpp(156) : /Init/
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ TSPRequest_Impl.cpp(191) : Encoding request...
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ TSPRequest_Impl.cpp(195) : Making request... OK.
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrl("http://www.cryptopro.ru/tsp/tsp.srf", 0x0, 0x0, 0x12e634)
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrlA("http://www.cryptopro.ru/tsp/tsp.srf", 0x23, 0x0, 0x12e4e0)
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrlA() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrl() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpOpen("Crypto-Pro tspcli.dll", (1), "", "", 0x0)
[2064] 11:23:00.882 ::*Session* :: WinHttpOpen() returning handle 0x1c95000
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrl("http://user:pass@proxy.bftcom.com:8080", 0x0, 0x0, 0x12e670)
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrlA("http://user:passr@proxy.bftcom.com:8080", 0x2d, 0x0, 0x12e4e0)
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrlA() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpCrackUrl() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpSetOption(0x1c95000, (38), 0x12e618 [0x3], 12)
[2064] 11:23:00.882 ::*Session* :: WinHttpSetOption() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpConnect(0x1c95000, "www.cryptopro.ru", 80, 0x0)
[2064] 11:23:00.882 ::*Session* :: WinHttpConnect() returning handle 0x1c95100
[2064] 11:23:00.882 ::*Session* :: WinHttpOpenRequest(0x1c95100, "POST", "tsp/tsp.srf", "", "", 0x0, 0x00000000)
[2064] 11:23:00.882 ::*Session* :: WinHttpCreateUrlA(0x12e3c0, 0x0, 0xab30000, 0x12e3fc)
[2064] 11:23:00.882 ::*Session* :: WinHttpCreateUrlA() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpOpenRequest() returning handle 0xab20000
[2064] 11:23:00.882 ::*0000001* :: WinHttpSetOption(0xab20000, (77), 0x12e5e4 [0x2], 4)
[2064] 11:23:00.882 ::*0000001* :: WinHttpSetOption() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpSendRequest(0xab20000, "Content-type: application/timestamp-query", -1, 0xa5a49b0, 64, 64, 0)
[2064] 11:23:00.882 ::*0000001* :: WinHttpCreateUrlA(0x12e358, 0x0, 0xab30000, 0x12e33c)
[2064] 11:23:00.882 ::*0000001* :: WinHttpCreateUrlA() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: Using proxy server: proxy.bftcom.com:8080
[2064] 11:23:00.882 ::*0000001* :: "proxy.bftcom.com" resolved
[2064] 11:23:00.882 ::*0000001* :: sending data:
[2064] 11:23:00.882 ::*0000001* :: 269 (0x10d) bytes
[2064] 11:23:00.882 ::*0000001* :: <<<<-------- HTTP headers follow below ----------------------------------------------->>>>
[2064] 11:23:00.882 ::*0000001* ::
[2064] POST http://www.cryptopro.ru/tsp/tsp.srf HTTP/1.1
[2064] 11:23:00.882 ::*0000001* :: Content-type: application/timestamp-query
[2064] 11:23:00.882 ::*0000001* :: User-Agent: Crypto-Pro tspcli.dll
[2064] 11:23:00.882 ::*0000001* ::
[2064] Host: www.cryptopro.ru
[2064] 11:23:00.882 ::*0000001* :: Content-Length: 64
[2064] 11:23:00.882 ::*0000001* ::
[2064] Proxy-Connection: Keep-Alive
[2064]
[2064] 11:23:00.882 ::*0000001* :: <<<<-------- End ----------------------------------------------->>>>
[2064] 11:23:00.882 ::*0000001* :: WinHttpSendRequest() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpReceiveResponse(0xab20000, 0x0)
[2064] 11:23:00.882 ::*0000001* :: received data:
[2064] 11:23:00.882 ::*0000001* :: 1024 (0x400) bytes
[2064] 11:23:00.882 ::*0000001* :: <<<<-------- HTTP headers follow below ----------------------------------------------->>>>
[2064] 11:23:00.882 ::*0000001* ::
[2064] HTTP/1.0 407 Proxy Authentication Required
[2064] 11:23:00.882 ::*0000001* :: Server: squid/2.6.STABLE19
[2064] 11:23:00.882 ::*0000001* :: Date: Thu, 28 May 2009 07:23:01 GMT
[2064] 11:23:00.882 ::*0000001* :: Content-Type: text/html
[2064] 11:23:00.882 ::*0000001* ::
[2064] Content-Length: 1342
[2064] 11:23:00.882 ::*0000001* :: Expires: Thu, 28 May 2009 07:23:01 GMT
[2064] 11:23:00.882 ::*0000001* :: X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
[2064] 11:23:00.882 ::*0000001* :: Proxy-Authenticate: Basic realm
[2064] ="Squid proxy-caching web server"
[2064] 11:23:00.882 ::*0000001* :: X-Cache: MISS from igwbft2.bftcom.com
[2064] 11:23:00.882 ::*0000001* :: X-Cache-Lookup: NONE from igwbft2.bftcom.com:8080
[2064] 11:23:00.882 ::*0000001* ::
[2064] Via: 1.0 igwbft2.bftcom.com:8080 (squid/2.6.STABLE19)
[2064] 11:23:00.882 ::*0000001* ::
[2064] Proxy-Connection: close
[2064]
[2064] 11:23:00.882 ::*0000001* :: <<<<-------- End ----------------------------------------------->>>>
[2064] 11:23:00.882 ::*0000001* :: WinHttpReceiveResponse() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryHeaders(0xab20000, (0x20000013), "null", 0xa81229c, 0x12e5e8 [4], 0x0 [0])
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryHeaders() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryAuthSchemes(0xab20000, 0x12e5e0, 0x12e604)
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryAuthSchemes() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryAuthSchemes(0xab20000, 0x12e5e0, 0x12e604)
[2064] 11:23:00.882 ::*0000001* :: WinHttpQueryAuthSchemes() returning TRUE
[2064] 11:23:00.882 ::*0000001* :: WinHttpCloseHandle(0xab20000)
[2064] 11:23:00.882 ::*0000001* :: WinHttpCloseHandle() returning TRUE
[2064] 11:23:00.882 ::*Session* :: WinHttpCloseHandle(0x1c95100)
[2064] 11:23:00.882 ::*Session* :: WinHttpCloseHandle() returning TRUE
[2064] tspcli.dll: {1160} /CryptoPro::PKI::TSP::Client::CRequest::Send/ TSPRequest.cpp(159) : HTTP STATUS: 407
[2064] 11:23:00.882 ::*Session* :: WinHttpCloseHandle(0x1c95000)
[2064] 11:23:00.882 ::*Session* :: WinHttpCloseHandle() returning TRUE
[2064] cades.dll: {1160} /CadesMsgEnhanceSignature/ cades.cpp(1238) : CAtlException, m_hr=0xc2100100
[2064] cades.dll: {1160} /CadesMsgEnhanceSignature/ cades.cpp(1248) : (res=0, GetLastError=0xc2100100
[2064] cades.dll: {1160} /CadesSignMessageImpl/ cades.cpp(2046) : Expression FAILED: ::CadesMsgEnhanceSignature(msgDecode.GetHandle(), 0, &cadesSignPara)
[2064] cades.dll: {1160} /CadesSignMessageImpl/ cades.cpp(2046) : Last win32 error thrown as exception
[2064] cades.dll: {1160} /CadesSignMessage/ cades.cpp(2086) : CAtlException, m_hr=0xc2100100
[2064] cades.dll: {1160} /CadesSignMessage/ cades.cpp(2096) : (res=0, GetLastError=0xc2100100
Не подхватываются явно заданные в коде параметры аутентификации, всё берется из политик. До кучи ещё одна проблема. Меняю тип создаваемой подписи с Cades-X-Long Type 1 ($5D) на CaDES BeS ($01), лог остается точно таким же и вылетает та же ошибка. Но ведь, насколько я понимаю, при создании этого типа подписи обращений к tsp/ocsp быть вообще не должно.
|