X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=6abcbd7a21de4b8d9de3950fa37d813bb333fee5;hb=2bf4929fe90ac9500d8345f5ccf1e1e306ab27d6;hp=926d5b4337d3c3f27cda8391e0e51598b36d0791;hpb=243e40729c4ac5cbed92a22dd18182d7692dd6e8;p=yazproxy-moved-to-github.git diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 926d5b4..6abcbd7 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,7 +1,5 @@ -/* $Id: yaz-proxy.cpp,v 1.78 2008-02-21 09:33:23 adam Exp $ - Copyright (c) 1998-2008, Index Data. - -This file is part of the yazproxy. +/* This file is part of YAZ proxy + Copyright (C) 1998-2008 Index Data YAZ proxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -14,10 +12,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with YAZ proxy; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. - */ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #ifdef WIN32 #define HAVE_SYS_STAT_H 1 @@ -2804,16 +2801,6 @@ void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq) } auth->u.idPass->userId = odr_strdup(m_s2z_odr_init, authorization_str); } - else - { - // Use _client_ IP as shown in the log entries...! - auth = (Z_IdAuthentication *) odr_malloc(m_s2z_odr_init, sizeof(Z_IdAuthentication)); - auth->which = Z_IdAuthentication_idPass; - auth->u.idPass = (Z_IdPass *) odr_malloc(m_s2z_odr_init, sizeof(Z_IdPass)); - auth->u.idPass->groupId = NULL; - auth->u.idPass->password = NULL; - auth->u.idPass->userId = odr_strdup(m_s2z_odr_init, m_peername); - } } if (srw_pdu->which == Z_SRW_searchRetrieve_request)