FW: [xmlsec] xmlsec-mscrypto code review

Jan-Olof Andersson jan-olof.andersson@blcc.biz
Tue, 23 Sep 2003 10:53:41 -0400


I have a document with different local documents that each shall be signed
by a different certificate (Localdata). Can there be any problem then that I
want just to sign the ALLDATA?

It always seems to sign the first signature it finds, into the LOCALDATA...

Best regards

Jan-Olof Andersson

<!DOCTYPE test [
	<!ATTLIST ALLDATA ID ID #IMPLIED>
	<!ATTLIST LOCALDATA ID ID #IMPLIED>
]>

<DOC>
	<ALLDATA ID="ALL">
		<DATA>
			<LOCALDATA ID="LOCAL1">
			......
			<LOCALDATA>
			<Signature>
				<Signedinfo>
					.....
					<Reference URI="#LOCAL1">
						.....
					</Reference>
				</Signedinfo>
				.....
			</Signature>
		<DATA>

		<DATA>
			<LOCALDATA ID="LOCAL2">
			......
			<LOCALDATA>
			<Signature>
				<Signedinfo>
					.....
					<Reference URI="#LOCAL2">
						.....
					</Reference>
				</Signedinfo>
				.....
			</Signature>
		<DATA>

	</ALLDATA>
	<Signature>
		<Signedinfo>
			.....
			<Reference URI="#ALL">
				.....
			</Reference>
		</Signedinfo>
		.....
	</Signature>
</DOC>