diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | lib/gnutls_pk.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -Version 0.4.1 +Version 0.4.1 (7/04/2002) - Now uses alloca() for temporary variables - Optimized RSA signing - Added functions to return the peer's certificate activation and diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 9866d73f34..1304d93d7c 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -186,8 +186,9 @@ int _gnutls_pkcs1_rsa_decrypt(gnutls_sdatum * plaintext, */ if (btype==2) ret = _gnutls_pk_decrypt(GCRY_PK_RSA, &res, c, params, params_len); - else + else { ret = _gnutls_pk_encrypt(GCRY_PK_RSA, &res, c, params, params_len); + } _gnutls_mpi_release(&c); if (ret < 0) { |