summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:37:15 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-13 06:37:15 +0000
commitc527478359a4eeef274a329ad12c72474892328b (patch)
tree915ab93a16bcd784eeb0808fc529df87ab3a0523 /lib/libcrypto
parentaaa7630fdba9c6d1da806da2c5242578440a6a10 (diff)
Add a const qualifier to the argument of EVP_PKEY_bits(3).
tested in a bulk build by sthen ok beck (as part of a larger diff)
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/evp/evp.h4
-rw-r--r--lib/libcrypto/evp/p_lib.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h
index fd9d4ed263e..ec09deef469 100644
--- a/lib/libcrypto/evp/evp.h
+++ b/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp.h,v 1.60 2018/05/13 06:35:10 tb Exp $ */
+/* $OpenBSD: evp.h,v 1.61 2018/05/13 06:37:14 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -867,7 +867,7 @@ int EVP_PKEY_encrypt_old(unsigned char *enc_key, const unsigned char *key,
int EVP_PKEY_type(int type);
int EVP_PKEY_id(const EVP_PKEY *pkey);
int EVP_PKEY_base_id(const EVP_PKEY *pkey);
-int EVP_PKEY_bits(EVP_PKEY *pkey);
+int EVP_PKEY_bits(const EVP_PKEY *pkey);
int EVP_PKEY_size(EVP_PKEY *pkey);
int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
diff --git a/lib/libcrypto/evp/p_lib.c b/lib/libcrypto/evp/p_lib.c
index b14c95f14df..fab1eeb0229 100644
--- a/lib/libcrypto/evp/p_lib.c
+++ b/lib/libcrypto/evp/p_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p_lib.c,v 1.21 2018/04/14 07:09:21 tb Exp $ */
+/* $OpenBSD: p_lib.c,v 1.22 2018/05/13 06:37:14 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -85,7 +85,7 @@
static void EVP_PKEY_free_it(EVP_PKEY *x);
int
-EVP_PKEY_bits(EVP_PKEY *pkey)
+EVP_PKEY_bits(const EVP_PKEY *pkey)
{
if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
return pkey->ameth->pkey_bits(pkey);