summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <jas@mocca.josefsson.org>2007-05-26 23:29:47 +0200
committerSimon Josefsson <jas@mocca.josefsson.org>2007-05-26 23:29:47 +0200
commit1e0952521755982fdb09cd0f10f739bc98bbe12c (patch)
tree291673f16da4bbd268f8aa5e1243defa398accc8 /lib
parent123e7b008d365724a78feb23df830579b74fbad6 (diff)
downloadgnutls-1e0952521755982fdb09cd0f10f739bc98bbe12c.tar.gz
(decode_private_key_info): Translate asn1 errors properly. Reported
by Nate Nielsen <nielsen-list@memberwebs.com>.
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/privkey_pkcs8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index e3cd9d7067..19c7ef1838 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation
*
* Author: Nikos Mavroyanopoulos
*
@@ -779,6 +779,7 @@ decode_private_key_info (const gnutls_datum_t * der,
if (result != ASN1_SUCCESS)
{
gnutls_assert ();
+ result = _gnutls_asn2err (result);
goto error;
}