From fdddac90a6f3b0580d0636d1a57ceba4fc2988cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 25 Mar 2014 15:58:35 +0100 Subject: [PATCH] Fix stupid bug in rsa_copy() --- ChangeLog | 1 + library/rsa.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b269c8a5..e57b5a441 100644 --- a/ChangeLog +++ b/ChangeLog @@ -51,6 +51,7 @@ Bugfix containing a client certificate * ssl_init() was leaving a dirty pointer in ssl_context if malloc of out_ctr failed + * Fix typo in rsa_copy() that impacted PKCS#1 v2 contexts = PolarSSL 1.3.4 released on 2014-01-27 Features diff --git a/library/rsa.c b/library/rsa.c index bf60c6f17..5abf6f655 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -1381,7 +1381,7 @@ int rsa_copy( rsa_context *dst, const rsa_context *src ) #endif dst->padding = src->padding; - dst->hash_id = src->padding; + dst->hash_id = src->hash_id; cleanup: if( ret != 0 )