diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_pmeth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/dh/dh_pmeth.c b/src/lib/libcrypto/dh/dh_pmeth.c index 5b43214448..ee90ffe73f 100644 --- a/src/lib/libcrypto/dh/dh_pmeth.c +++ b/src/lib/libcrypto/dh/dh_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh_pmeth.c,v 1.15 2023/12/28 22:10:33 tb Exp $ */ | 1 | /* $OpenBSD: dh_pmeth.c,v 1.16 2024/01/01 16:01:48 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 | */ |
| @@ -10,7 +10,7 @@ | |||
| 10 | * are met: | 10 | * are met: |
| 11 | * | 11 | * |
| 12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. |
| 14 | * | 14 | * |
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | 15 | * 2. Redistributions in binary form must reproduce the above copyright |
| 16 | * notice, this list of conditions and the following disclaimer in | 16 | * notice, this list of conditions and the following disclaimer in |
| @@ -98,7 +98,7 @@ pkey_dh_init(EVP_PKEY_CTX *ctx) | |||
| 98 | ctx->data = dctx; | 98 | ctx->data = dctx; |
| 99 | ctx->keygen_info = dctx->gentmp; | 99 | ctx->keygen_info = dctx->gentmp; |
| 100 | ctx->keygen_info_count = 2; | 100 | ctx->keygen_info_count = 2; |
| 101 | 101 | ||
| 102 | return 1; | 102 | return 1; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| @@ -109,7 +109,7 @@ pkey_dh_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) | |||
| 109 | 109 | ||
| 110 | if (!pkey_dh_init(dst)) | 110 | if (!pkey_dh_init(dst)) |
| 111 | return 0; | 111 | return 0; |
| 112 | sctx = src->data; | 112 | sctx = src->data; |
| 113 | dctx = dst->data; | 113 | dctx = dst->data; |
| 114 | dctx->prime_len = sctx->prime_len; | 114 | dctx->prime_len = sctx->prime_len; |
| 115 | dctx->generator = sctx->generator; | 115 | dctx->generator = sctx->generator; |
| @@ -149,11 +149,11 @@ pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | |||
| 149 | return -2; | 149 | return -2; |
| 150 | } | 150 | } |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | static int | 153 | static int |
| 154 | pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) | 154 | pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) |
| 155 | { | 155 | { |
| 156 | long lval; | 156 | long lval; |
| 157 | char *ep; | 157 | char *ep; |
| 158 | int len; | 158 | int len; |
| 159 | 159 | ||
