X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-ir-assoc.cpp;h=e4491a765db2df2694c95a27eb196da2db6f9310;hp=31689f470cf5c7a19682576b51aa66d0d32ab12f;hb=fa96bc0dcc16f6ac3e33b5144664e51cb7d09874;hpb=ca58a20d661f245f8c3974fae6b61b50dada80f2 diff --git a/src/yaz-ir-assoc.cpp b/src/yaz-ir-assoc.cpp index 31689f4..e4491a7 100644 --- a/src/yaz-ir-assoc.cpp +++ b/src/yaz-ir-assoc.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-ir-assoc.cpp,v 1.28 2007-04-12 15:00:33 adam Exp $ + * $Id: yaz-ir-assoc.cpp,v 1.29 2007-04-16 21:54:23 adam Exp $ */ #include @@ -205,7 +205,8 @@ int IR_Assoc::send_searchRequest(Yaz_Z_Query *query, assert (req->otherInfo == 0); if (m_cookie) { - set_otherInformationString(&req->otherInfo, OID_STR_COOKIE, 1, m_cookie); + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_cookie, + 1, m_cookie); assert (req->otherInfo); } @@ -252,7 +253,7 @@ int IR_Assoc::send_presentRequest(int start, } if (m_cookie) - set_otherInformationString(&req->otherInfo, OID_STR_COOKIE, + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_cookie, 1, m_cookie); if ( pRefId ) @@ -384,9 +385,11 @@ int IR_Assoc::send_initRequest(char* pRefId) } if (m_proxy && m_host) - set_otherInformationString(&req->otherInfo, OID_STR_PROXY, 1, m_host); + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_proxy, + 1, m_host); if (m_cookie) - set_otherInformationString(&req->otherInfo, OID_STR_COOKIE, 1, m_cookie); + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_cookie, + 1, m_cookie); return send_Z_PDU(apdu, 0); } @@ -415,9 +418,11 @@ int IR_Assoc::send_deleteResultSetRequest(char* pResultSetId, char* pRefId) } if (m_proxy && m_host) - set_otherInformationString(&req->otherInfo, OID_STR_PROXY, 1, m_host); + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_proxy, + 1, m_host); if (m_cookie) - set_otherInformationString(&req->otherInfo, OID_STR_COOKIE, 1, m_cookie); + set_otherInformationString(&req->otherInfo, yaz_oid_userinfo_cookie, + 1, m_cookie); return send_Z_PDU(apdu, 0); }