diff options
| author | tb <> | 2023-08-11 13:53:45 +0000 |
|---|---|---|
| committer | tb <> | 2023-08-11 13:53:45 +0000 |
| commit | e392da2d02a86f657177c5d0b765fb6ffacc45b1 (patch) | |
| tree | 2aaa23d57d54278fda5b3850aaecc7c7fdfa2986 /src/lib/libcrypto/dh/dh_ameth.c | |
| parent | 93bd04d44a2508a2c9e0ba286901affed2ab4d3a (diff) | |
| download | openbsd-e392da2d02a86f657177c5d0b765fb6ffacc45b1.tar.gz openbsd-e392da2d02a86f657177c5d0b765fb6ffacc45b1.tar.bz2 openbsd-e392da2d02a86f657177c5d0b765fb6ffacc45b1.zip | |
Use params{,_len} in {dh,dsa}_params_{en,de}code()
Diffstat (limited to 'src/lib/libcrypto/dh/dh_ameth.c')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_ameth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/dh/dh_ameth.c b/src/lib/libcrypto/dh/dh_ameth.c index cd4c130f10..c43ada8ed8 100644 --- a/src/lib/libcrypto/dh/dh_ameth.c +++ b/src/lib/libcrypto/dh/dh_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh_ameth.c,v 1.34 2023/08/11 11:32:19 tb Exp $ */ | 1 | /* $OpenBSD: dh_ameth.c,v 1.35 2023/08/11 13:53:45 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -298,12 +298,12 @@ dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) | |||
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | static int | 300 | static int |
| 301 | dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) | 301 | dh_param_decode(EVP_PKEY *pkey, const unsigned char **params, int params_len) |
| 302 | { | 302 | { |
| 303 | DH *dh = NULL; | 303 | DH *dh = NULL; |
| 304 | int ret = 0; | 304 | int ret = 0; |
| 305 | 305 | ||
| 306 | if ((dh = d2i_DHparams(NULL, pder, derlen)) == NULL) { | 306 | if ((dh = d2i_DHparams(NULL, params, params_len)) == NULL) { |
| 307 | DHerror(ERR_R_DH_LIB); | 307 | DHerror(ERR_R_DH_LIB); |
| 308 | goto err; | 308 | goto err; |
| 309 | } | 309 | } |
| @@ -320,9 +320,9 @@ dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) | |||
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | static int | 322 | static int |
| 323 | dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) | 323 | dh_param_encode(const EVP_PKEY *pkey, unsigned char **params) |
| 324 | { | 324 | { |
| 325 | return i2d_DHparams(pkey->pkey.dh, pder); | 325 | return i2d_DHparams(pkey->pkey.dh, params); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | static int | 328 | static int |
