[xmlsec] reduce hmac min length; fix xpath transform



commit d4ac1a621f88a923b17394530e333a3086ebe206
Author: Aleksey Sanin <aleksey aleksey com>
Date:   Thu Jun 25 21:16:14 2009 -0700

    reduce hmac min length; fix xpath transform

 src/gnutls/hmac.c  |    2 +-
 src/nss/hmac.c     |    2 +-
 src/openssl/hmac.c |    2 +-
 src/xpath.c        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnutls/hmac.c b/src/gnutls/hmac.c
index 5a0940c..300c929 100644
--- a/src/gnutls/hmac.c
+++ b/src/gnutls/hmac.c
@@ -23,7 +23,7 @@
 #include <xmlsec/gnutls/app.h>
 #include <xmlsec/gnutls/crypto.h>
 
-#define XMLSEC_GNUTLS_MIN_HMAC_SIZE		64
+#define XMLSEC_GNUTLS_MIN_HMAC_SIZE		40
 #define XMLSEC_GNUTLS_MAX_HMAC_SIZE		128
 
 /**************************************************************************
diff --git a/src/nss/hmac.c b/src/nss/hmac.c
index a7c2018..0080a8f 100644
--- a/src/nss/hmac.c
+++ b/src/nss/hmac.c
@@ -26,7 +26,7 @@
 #include <xmlsec/nss/app.h>
 #include <xmlsec/nss/crypto.h>
 
-#define XMLSEC_NSS_MIN_HMAC_SIZE		64
+#define XMLSEC_NSS_MIN_HMAC_SIZE		40
 #define XMLSEC_NSS_MAX_HMAC_SIZE		128
 
 /**************************************************************************
diff --git a/src/openssl/hmac.c b/src/openssl/hmac.c
index 76fca0e..7134e34 100644
--- a/src/openssl/hmac.c
+++ b/src/openssl/hmac.c
@@ -32,7 +32,7 @@
 
 #include <xmlsec/openssl/crypto.h>
 
-#define XMLSEC_OPENSSL_MIN_HMAC_SIZE		64
+#define XMLSEC_OPENSSL_MIN_HMAC_SIZE		40
 
 /**************************************************************************
  *
diff --git a/src/xpath.c b/src/xpath.c
index c1ba528..ec765d6 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -523,7 +523,7 @@ xmlSecTransformXPathGetKlass(void) {
     return(&xmlSecTransformXPathKlass);
 }
 
-static const char xpathPattern[] = "(//. | //@* | //namespace::*)[%s]";
+static const char xpathPattern[] = "(//. | //@* | //namespace::*)[boolean(%s)]";
 static int 
 xmlSecTransformXPathNodeRead(xmlSecTransformPtr transform, xmlNodePtr node, xmlSecTransformCtxPtr transformCtx) {
     xmlSecPtrListPtr dataList;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]