📄 dodiff.out
字号:
< < /* -----------------------------------------------------------------------------*< * OSPPReauthRspComponentIdFromElement() - Get component id attribute from element.< * -----------------------------------------------------------------------------*/< void < OSPPReauthRspComponentIdFromElement(< OSPTXMLELEM *ospvElemIn, < unsigned char **ospvComponentId< )< {< OSPTXMLATTR *attr = (OSPTXMLATTR *)OSPC_OSNULL;< < /* look for the component id attribute */< for (attr = (OSPTXMLATTR *)OSPPXMLElemFirstAttr(ospvElemIn);< (attr != (OSPTXMLATTR *)OSPC_OSNULL);< attr = (OSPTXMLATTR *)OSPPXMLElemNextAttr(ospvElemIn, attr))< {< < if (OSPPMsgGetAttrPart(OSPPXMLAttrGetName(attr)) == ospeAttrComponentId)< {< /* we found the component attribute. Get the value */< *ospvComponentId = (unsigned char *)OSPPXMLAttrGetValue(attr);< break;< < }< }< }< < /**/< /*-----------------------------------------------------------------------*< * OSPPReauthRspSetComponentId() - creates space and copies in the string.< *-----------------------------------------------------------------------*/< void < OSPPReauthRspSetComponentId(< OSPTREAUTHRSP *ospvReauthRsp, /* In - pointer to Usage Indication struct */< unsigned char *ospvComponentId /* In - pointer to component id string */< )< {< int len = OSPM_STRLEN((const char *)ospvComponentId);< < if(ospvReauthRsp != OSPC_OSNULL)< {< if(ospvReauthRsp->ospmReauthRspComponentId != OSPC_OSNULL)< {< OSPM_FREE(ospvReauthRsp->ospmReauthRspComponentId); < }< < OSPM_MALLOC(ospvReauthRsp->ospmReauthRspComponentId, unsigned char, len + 1);< OSPM_MEMSET(ospvReauthRsp->ospmReauthRspComponentId, 0, len + 1);< OSPM_MEMCPY(ospvReauthRsp->ospmReauthRspComponentId, ospvComponentId, len);< }< < return;< }********** end ospreauthrsp.c********** begin ospsecssl.c********** end ospsecssl.c********** begin ospsecurity.c********** end ospsecurity.c********** begin ospsocket.c14a15> * $Date: 2000/12/05 00:46:42 $15a17> * $Id: dodiff.out,v 1.1 2000/12/05 00:46:42 wbreu Exp $16a19> * $RCSfile: dodiff.out,v $17a21> * $Revision: 1.1 $18a23> * $Source: /cvsroot/vocal/contrib/OSPToolkit-2.5.2/src/dodiff.out,v $481c486< unsigned ospvConnectionBufferSz = 0;---> unsigned ospvConnectionBufferSz = 0;483,485c488,490< unsigned char *ospvConnectionBuffer = OSPC_OSNULL;< unsigned char *tmpContentBuffer = OSPC_OSNULL;< unsigned tmpContentBufferSz = 0;---> unsigned char *ospvConnectionBuffer = OSPC_OSNULL;> unsigned char *tmpContentBuffer = OSPC_OSNULL;> unsigned tmpContentBufferSz = 0; 506,510c511,512< if(*ospvError == OSPC_ERR_NO_ERROR)< {< /* make sure socket was not reset by peer */< OSPM_GETSOCKERR(ospvHttp, *ospvError);< }---> /* make sure socket was not reset by peer */> OSPM_GETSOCKERR(ospvHttp, *ospvError);572a575,576> *> * we're after the Content-Length in this message.595,598c599,600< /* parse the header response and place the MIME< * connection-type into the ospvConnectionBuffer variable.< * ospvConnectionBufferSz is set to the size of the< * ospvConnectionBuffer.---> /* have to get rid of content string if it had been> * set in the request message.601,621c603,614< OSPPHttpParseHeader((unsigned char *) recvheadbuf, < &ospvConnectionBuffer, &ospvConnectionBufferSz,< OSPC_HTTP_CONNECTION_TYPE, ospvError);< < /* check to see if the connection type contains "close".< * If so, then set a flag to eventually close the socket connection.< */< < if((ospvConnectionBuffer != OSPC_OSNULL)&&< (ospvConnectionBufferSz > 0))< {< if(OSPM_STRSTR((char *)ospvConnectionBuffer, (const char *)"close") != OSPC_OSNULL)< {< connectionCloseFlag = OSPC_TRUE;< }< }< < if(ospvConnectionBuffer != OSPC_OSNULL)< {< OSPM_FREE(ospvConnectionBuffer);< }---> OSPPHttpParseHeader((unsigned char *) recvheadbuf, > &ospvConnectionBuffer, &ospvConnectionBufferSz,> OSPC_HTTP_CONNECTION_TYPE, ospvError);> > if((ospvConnectionBuffer != OSPC_OSNULL)&&> (ospvConnectionBufferSz > 0))> {> if(OSPM_STRSTR((char *)ospvConnectionBuffer, (const char *)"close") != OSPC_OSNULL)> {> connectionCloseFlag = OSPC_TRUE;> }> } 625d617< 628,630c620,622< * content-type into the tmpContentBuffer variable.< * tmpContentBufferSz is set to the size of the < * tmpContentBuffer.---> * content-type into the ospvContentBuffer variable.> * ospvContentBufferSz is set to the size of the > * ospvContentBuffer.633c625< OSPPHttpParseHeader((unsigned char *)recvheadbuf, ---> OSPPHttpParseHeader((unsigned char *)recvheadbuf, 696,700c688,692< if(*ospvContentBuffer != OSPC_OSNULL)< {< OSPM_FREE(*ospvContentBuffer);< *ospvContentBufferSz = 0;< }---> if(*ospvContentBuffer != OSPC_OSNULL)> {> OSPM_FREE(*ospvContentBuffer);> *ospvContentBufferSz = 0;> }702,706c694,695< /* Save the content buffer and content buffer size< * for the next time through this function < */< *ospvContentBuffer = tmpContentBuffer;< *ospvContentBufferSz = tmpContentBufferSz;---> *ospvContentBuffer = tmpContentBuffer;> *ospvContentBufferSz = tmpContentBufferSz;713,715d701< /* If the Connection-Type indicated "close" in the MIME header, < * then close the connection.< */717,722c703,707< {< *ospvError = OSPPSockClose(OSPC_TRUE,< &(ospvHttp->SockFd),< &(ospvHttp->SSLSession));< }< ---> {> *ospvError = OSPPSockClose(OSPC_TRUE,> &(ospvHttp->SockFd),> &(ospvHttp->SSLSession));> }840c825< OSPM_SELECT(ospvSockFd +1, (fd_set *)OSPC_OSNULL, &fdlist, ---> OSPM_SELECT(ospvSockFd +1, (fd_set *)OSPC_OSNULL, &fdlist, ********** end ospsocket.c********** begin ospssl.c93c93< * OpenSSL Verifies this for you. Uncomment if you need this ---> * OpenSSL Verifies this for you. Unomment if you need this ********** end ospssl.c********** begin ospsslref.c45c45< #define OSPC_MAX_CERT_BUFFER 4096---> #define OSPC_MAX_CERT_BUFFER 4096********** end ospsslref.c********** begin ospstatistics.c********** end ospstatistics.c********** begin ospstatus.c********** end ospstatus.c********** begin osptnaudit.c********** end osptnaudit.c********** begin osptnlog.c********** end osptnlog.c********** begin osptnprobe.c712a713> 728,737d728< }< else< {< if (svcpt->HostName)< OSPM_FREE(svcpt->HostName);< < if (svcpt->URI)< OSPM_FREE(svcpt->URI);< < OSPM_FREE(svcpt);********** end osptnprobe.c********** begin osptoken.c********** end osptoken.c********** begin osptokeninfo.c********** end osptokeninfo.c********** begin osptrans.c265,266d264< unsigned char *dest = OSPC_OSNULL;< OSPTALTINFO *altinfo = OSPC_OSNULL;331,350c329,333< < /* add DestinationSignalAddress to DestinationAlternates for Usage */< if ((errorcode == OSPC_ERR_NO_ERROR) &&< OSPPDestHasAddr(ospvDest))< {< dest = OSPPDestGetAddr(ospvDest);< altinfo = OSPPAltInfoNew(strlen((const char *)dest),dest,ospeTransport);< < OSPPUsageIndAddDestinationAlt(*ospvUsage, altinfo);< altinfo = OSPC_OSNULL;< }< < /* Get Destination Alternates */< if ((errorcode == OSPC_ERR_NO_ERROR) && < OSPPAuthReqHasDestinationAlt(ospvTrans->AuthReq))< {< OSPPUsageIndMoveDestinationAlt(*ospvUsage, < &(ospvTrans->AuthReq->ospmAuthReqDestinationAlternate));< /* Function above may be patterned after OSPPUsageIndMoveDestinationAlt */< }---> /* Get Destination Alternates list from dest */> if((OSPPDestDevHasAddr(ospvDest)) && (errorcode == OSPC_ERR_NO_ERROR))> {> > }437c420< if(ospvTrans->HasTransactionID != OSPC_FALSE)---> if(ospvTrans->TransactionID != (OSPTUINT64)0)447d429< 450,462d431< < /* Set MessageId */< if(errorcode == OSPC_ERR_NO_ERROR)< {< errorcode = OSPPUtilBuildString(ospvTrans->TransactionID, < OSPPTransactionGetCounter(ospvTrans),< (char **)&((*ospvUsage)->ospmUsageIndMessageId));< }< < /* Update the ComponentId Unique counter again to < * keep the MessageId and ComponentId values unique < */< OSPPTransactionUpdateCounter(ospvTrans);478,479d446< /* set Fail Reason */< OSPPUsageIndSetTNFailReason(*ospvUsage, OSPPDestGetTNFailReason(ospvTrans->CurrentDest));1290c1257< if (*ospvSizeOfToken < (unsigned) OSPPTokenGetSize(token))---> if (*ospvSizeOfToken < OSPPTokenGetSize(token))1340,1343c1307,1309< OSPM_MUTEX_LOCK(trancoll->TransactionMutex,errorcode);< if (errorcode == OSPC_ERR_NO_ERROR)< {< *ospvTransaction = OSPPTransactionCollectionGetNewItem(---> OSPM_MUTEX_LOCK(trancoll->TransactionMutex,errorcode);> > *ospvTransaction = OSPPTransactionCollectionGetNewItem(1345,1348c1311,1313< if (errorcode == OSPC_ERR_NO_ERROR)< trancoll->NumberOfTrans++;< OSPM_MUTEX_UNLOCK(trancoll->TransactionMutex,errorcode);< }---> if (errorcode == OSPC_ERR_NO_ERROR)> trancoll->NumberOfTrans++;> OSPM_MUTEX_UNLOCK(trancoll->TransactionMutex,errorcode);1706c1671< ospvTrans->AuthRsp = (OSPTAUTHRSP*)resultrsp;---> OSPPListAppend((OSPTLIST *)&(ospvTrans->AuthRsp), resultrsp);1708d1672< ospvTrans->HasTransactionID = OSPC_TRUE;1736c1700< ospvTrans->ReauthRsp = (OSPTREAUTHRSP*)resultrsp;---> OSPPListAppend((OSPTLIST *)&(ospvTrans->ReauthRsp), resultrsp);1738d1701< ospvTrans->HasTransactionID = OSPC_TRUE;1752,1754c1715,1717< /*< ** Delete the usage confirmations< */---> /*> ** Delete the usage confirmations> */1830,1838c1793,1801< int errorcode = OSPC_ERR_NO_ERROR,< numbytesrandom = 0,< numbytescounter = 0;< unsigned i = 0;< OSPTTIME timestamp = 0;< OSPTALTINFO *altinfo = OSPC_OSNULL;< OSPTCALLID *callid = OSPC_OSNULL;< char random[OSPC_MAX_RANDOM];< char counter[OSPC_MAX_RANDOM];---> int errorcode = OSPC_ERR_NO_ERROR;> unsigned i = 0;> OSPTTIME timestamp = 0;> OSPTALTINFO *altinfo = OSPC_OSNULL;> OSPTCALLID *callid = OSPC_OSNULL;> > OSPM_ARGUSED(ospvSource);> OSPM_ARGUSED(ospvUser);> OSPM_ARGUSED(ospvPreferredDestinations);1840,1841d1802< OSPM_MEMSET(random, 0, OSPC_MAX_RANDOM);< OSPM_MEMSET(counter, 0, OSPC_MAX_RANDOM);1909,1910c1870< (ospvSourceDevice != OSPC_OSNULL) ||< (ospvUser != OSPC_OSNULL))---> (ospvSourceDevice != OSPC_OSNULL))1934,1951d1893< if(ospvUser != OSPC_OSNULL)< {< < altinfo = OSPPAltInfoNew(strlen(ospvUser),< (const unsigned char *)ospvUser,< ospeSubscriber);< < if (altinfo != OSPC_OSNULL)< {< < OSPPListAppend(< (OSPTLIST *)&(ospvTrans->AuthReq->ospmAuthReqSourceAlternate),< (void *)altinfo);< }< }< < altinfo = OSPC_OSNULL;<
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -