diff options
author | tb <> | 2023-06-25 19:04:35 +0000 |
---|---|---|
committer | tb <> | 2023-06-25 19:04:35 +0000 |
commit | 500ba3bf943245ebd4fb77b8691fdb06e51a615d (patch) | |
tree | af87b42bf5227888532aa40b6a65f2a288988c84 /src/lib/libcrypto/ecdsa/ecs_ossl.c | |
parent | 70d8987d04d28fe256835167778ab28f3e6bdd3c (diff) | |
download | openbsd-500ba3bf943245ebd4fb77b8691fdb06e51a615d.tar.gz openbsd-500ba3bf943245ebd4fb77b8691fdb06e51a615d.tar.bz2 openbsd-500ba3bf943245ebd4fb77b8691fdb06e51a615d.zip |
Move ECDH_OpenSSL() ECDSA_OpenSSL() to *_lib.c
Now that they no longer use static methods, they can move where they
belong. Also make the static method const, as it should have been all
along.
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_ossl.c')
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 5df87f224b..547d3b59e1 100644 --- a/src/lib/libcrypto/ecdsa/ecs_ossl.c +++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_ossl.c,v 1.35 2023/06/25 18:41:36 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.36 2023/06/25 19:04:35 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
4 | */ | 4 | */ |
@@ -72,19 +72,6 @@ | |||
72 | static int ecdsa_prepare_digest(const unsigned char *dgst, int dgst_len, | 72 | static int ecdsa_prepare_digest(const unsigned char *dgst, int dgst_len, |
73 | BIGNUM *order, BIGNUM *ret); | 73 | BIGNUM *order, BIGNUM *ret); |
74 | 74 | ||
75 | static ECDSA_METHOD openssl_ecdsa_meth = { | ||
76 | .name = "OpenSSL ECDSA method", | ||
77 | .ecdsa_do_sign = ossl_ecdsa_sign_sig, | ||
78 | .ecdsa_sign_setup = ossl_ecdsa_sign_setup, | ||
79 | .ecdsa_do_verify = ossl_ecdsa_verify_sig, | ||
80 | }; | ||
81 | |||
82 | const ECDSA_METHOD * | ||
83 | ECDSA_OpenSSL(void) | ||
84 | { | ||
85 | return &openssl_ecdsa_meth; | ||
86 | } | ||
87 | |||
88 | static int | 75 | static int |
89 | ecdsa_prepare_digest(const unsigned char *dgst, int dgst_len, BIGNUM *order, | 76 | ecdsa_prepare_digest(const unsigned char *dgst, int dgst_len, BIGNUM *order, |
90 | BIGNUM *ret) | 77 | BIGNUM *ret) |