From: tedu Date: Mon, 28 Apr 2014 20:10:55 +0000 (+0000) Subject: use the correct algorithm mask. reported by satish lvr via X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=83e195a88b11348250b6b70270db29249052e987;p=openbsd use the correct algorithm mask. reported by satish lvr via http://marc.info/?l=openssl-dev&m=139779977532459&w=2 ok miod --- diff --git a/lib/libssl/src/ssl/t1_enc.c b/lib/libssl/src/ssl/t1_enc.c index ac503f53eeb..2480fecd7ee 100644 --- a/lib/libssl/src/ssl/t1_enc.c +++ b/lib/libssl/src/ssl/t1_enc.c @@ -1124,7 +1124,7 @@ tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen, 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, NULL, 0, NULL, 0, s->session->master_key, s->session->master_key_length, out, buff, olen); diff --git a/lib/libssl/t1_enc.c b/lib/libssl/t1_enc.c index ac503f53eeb..2480fecd7ee 100644 --- a/lib/libssl/t1_enc.c +++ b/lib/libssl/t1_enc.c @@ -1124,7 +1124,7 @@ tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen, 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, NULL, 0, NULL, 0, s->session->master_key, s->session->master_key_length, out, buff, olen);