📄 dodiff.out
字号:
< OSPTAUTHRSP *ospvAuthRsp< )< {< return (ospvAuthRsp->ospmAuthRspComponentId != OSPC_OSNULL);< }< 313,340d300< /**/< /*-----------------------------------------------------------------------*< * OSPPAuthRspSetComponentId() - creates space and copies in the string.< *-----------------------------------------------------------------------*/< void < OSPPAuthRspSetComponentId(< OSPTAUTHRSP *ospvAuthRsp, /* In - pointer to Usage Indication struct */< unsigned char *ospvComponentId /* In - pointer to component id string */< )< {< int len = OSPM_STRLEN((const char *)ospvComponentId);< < if(ospvAuthRsp != OSPC_OSNULL)< {< if(ospvAuthRsp->ospmAuthRspComponentId != OSPC_OSNULL)< {< OSPM_FREE(ospvAuthRsp->ospmAuthRspComponentId); < }< < OSPM_MALLOC(ospvAuthRsp->ospmAuthRspComponentId, unsigned char, len + 1);< OSPM_MEMSET(ospvAuthRsp->ospmAuthRspComponentId, 0, len + 1);< OSPM_MEMCPY(ospvAuthRsp->ospmAuthRspComponentId, ospvComponentId, len);< }< < return;< }< < 409,421d368< /* remove messageId */< if(OSPPAuthRspHasMessageId(*ospvAuthRsp))< {< OSPM_FREE((*ospvAuthRsp)->ospmAuthRspMessageId);< (*ospvAuthRsp)->ospmAuthRspMessageId = OSPC_OSNULL;< }< /* remove componentId */< if(OSPPAuthRspHasComponentId(*ospvAuthRsp))< {< OSPM_FREE((*ospvAuthRsp)->ospmAuthRspComponentId);< (*ospvAuthRsp)->ospmAuthRspComponentId = OSPC_OSNULL;< }< 503,505c450< unsigned char *compid = OSPC_OSNULL;< OSPTXMLELEM *ospvParent = OSPC_OSNULL;< unsigned char *messageId = OSPC_OSNULL;---> 521,546d465< else< {< < if (OSPPMsgGetElemPart(OSPPXMLElemGetName(ospvElem))==ospeElemMessage)< {< OSPPAuthRspMessageIdFromElement(ospvElem, &messageId);< if(messageId != OSPC_OSNULL)< {< OSPPAuthRspSetMessageId(authrsp, messageId);< }< < /* ospvElem is pointing to the Message element. < * The first child contains the Component element. < * The following two lines of code change ospvElem from < * pointing to the Message element to the Component element.< */< ospvParent = ospvElem;< ospvElem = (OSPTXMLELEM *)OSPPXMLElemFirstChild(ospvParent);< }< < OSPPAuthRspComponentIdFromElement(ospvElem, &compid);< if(compid != OSPC_OSNULL)< {< OSPPAuthRspSetComponentId(authrsp, compid);< }< }554c473< for (elem = (OSPTXMLELEM *)OSPPXMLElemFirstChild(ospvElem);---> for ( elem = (OSPTXMLELEM *)OSPPXMLElemFirstChild(ospvElem);556c475< elem = (OSPTXMLELEM *)OSPPXMLElemNextChild(ospvElem, elem))---> elem = (OSPTXMLELEM *)OSPPXMLElemNextChild(ospvElem, elem) )561,565d479< OSPPAuthRspMessageIdFromElement(elem, &messageId);< if(messageId != OSPC_OSNULL)< {< OSPPAuthRspSetMessageId(authrsp, messageId);< }567,570c481,483< < /*< ** ospeElemAuthRzp -- OSP Stds spell Authorization not Authorisation< */---> /*> ** ospeElemAuthRzp -- OSP Stds spell Authorization not Authorisation> */573,577d485< OSPPAuthRspComponentIdFromElement(elem, &compid);< if(compid != OSPC_OSNULL)< {< OSPPAuthRspSetComponentId(authrsp, compid);< }650d557< 676,766d582< }< < < /*-----------------------------------------------------------------------*< * OSPPAuthRspHasMessageId() - is the message id set ?< *-----------------------------------------------------------------------*/< unsigned /* returns non-zero if message id is set */< OSPPAuthRspHasMessageId(< OSPTAUTHRSP *ospvAuthRsp< )< {< return (ospvAuthRsp->ospmAuthRspMessageId != OSPC_OSNULL);< }< < /*-----------------------------------------------------------------------*< * OSPPAuthRspSetMessageId() - creates space and copies in the string.< *-----------------------------------------------------------------------*/< void < OSPPAuthRspSetMessageId(< OSPTAUTHRSP *ospvAuthRsp, /* In - pointer to Usage Indication struct */< unsigned char *ospvMessageId /* In - pointer to message id string */< )< {< int len = OSPM_STRLEN((const char *)ospvMessageId);< < if(ospvAuthRsp != OSPC_OSNULL)< {< if(ospvAuthRsp->ospmAuthRspMessageId != OSPC_OSNULL)< {< OSPM_FREE(ospvAuthRsp->ospmAuthRspMessageId); < }< < OSPM_MALLOC(ospvAuthRsp->ospmAuthRspMessageId, unsigned char, len + 1);< OSPM_MEMSET(ospvAuthRsp->ospmAuthRspMessageId, 0, len + 1);< OSPM_MEMCPY(ospvAuthRsp->ospmAuthRspMessageId, ospvMessageId, len);< }< < return;< }< < /* -----------------------------------------------------------------------------*< * OSPPAuthRspMessageIdFromElement() - Get message id attribute from element.< * -----------------------------------------------------------------------------*/< void < OSPPAuthRspMessageIdFromElement(< OSPTXMLELEM *ospvElemIn, < unsigned char **ospvMessageId< )< {< OSPTXMLATTR *attr = (OSPTXMLATTR *)OSPC_OSNULL;< < /* look for the message id attribute */< for (attr = (OSPTXMLATTR *)OSPPXMLElemFirstAttr(ospvElemIn);< (attr != (OSPTXMLATTR *)OSPC_OSNULL);< attr = (OSPTXMLATTR *)OSPPXMLElemNextAttr(ospvElemIn, attr))< {< < if (OSPPMsgGetAttrPart(OSPPXMLAttrGetName(attr)) == ospeAttrMessageId)< {< /* we found the message attribute. Get the value */< *ospvMessageId = (unsigned char *)OSPPXMLAttrGetValue(attr);< break;< < }< }< }< < /* -----------------------------------------------------------------------------*< * OSPPAuthRspComponentIdFromElement() - Get component id attribute from element.< * -----------------------------------------------------------------------------*/< void < OSPPAuthRspComponentIdFromElement(< 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;< }< }********** end ospauthrsp.c********** begin ospb64.c112c112< if(!isspace((int)c))---> if(!isspace(c))********** end ospb64.c********** begin ospbfr.c********** end ospbfr.c********** begin ospbsafetstd.c********** end ospbsafetstd.c********** begin ospcallid.c********** end ospcallid.c********** begin ospciscoext.c********** end ospciscoext.c********** begin ospcomm.c********** end ospcomm.c********** begin ospcrypto.c********** end ospcrypto.c********** begin ospcryptowrap.c********** end ospcryptowrap.c********** begin ospdest.c********** end ospdest.c********** begin ospfail.c********** end ospfail.c********** begin osphttp.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 $36d40< #include "osputils.h"176,177c180< < OSPM_MALLOC(*ospvHttpMsg, unsigned char, *ospvHttpMsgSz + 1);---> OSPM_MALLOC(*ospvHttpMsg, unsigned char, *ospvHttpMsgSz);180,182d182< /* Put a null character at the end */< OSPM_MEMSET(*ospvHttpMsg, 0, *ospvHttpMsgSz + 1);< 353,354d352< OSPM_DBGNET(("MISC : osppHttpSetupAndMonitor() before timed wait. %d seconds\n", < persistancetimeout));358a357,360> OSPM_DBGNET(("MISC : osppHttpSetupAndMonitor() before timed wait. %d seconds, err=%d\n", > persistancetimeout, errorcode));> > /* wbr: comment out for now360a363> */561,567c564< /* Before verifying the response, change all the characters< * to lowercase. < */< if(ospvResponse != OSPC_OSNULL)< {< OSPPUtilStringToLowercase(&ospvResponse);< }---> unsigned int tempIndex = 0;573a571,581> /* Before verifying the response, change all the characters> * to lowercase. > */> > if(ospvResponse != OSPC_OSNULL)> {> for(tempIndex=0; tempIndex < OSPM_STRLEN((const char *)ospvResponse); tempIndex++)> {> *(ospvResponse + tempIndex) = (unsigned char)OSPM_TOLOWER((unsigned int)*(ospvResponse + tempIndex));> }> }678c686< int---> OSPTHTTP *681,682c689< OSPTHTTP **ospvHttp,< unsigned timeout)---> OSPTHTTP *ospvHttp)684,690c691,692< OSPTTIME theTime = 0L;< < unsigned int elapsedTime = 0;< unsigned int currentTime = 0;< unsigned int referenceTime = 0;< < int errorcode = OSPC_ERR_NO_ERROR;---> unsigned minimum = 0;> OSPTHTTP *httpconn = OSPC_OSNULL;694,697c696< /* Get a reference time */< errorcode = OSPPOSTimeGetTime(&theTime, &referenceTime);< < do---> if (ospvHttp == OSPC_OSNULL)699,724c698< if (ospvHttp == OSPC_OSNULL)< {< /* Get the first item in the queue */< *ospvHttp = (OSPTHTTP *)OSPPListFirst((OSPTLIST *)ospvHttpList);< if(*ospvHttp == OSPC_OSNULL)< {< errorcode = OSPC_ERR_HTTP_BAD_QUEUE;< break;< }< < /* Keep the search going until it gets to the end of the list */< while (*ospvHttp != (OSPTHTTP *)OSPC_OSNULL)< {< < /* If this item in the list has an empty queue... */< if (&(*ospvHttp)->NumberOfTransactions == 0)< {< /* ...break out of the while loop with ospvHttp pointing */< /* to the item */< break;< }< < /* ... if it is not empty, get the next item in the list */< *ospvHttp = (OSPTHTTP *)OSPPListNext((OSPTLIST *)ospvHttpList,< (void *)*ospvHttp);< }---> ospvHttp = (OSPTHTTP *)OSPPListFirst((OSPTLIST *)ospvHttpList);726,727c700,701< /* Get the current time */< errorcode = OSPPOSTimeGetTime(&theTime, ¤tTime);---> httpconn = ospvHttp;> minimum = ospvHttp->NumberOfTransactions;729,730c703,705< /* Check to make sure there are no problems... */< if(errorcode == OSPC_ERR_NO_ERROR)---> while (ospvHttp != (OSPTHTTP *)OSPC_OSNULL)> {> if (ospvHttp->NumberOfTransactions <= minimum)732,733c707,708< /* ...if no problems, calculate the elapsed time */< elapsedTime = currentTime - referenceTime;---> httpconn = ospvHttp;> minimum = ospvHttp->NumberOfTransactions;734a710,711> ospvHttp = (OSPTHTTP *)OSPPListNext((OSPTLIST *)ospvHttpList,> (void *)ospvHttp);736,742c713< else< {< break;< }< < } while((*ospvHttp == OSPC_OSNULL)&&(elapsedTime < timeout)&&(errorcode == OSPC_ERR_NO_ERROR));< ---> }744c715< return errorcode;---> return httpconn;816,818c787,789< errorcode = osppHttpMinTransCheck(&(ospvComm->HttpConnList),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -