summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2018-05-13 06:37:14 +0000
committertb <>2018-05-13 06:37:14 +0000
commite50933f7979a361b1d638006d37a0cfd6ad3c6d7 (patch)
tree11e1915d9758ce64eadbc07d51c288672c52a6af
parentc9db6209f7f282a22b110963e0792cb2848750c2 (diff)
downloadopenbsd-e50933f7979a361b1d638006d37a0cfd6ad3c6d7.tar.gz
openbsd-e50933f7979a361b1d638006d37a0cfd6ad3c6d7.tar.bz2
openbsd-e50933f7979a361b1d638006d37a0cfd6ad3c6d7.zip
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)
-rw-r--r--src/lib/libcrypto/evp/evp.h4
-rw-r--r--src/lib/libcrypto/evp/p_lib.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index fd9d4ed263..ec09deef46 100644
--- a/src/lib/libcrypto/evp/evp.h
+++ b/src/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp.h,v 1.60 2018/05/13 06:35:10 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.61 2018/05/13 06:37:14 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -867,7 +867,7 @@ int EVP_PKEY_encrypt_old(unsigned char *enc_key, const unsigned char *key,
867int EVP_PKEY_type(int type); 867int EVP_PKEY_type(int type);
868int EVP_PKEY_id(const EVP_PKEY *pkey); 868int EVP_PKEY_id(const EVP_PKEY *pkey);
869int EVP_PKEY_base_id(const EVP_PKEY *pkey); 869int EVP_PKEY_base_id(const EVP_PKEY *pkey);
870int EVP_PKEY_bits(EVP_PKEY *pkey); 870int EVP_PKEY_bits(const EVP_PKEY *pkey);
871int EVP_PKEY_size(EVP_PKEY *pkey); 871int EVP_PKEY_size(EVP_PKEY *pkey);
872int EVP_PKEY_set_type(EVP_PKEY *pkey, int type); 872int EVP_PKEY_set_type(EVP_PKEY *pkey, int type);
873int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len); 873int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c
index b14c95f14d..fab1eeb022 100644
--- a/src/lib/libcrypto/evp/p_lib.c
+++ b/src/lib/libcrypto/evp/p_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p_lib.c,v 1.21 2018/04/14 07:09:21 tb Exp $ */ 1/* $OpenBSD: p_lib.c,v 1.22 2018/05/13 06:37:14 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -85,7 +85,7 @@
85static void EVP_PKEY_free_it(EVP_PKEY *x); 85static void EVP_PKEY_free_it(EVP_PKEY *x);
86 86
87int 87int
88EVP_PKEY_bits(EVP_PKEY *pkey) 88EVP_PKEY_bits(const EVP_PKEY *pkey)
89{ 89{
90 if (pkey && pkey->ameth && pkey->ameth->pkey_bits) 90 if (pkey && pkey->ameth && pkey->ameth->pkey_bits)
91 return pkey->ameth->pkey_bits(pkey); 91 return pkey->ameth->pkey_bits(pkey);