summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2018-05-30 15:40:50 +0000
committertb <>2018-05-30 15:40:50 +0000
commit358c59aecf17d566f9e65cca771cccd144234716 (patch)
treefb46847eb2931866ed4e4936d9fce9b83baefcb1 /src
parent590cacdf5d934adea172f307f0f00a458f99b2d9 (diff)
downloadopenbsd-358c59aecf17d566f9e65cca771cccd144234716.tar.gz
openbsd-358c59aecf17d566f9e65cca771cccd144234716.tar.bz2
openbsd-358c59aecf17d566f9e65cca771cccd144234716.zip
Add a const qualifier to the argument of EVP_PKEY_size().
tested in a bulk build by sthen ok jsing
Diffstat (limited to 'src')
-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 4f1c5c5d81..c557ba9f39 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.63 2018/05/13 06:40:55 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.64 2018/05/30 15:40:50 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 *
@@ -868,7 +868,7 @@ int 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(const EVP_PKEY *pkey); 870int EVP_PKEY_bits(const EVP_PKEY *pkey);
871int EVP_PKEY_size(EVP_PKEY *pkey); 871int EVP_PKEY_size(const 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);
874int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); 874int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c
index 9065786d17..0e4c38e218 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.23 2018/05/13 06:38:46 tb Exp $ */ 1/* $OpenBSD: p_lib.c,v 1.24 2018/05/30 15:40:50 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 *
@@ -93,7 +93,7 @@ EVP_PKEY_bits(const EVP_PKEY *pkey)
93} 93}
94 94
95int 95int
96EVP_PKEY_size(EVP_PKEY *pkey) 96EVP_PKEY_size(const EVP_PKEY *pkey)
97{ 97{
98 if (pkey && pkey->ameth && pkey->ameth->pkey_size) 98 if (pkey && pkey->ameth && pkey->ameth->pkey_size)
99 return pkey->ameth->pkey_size(pkey); 99 return pkey->ameth->pkey_size(pkey);