diff options
author | tb <> | 2024-07-09 17:47:20 +0000 |
---|---|---|
committer | tb <> | 2024-07-09 17:47:20 +0000 |
commit | ad435e6afcf5da671e3d66380107cd00fbd4292a (patch) | |
tree | 9d3919590803821e00cd440c714fb17ca42bf188 /src | |
parent | dc9f04cf229b96cb23cbe04474d072226c7bd6ce (diff) | |
download | openbsd-ad435e6afcf5da671e3d66380107cd00fbd4292a.tar.gz openbsd-ad435e6afcf5da671e3d66380107cd00fbd4292a.tar.bz2 openbsd-ad435e6afcf5da671e3d66380107cd00fbd4292a.zip |
Unwrap a few more lines
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/kdf/tls1_prf.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lib/libcrypto/kdf/tls1_prf.c b/src/lib/libcrypto/kdf/tls1_prf.c index 65eb480b8e..ce574928d4 100644 --- a/src/lib/libcrypto/kdf/tls1_prf.c +++ b/src/lib/libcrypto/kdf/tls1_prf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls1_prf.c,v 1.36 2024/07/09 17:46:32 tb Exp $ */ | 1 | /* $OpenBSD: tls1_prf.c,v 1.37 2024/07/09 17:47:20 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project |
4 | * 2016. | 4 | * 2016. |
@@ -165,17 +165,13 @@ pkey_tls1_prf_ctrl_str(EVP_PKEY_CTX *ctx, | |||
165 | return 1; | 165 | return 1; |
166 | } | 166 | } |
167 | if (strcmp(type, "secret") == 0) | 167 | if (strcmp(type, "secret") == 0) |
168 | return EVP_PKEY_CTX_str2ctrl(ctx, EVP_PKEY_CTRL_TLS_SECRET, | 168 | return EVP_PKEY_CTX_str2ctrl(ctx, EVP_PKEY_CTRL_TLS_SECRET, value); |
169 | value); | ||
170 | if (strcmp(type, "hexsecret") == 0) | 169 | if (strcmp(type, "hexsecret") == 0) |
171 | return EVP_PKEY_CTX_hex2ctrl(ctx, EVP_PKEY_CTRL_TLS_SECRET, | 170 | return EVP_PKEY_CTX_hex2ctrl(ctx, EVP_PKEY_CTRL_TLS_SECRET, value); |
172 | value); | ||
173 | if (strcmp(type, "seed") == 0) | 171 | if (strcmp(type, "seed") == 0) |
174 | return EVP_PKEY_CTX_str2ctrl(ctx, EVP_PKEY_CTRL_TLS_SEED, | 172 | return EVP_PKEY_CTX_str2ctrl(ctx, EVP_PKEY_CTRL_TLS_SEED, value); |
175 | value); | ||
176 | if (strcmp(type, "hexseed") == 0) | 173 | if (strcmp(type, "hexseed") == 0) |
177 | return EVP_PKEY_CTX_hex2ctrl(ctx, EVP_PKEY_CTRL_TLS_SEED, | 174 | return EVP_PKEY_CTX_hex2ctrl(ctx, EVP_PKEY_CTRL_TLS_SEED, value); |
178 | value); | ||
179 | 175 | ||
180 | KDFerror(KDF_R_UNKNOWN_PARAMETER_TYPE); | 176 | KDFerror(KDF_R_UNKNOWN_PARAMETER_TYPE); |
181 | return -2; | 177 | return -2; |