gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, gnutls_2_10_x, updated. gnutls_2_10_2-10-g0fc70


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, gnutls_2_10_x, updated. gnutls_2_10_2-10-g0fc7031
Date: Tue, 16 Nov 2010 14:45:17 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=0fc70314bd3950a8d5fc3804ca8964651a36a850

The branch, gnutls_2_10_x has been updated
       via  0fc70314bd3950a8d5fc3804ca8964651a36a850 (commit)
       via  d6c16d2bb7223913f8e5982efd397d61bdcc2c96 (commit)
      from  ad896d8a1916e328b57458fec79b0deaf62fa4a6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0fc70314bd3950a8d5fc3804ca8964651a36a850
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Tue Nov 16 15:45:14 2010 +0100

    added info

commit d6c16d2bb7223913f8e5982efd397d61bdcc2c96
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Tue Nov 16 15:41:47 2010 +0100

    Correctly write DSA public key in ASN.1 (add leading zero). Reported by 
Jeffrey Walton.

-----------------------------------------------------------------------

Summary of changes:
 NEWS                     |    3 +++
 lib/x509/privkey_pkcs8.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index bd5fa2a..3c40344 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ See the end for copying conditions.
 
 * Version 2.10.3 (unreleased)
 
+** libgnutls: Correctly add leading zero to PKCS #8 encoded DSA key.
+Reported by Jeffrey Walton.
+
 ** libgnutls: Corrected memory leak in extension data calculation. 
 Reported by Mike Blumenkrantz.
 
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index fa33401..989c734 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -178,7 +178,7 @@ _encode_privkey (gnutls_x509_privkey_t pkey, gnutls_datum_t 
* raw)
          return _gnutls_asn2err (ret);
        }
 
-      ret = _gnutls_x509_write_int (spk, "", pkey->params[4], 0);
+      ret = _gnutls_x509_write_int (spk, "", pkey->params[4], 1);
       if (ret < 0)
        {
          gnutls_assert ();


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]