From 4fdf91742e3b7eb73e41b38d8d5b2f17d4d5b544 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 30 May 2014 13:21:43 +0100 Subject: [PATCH] Use correct digest when exporting keying material. PR#3319 --- ssl/t1_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 52fd32978a..ab86e7e3e6 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1218,7 +1218,7 @@ int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen, if (memcmp(val, TLS_MD_KEY_EXPANSION_CONST, TLS_MD_KEY_EXPANSION_CONST_SIZE) == 0) goto err1; - rv = tls1_PRF(s->s3->tmp.new_cipher->algorithm2, + rv = tls1_PRF(ssl_get_algorithm2(s), val, vallen, NULL, 0, NULL, 0, -- 2.25.1