> By the way, should I expect to be able to compile any of the examples under nss?
Yes, you should :) Try with attached patch :) And thanks for reproting the problem!


Aleksey

Index: examples/encrypt3.c
===================================================================
RCS file: /cvs/gnome/xmlsec/examples/encrypt3.c,v
retrieving revision 1.8
diff -u -r1.8 encrypt3.c
--- examples/encrypt3.c 10 Sep 2003 20:23:59 -0000      1.8
+++ examples/encrypt3.c 12 Jan 2004 21:03:54 -0000
@@ -249,7 +249,7 @@
 
     /* add <enc:EncryptedKey/> to store the encrypted session key */
     encKeyNode = xmlSecTmplKeyInfoAddEncryptedKey(keyInfoNode, 
-                                   xmlSecTransformRsaOaepId, 
+                                   xmlSecTransformRsaPkcs1Id, 
                                    NULL, NULL, NULL);
     if(encKeyNode == NULL) {
        fprintf(stderr, "Error: failed to add key info\n");
Index: include/xmlsec/crypto.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/crypto.h,v
retrieving revision 1.14
diff -u -r1.14 crypto.h
--- include/xmlsec/crypto.h     26 Sep 2003 00:58:00 -0000      1.14
+++ include/xmlsec/crypto.h     12 Jan 2004 21:03:54 -0000
@@ -47,6 +47,7 @@
 #ifdef XMLSEC_CRYPTO_NSS
 #include <xmlsec/nss/app.h>
 #include <xmlsec/nss/crypto.h>
+#include <xmlsec/nss/x509.h>
 #include <xmlsec/nss/symbols.h>
 #else /* XMLSEC_CRYPTO_NSS */
 #error No crypto library defined
Index: include/xmlsec/nss/app.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/nss/app.h,v
retrieving revision 1.15
diff -u -r1.15 app.h
--- include/xmlsec/nss/app.h    26 Sep 2003 03:53:08 -0000      1.15
+++ include/xmlsec/nss/app.h    12 Jan 2004 21:03:54 -0000
@@ -14,6 +14,9 @@
 extern "C" {
 #endif /* __cplusplus */ 
 
+#include <nspr.h>
+#include <nss.h>
+
 #include <xmlsec/xmlsec.h>
 #include <xmlsec/keys.h>
 #include <xmlsec/keysmngr.h>
Index: include/xmlsec/nss/bignum.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/nss/bignum.h,v
retrieving revision 1.2
diff -u -r1.2 bignum.h
--- include/xmlsec/nss/bignum.h 30 Jul 2003 02:46:35 -0000      1.2
+++ include/xmlsec/nss/bignum.h 12 Jan 2004 21:03:54 -0000
@@ -17,6 +17,9 @@
 
 #include <libxml/tree.h> 
 
+#include <nspr.h>
+#include <nss.h>
+
 #include <xmlsec/xmlsec.h>
 
 XMLSEC_CRYPTO_EXPORT SECItem*  xmlSecNssNodeGetBigNumValue     (PRArenaPool *arena, 
Index: include/xmlsec/nss/crypto.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/nss/crypto.h,v
retrieving revision 1.18
diff -u -r1.18 crypto.h
--- include/xmlsec/nss/crypto.h 26 Sep 2003 00:58:03 -0000      1.18
+++ include/xmlsec/nss/crypto.h 12 Jan 2004 21:03:54 -0000
@@ -14,6 +14,9 @@
 extern "C" {
 #endif /* __cplusplus */ 
 
+#include <nspr.h>
+#include <nss.h>
+
 #include <xmlsec/xmlsec.h>
 #include <xmlsec/keys.h>
 #include <xmlsec/transforms.h>
Index: include/xmlsec/nss/pkikeys.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/nss/pkikeys.h,v
retrieving revision 1.2
diff -u -r1.2 pkikeys.h
--- include/xmlsec/nss/pkikeys.h        30 Jul 2003 02:46:35 -0000      1.2
+++ include/xmlsec/nss/pkikeys.h        12 Jan 2004 21:03:54 -0000
@@ -13,6 +13,9 @@
 extern "C" {
 #endif /* __cplusplus */ 
 
+#include <nspr.h>
+#include <nss.h>
+
 #include <xmlsec/xmlsec.h>
 #include <xmlsec/keys.h>
 #include <xmlsec/transforms.h>
Index: include/xmlsec/nss/x509.h
===================================================================
RCS file: /cvs/gnome/xmlsec/include/xmlsec/nss/x509.h,v
retrieving revision 1.3
diff -u -r1.3 x509.h
--- include/xmlsec/nss/x509.h   26 Sep 2003 03:53:08 -0000      1.3
+++ include/xmlsec/nss/x509.h   12 Jan 2004 21:03:54 -0000
@@ -15,6 +15,10 @@
 
 #ifndef XMLSEC_NO_X509
 
+#include <nspr.h>
+#include <nss.h>
+#include <cert.h>
+
 #include <xmlsec/xmlsec.h>
 #include <xmlsec/keys.h>
 #include <xmlsec/transforms.h>

Reply via email to