diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-07-15 22:01:47 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-07-15 22:01:47 +0300 |
commit | c832d7f4546cd0217d0a9be2fd13ebaca886f704 (patch) | |
tree | a8c1c2dee99dd3f6f0cf8133939f99d135100de2 /lib/gnutls_pk.c | |
parent | 39b8135436431c12ab76024bf3dfba338e25e0ec (diff) | |
download | gnutls-c832d7f4546cd0217d0a9be2fd13ebaca886f704.tar.gz |
Several bug fixes by Fabian Keil (some were modified by me).
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r-- | lib/gnutls_pk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index a08349bb49..2609252c69 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -361,7 +361,7 @@ int _gnutls_encode_ber_rs (gnutls_datum_t * sig_value, bigint_t r, bigint_t s) { ASN1_TYPE sig; - int result, tot_len; + int result; if ((result = asn1_create_element (_gnutls_get_gnutls_asn (), @@ -388,8 +388,6 @@ _gnutls_encode_ber_rs (gnutls_datum_t * sig_value, bigint_t r, bigint_t s) return result; } - tot_len = 0; - result = _gnutls_x509_der_encode (sig, "", sig_value, 0); asn1_delete_structure (&sig); |