diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-11-16 15:41:47 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-11-16 15:41:47 +0100 |
commit | 4c96b274661d185b5a6d8197d9ea401772ed87e7 (patch) | |
tree | 0f62c7c724f7027b4750a41ca4875b7ec5b09cbb | |
parent | 42794c31945746e9934e539824960d7a830f9bb3 (diff) | |
download | gnutls-4c96b274661d185b5a6d8197d9ea401772ed87e7.tar.gz |
Correctly write DSA public key in ASN.1 (add leading zero). Reported by Jeffrey Walton.
-rw-r--r-- | lib/x509/privkey_pkcs8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index fa33401acf..989c7346d7 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 (); |