apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r731034 - in /apr/apr-util/trunk: CHANGES crypto/apr_crypto_nss.c
Date Sat, 03 Jan 2009 17:34:40 GMT
Author: minfrin
Date: Sat Jan  3 09:34:39 2009
New Revision: 731034

URL: http://svn.apache.org/viewvc?rev=731034&view=rev
Log:
Fix a bogus initialisation of the IV size in the NSS crypto driver.

Modified:
    apr/apr-util/trunk/CHANGES
    apr/apr-util/trunk/crypto/apr_crypto_nss.c

Modified: apr/apr-util/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/CHANGES?rev=731034&r1=731033&r2=731034&view=diff
==============================================================================
--- apr/apr-util/trunk/CHANGES [utf-8] (original)
+++ apr/apr-util/trunk/CHANGES [utf-8] Sat Jan  3 09:34:39 2009
@@ -1,6 +1,9 @@
                                                      -*- coding: utf-8 -*-
 Changes with APR-util 1.4.0
 
+  *) Fix a bogus initialisation of the IV size in the NSS crypto driver.
+     [Graham Leggett]
+
   *) Make sure that the underlying result code during driver initialisation
      is exposed to the caller. [Graham Leggett]
 

Modified: apr/apr-util/trunk/crypto/apr_crypto_nss.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/crypto/apr_crypto_nss.c?rev=731034&r1=731033&r2=731034&view=diff
==============================================================================
--- apr/apr-util/trunk/crypto/apr_crypto_nss.c (original)
+++ apr/apr-util/trunk/crypto/apr_crypto_nss.c Sat Jan  3 09:34:39 2009
@@ -421,7 +421,6 @@
 {
     PRErrorCode perr;
     SECItem * secParam;
-    int usedIvSize;
     SECItem ivItem;
     unsigned char * usedIv;
     apr_crypto_block_t *block = *ctx;
@@ -457,7 +456,7 @@
              usedIv = (unsigned char *)*iv;
         }
         ivItem.data = usedIv;
-        ivItem.len = usedIvSize;
+        ivItem.len = key->ivSize;
         secParam = PK11_ParamFromIV(key->cipherMech, &ivItem);
     }
     else {



Mime
View raw message