[xmlsec] help xkms-server

tang leviathan tasterix at msn.com
Tue Aug 31 23:38:51 PDT 2004


Hi, I have written a simple xkms client, it just send an xml file include 
xkms resquest(I used the locate-example-2.xml), but when I used the 1.2.5 
version, the server output:
func=xmlSecOpenSSLX509StoreVerify:file=..\src\openssl\x509vfy.c:line=351:obj=x50

9-store:subj=unknown:error=71:certificate verification 
failed:err=20;msg=unable
to get local issuer certificate
func=xmlSecKeysMngrGetKey:file=..\src\keys.c:line=1364:obj=unknown:subj=xmlSecKe

ysMngrFindKey:error=1:xmlsec library function failed:
func=xmlSecXkmsServerCtxProcess:file=..\src\xkms.c:line=619:obj=unknown:subj=xml

SecXkmsServerRequestExecute:error=1:xmlsec library function 
failed:ctx->requestN
ode=LocateRequest
<?xml version="1.0"?>
<LocateResult xmlns="http://www.w3.org/2002/03/xkms#" 
Id="JIaEp738Rjm_EugPztyW6l
iBJAn9iTJN" Service="http://www.example.com/xkms" 
RequestId="I4593b8d4b6bd9ae726
2560b5de1016bc" ResultMajor="Sender" ResultMinor="NoMatch"/>

and when I used 1.2.6 version, the server program stopped at /* now read 
the body */
    counter = 5;
    while((int)xmlSecBufferGetSize(buffer) < length) {
	    nread = recv(fd, buf, sizeof(buf), 0);
	    if(nread < 0) {
	        fprintf(stderr, "Error %d [%s]: read() failed\n", errno, in_ip);
	        return(-1);
	    }

	    if((nread > 0) && (xmlSecBufferAppend(buffer, buf, nread) < 0)) {
	        fprintf(stderr, "Error %d [%s]: xmlSecBufferAppend(%d) failed\n", 
errno, in_ip, nread);
	        return(-1);
	    }
        if(nread < sizeof(buffer)) {
            counter--;
            if(counter <= 0) {
                break;
            }
        }
    }
after it excute the second if sentence in the first loop, the program 
stopped.
Please help me, I have no idea about this error and where the problem is. 
Thanks.

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  




More information about the xmlsec mailing list