You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Berin Lautenbach <be...@wingsofhermes.org> on 2004/03/25 22:15:18 UTC
Re: 'make install' for C++ 1.x on Solaris
Scott,
I thought I tested this.
Will have a look-see tonight and see what is wrong.
Cheers,
Berin
> Is it me, or is the install-sh stuff in the package broken on Solaris?
> I get errors from missing copies of install-sh and have to manually
> copy it from the root into each subdirectory, which is a serious PITA.
>
> -- Scott
Re: 'make install' for C++ 1.x on Solaris
Posted by Erwin van der Koogh <vd...@apache.org>.
> Make install works on the Solaris 2.8 system that we have access to, but
> I suspect that's because we have the GNU install (fileutils) on our
> system.
We have a bunch of Solaris 2.8 systems here with and without GNU stuff
installed. I can give it a shot here if you want.
But I would need some detailed instructions.. don't have that much time at
work to mess around with this stuff I am afraid :(
Erwin
RE: 'make install' for C++ 1.x on Solaris
Posted by Scott Cantor <ca...@osu.edu>.
> So no quick fix. I'm going to have to play around to find something
> that works nicely.
Thanks for looking into it, it's definitely working better with GNU install
installed, but I did run into one other makefile bug that chokes that
version. There's a duplicate mention of XSECConfig.hpp in
src/framework/Makefile that errors out during install. Once I deleted that
extra reference in the file list, make install ran to completion.
-- Scott
Re: 'make install' for C++ 1.x on Solaris
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Scott,
First the good news. I can reproduce your problem by removing install
on a system here.
The bad news is that I have absolutely no idea why autoconf requires
install-sh be in the src directory - it seem worse to use it rather than
nothing! The "standard" X11 install-sh script is fairly naieve. It
assumes "install filename to-filename". It cannot take multiple files
going to a single directory.
To make matters worse, when configure finds install on the path, it adds
a fully pathed version to make files. But when it finds install-sh in
the current directory, it adds "./install-sh", which is why your system
couldn't find it in all the subdirectories. You can get around it by
setting -srcdir="`pwd`", but that's annoying.
So no quick fix. I'm going to have to play around to find something
that works nicely.
If anyone knows of a nice BSD licensed install-sh script that we can
simply include, that would be nice too :>.
Cheers,
Berin
Scott Cantor wrote:
>>Make install works on the Solaris 2.8 system that we have access to, but
>>I suspect that's because we have the GNU install (fileutils) on our
>>system.
>
>
> Probably so. I'll give it a try myself with that package installed. As long
> as there's a relatively reasonable way to get make install to work, I'm ok
> with it.
>
> -- Scott
>
>
>
RE: 'make install' for C++ 1.x on Solaris
Posted by Scott Cantor <ca...@osu.edu>.
> Make install works on the Solaris 2.8 system that we have access to, but
> I suspect that's because we have the GNU install (fileutils) on our
> system.
Probably so. I'll give it a try myself with that package installed. As long
as there's a relatively reasonable way to get make install to work, I'm ok
with it.
-- Scott
Re: 'make install' for C++ 1.x on Solaris
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Scott,
Make install works on the Solaris 2.8 system that we have access to, but
I suspect that's because we have the GNU install (fileutils) on our system.
I will install on a system with no native install tomorrow and see if
that breaks things, because I suspect that's where the problem is.
(Didn't get a chance to try this tonight :<)
Cheers,
Berin
Scott Cantor wrote:
>>I thought I tested this.
>>
>>Will have a look-see tonight and see what is wrong.
>
>
> On 2.8, I'm also getting failures in which the include tree isn't deep
> copied during the install. Maybe some newer version of some GNU-related
> package is needed?
>
> -- Scott
>
>
>
Running Verify signature on JDK 1.2.2
Posted by ashish oak <si...@yahoo.com>.
Hi,
I am testing the samples for running XML signature
validation on JDK 1.2.2. The code works fine on JDK
1.4.2 but I must run it on JDK 1.2.2 as our server
supports 1.2.2.
But it is giving me the following runtime errors:
org.apache.xml.security.signature.XMLSignatureException:
The Reference for URI has no
XMLSignatureInput
Original Exception was
org.apache.xml.security.signature.MissingResourceFailureException:
The Reference for URI has no
XMLSignatureInput
Original Exception was
org.apache.xml.security.signature.ReferenceNotInitializedException:
and so on....
I have copied the org folder that contains the w3c
classes from JSDK 1.4.4 and included it in the
classpath.
The sample code is as follows..
import java.io.*;
import java.lang.reflect.*;
import java.security.PublicKey;
import java.security.cert.*;
import java.util.*;
import javax.xml.transform.TransformerException;
import org.apache.xpath.XPathAPI;
import org.w3c.dom.*;
import org.apache.xml.security.c14n.*;
import
org.apache.xml.security.exceptions.XMLSecurityException;
import org.apache.xml.security.signature.*;
import org.apache.xml.security.keys.*;
import org.apache.xml.security.keys.content.*;
import org.apache.xml.security.keys.content.x509.*;
import org.apache.xml.security.keys.keyresolver.*;
import org.apache.xml.security.keys.storage.*;
import
org.apache.xml.security.keys.storage.implementations.*;
import org.apache.xml.security.utils.*;
import org.apache.xml.security.Init;
import
org.apache.xml.security.samples.utils.resolver.OfflineResolver;
/**
*
*
*
*
* @author $Author: geuerp $
*
*/
public class VerifySignature2 {
/**
* Method main
*
* @param unused
*/
public static void main(String unused[]) {
boolean schemaValidate = false;
final String signatureSchemaFile =
"data/xmldsig-core-schema.xsd";
// String signatureFileName =
"data/ie/baltimore/merlin-examples/merlin-xmldsig-fifteen/signature-enveloping-rsa.xml";
String signatureFileName = "signature.xml";
if (schemaValidate) {
System.out.println("We do
schema-validation");
}
javax.xml.parsers.DocumentBuilderFactory dbf =
javax.xml.parsers.DocumentBuilderFactory.newInstance();
if (schemaValidate) {
dbf.setAttribute("http://apache.org/xml/features/validation/schema",Boolean.TRUE);
dbf.setAttribute("http://apache.org/xml/features/dom/defer-node-expansion",
Boolean.TRUE);
dbf.setValidating(true);
dbf.setAttribute("http://xml.org/sax/features/validation",
Boolean.TRUE);
}
dbf.setNamespaceAware(true);
dbf.setAttribute("http://xml.org/sax/features/namespaces",
Boolean.TRUE);
if (schemaValidate) {
dbf.setAttribute("http://apache.org/xml/properties/schema/external-schemaLocation",
Constants.SignatureSpecNS + " " +
signatureSchemaFile);
}
try {
// File f = new File("signature.xml");
File f = new File(signatureFileName);
System.out.println("Try to verify " +
f.toURL().toString());
javax.xml.parsers.DocumentBuilder db =
dbf.newDocumentBuilder();
db.setErrorHandler(new
org.apache.xml.security.utils.IgnoreAllErrorHandler());
if (schemaValidate) {
db.setEntityResolver(new
org.xml.sax.EntityResolver() {
public org.xml.sax.InputSource
resolveEntity(String publicId, String systemId)
throws org.xml.sax.SAXException {
if
(systemId.endsWith("xmldsig-core-schema.xsd")) {
try {
return new
org.xml.sax.InputSource(new
FileInputStream(signatureSchemaFile));
} catch (FileNotFoundException
ex) {
throw new
org.xml.sax.SAXException(ex);
}
} else {
return null;
}
}
});
}
org.w3c.dom.Document doc = db.parse(new
java.io.FileInputStream(f));
Element nscontext = XMLUtils.createDSctx(doc,
"ds",Constants.SignatureSpecNS);
Element sigElement = (Element)
XPathAPI.selectSingleNode(doc,"//ds:Signature[1]",
nscontext);
XMLSignature signature = new
XMLSignature(sigElement, f.toURL().toString());
signature.addResourceResolver(new
OfflineResolver());
//
XMLUtils.outputDOMc14nWithComments(signature.getElement(),
System.out);
KeyInfo ki = signature.getKeyInfo();
if (ki != null) {
if (ki.containsX509Data())
{
System.out.println("X509Data element
present in the KeyInfo");
}
X509Certificate cert =
signature.getKeyInfo().getX509Certificate();
if (cert != null)
{
/*
System.out.println(
"I try to verify the signature using
the X509 Certificate: "
+ cert);
*/
System.out.println("The XML signature
in file "+ f.toURL().toString() + " is " +
(signature.checkSignatureValue(cert)
? "valid (good)"
: "invalid !!!!! (bad)"));
}
else
{
System.out.println("Did not find a
Certificate");
PublicKey pk =
signature.getKeyInfo().getPublicKey();
if (pk != null)
{
/*
System.out.println(
"I try to verify the signature
using the public key: "
+ pk);
*/
System.out.println("The XML
signature in file " + f.toURL().toString() + " is "+
(signature.checkSignatureValue(pk)
? "valid
(good)" : "invalid !!!!! (bad)"));
} else
{
System.out.println("Did not find a
public key, so I can't check the signature");
}
}
} else {
System.out.println("Did not find a
KeyInfo");
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
static {
org.apache.xml.security.Init.init();
}
}
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
RE: 'make install' for C++ 1.x on Solaris
Posted by Scott Cantor <ca...@osu.edu>.
> I thought I tested this.
>
> Will have a look-see tonight and see what is wrong.
On 2.8, I'm also getting failures in which the include tree isn't deep
copied during the install. Maybe some newer version of some GNU-related
package is needed?
-- Scott