From b010b7c43478bef11b936475d89b87b4144e7d29 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 15 Apr 2006 18:50:56 +0000 Subject: Use more flexible method of determining output length, by setting &outlen value of the passed output buffer is NULL. The old method of using EVP_PKEY_size(pkey) isn't flexible enough to cover all cases where the output length may depend on the operation or the parameters associated with it. --- crypto/dh/dh_pmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/dh') diff --git a/crypto/dh/dh_pmeth.c b/crypto/dh/dh_pmeth.c index aaf32804b8..a4b7341c22 100644 --- a/crypto/dh/dh_pmeth.c +++ b/crypto/dh/dh_pmeth.c @@ -206,7 +206,7 @@ static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key, int *keylen) const EVP_PKEY_METHOD dh_pkey_meth = { EVP_PKEY_DH, - 0, + EVP_PKEY_FLAG_AUTOARGLEN, pkey_dh_init, pkey_dh_cleanup, -- cgit v1.2.3