summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/ecdsa
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2019-01-19 01:17:41 +0000
committertb <tb@openbsd.org>2019-01-19 01:17:41 +0000
commitf834e5a48e732ca548b7679601cc2d82a675d55a (patch)
treeb590126bf770b3e7530dea5514bf812a7ab0543c /lib/libcrypto/ecdsa
parentPartial port of EC_KEY_METHOD from OpenSSL 1.1. (diff)
downloadwireguard-openbsd-f834e5a48e732ca548b7679601cc2d82a675d55a.tar.xz
wireguard-openbsd-f834e5a48e732ca548b7679601cc2d82a675d55a.zip
Partial port of EC_KEY_METHOD from OpenSSL 1.1.
Pass const method to EC_KEY_METHOD_get_*() to get rid of an XXX. from markus
Diffstat (limited to 'lib/libcrypto/ecdsa')
-rw-r--r--lib/libcrypto/ecdsa/ecdsa.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/ecdsa/ecdsa.h b/lib/libcrypto/ecdsa/ecdsa.h
index 71b8825436b..c4e107eee58 100644
--- a/lib/libcrypto/ecdsa/ecdsa.h
+++ b/lib/libcrypto/ecdsa/ecdsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecdsa.h,v 1.7 2019/01/19 01:12:48 tb Exp $ */
+/* $OpenBSD: ecdsa.h,v 1.8 2019/01/19 01:17:41 tb Exp $ */
/**
* \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions
* \author Written by Nils Larsch for the OpenSSL project
@@ -284,7 +284,7 @@ void EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,
const unsigned char *sigbuf, int sig_len, EC_KEY *eckey),
int (*verify_sig)(const unsigned char *dgst, int dgst_len,
const ECDSA_SIG *sig, EC_KEY *eckey));
-void EC_KEY_METHOD_get_sign(EC_KEY_METHOD *meth,
+void EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,
int (**psign)(int type, const unsigned char *dgst,
int dlen, unsigned char *sig, unsigned int *siglen,
const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey),
@@ -293,7 +293,7 @@ void EC_KEY_METHOD_get_sign(EC_KEY_METHOD *meth,
ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,
int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r,
EC_KEY *eckey));
-void EC_KEY_METHOD_get_verify(EC_KEY_METHOD *meth,
+void EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,
int (**pverify)(int type, const unsigned char *dgst, int dgst_len,
const unsigned char *sigbuf, int sig_len, EC_KEY *eckey),
int (**pverify_sig)(const unsigned char *dgst, int dgst_len,