Make SRP_CTX.info ownership and lifetime be the same as SRP_CTX.login.
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>
Mon, 15 May 2017 08:35:45 +0000 (10:35 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Jun 2017 19:59:00 +0000 (20:59 +0100)
commite655f5494100d93307726b23f4718ead0cadc0c3
tree8dc163d1edc76a8499a726e43f9054403863df9b
parent0bae19607238fa36cd5020f2c96c7bdbf17dd280
Make SRP_CTX.info ownership and lifetime be the same as SRP_CTX.login.

Ownership and lifetime rules of SRP_CTX.info are confusing and different
from those of SRP_CTX.login, making it difficult to use correctly.
This makes the ownership and lifetime be the same as those of SRP_CTX.login,
thet is a copy is made when setting it and is freed when SRP_CTX is freed.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3467)
ssl/s3_lib.c
ssl/tls_srp.c