[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

Richard Levitte levitte at openssl.org
Fri Jan 20 07:30:47 UTC 2017


The branch OpenSSL_1_1_0-stable has been updated
       via  aaec49fae2c4605ec578ad77b14913852fe4acca (commit)
      from  349364138b26ae3196c7a9497d2b27cc0aa0bc31 (commit)


- Log -----------------------------------------------------------------
commit aaec49fae2c4605ec578ad77b14913852fe4acca
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Jan 18 16:19:26 2017 +0100

    Fix DSA parameter generation control error
    
    When setting the digest parameter for DSA parameter generation, the
    signature MD was set instead of the parameter generation one.
    Fortunately, that's also the one that was used for parameter
    generation, but it ultimately meant the parameter generator MD and the
    signature MD would always be the same.
    
    Fixes github issue #2016
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2250)
    (cherry picked from commit 8a05c4d3b5a1bfb9193ea24e71735e11de7168d2)

-----------------------------------------------------------------------

Summary of changes:
 crypto/dsa/dsa_pmeth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c
index 4180958..95f088a 100644
--- a/crypto/dsa/dsa_pmeth.c
+++ b/crypto/dsa/dsa_pmeth.c
@@ -136,7 +136,7 @@ static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
             DSAerr(DSA_F_PKEY_DSA_CTRL, DSA_R_INVALID_DIGEST_TYPE);
             return 0;
         }
-        dctx->md = p2;
+        dctx->pmd = p2;
         return 1;
 
     case EVP_PKEY_CTRL_MD:


More information about the openssl-commits mailing list