diff options
author | tb <> | 2018-05-13 06:40:55 +0000 |
---|---|---|
committer | tb <> | 2018-05-13 06:40:55 +0000 |
commit | f7943a7d637c81a04f4e7be8825fd5bd5d278761 (patch) | |
tree | b6ee9334f73b5a7ddcaa6539b9d05cbdd4215c65 /src/lib | |
parent | 5c39313f78354204100b89647c01a2ee708ed13c (diff) | |
download | openbsd-f7943a7d637c81a04f4e7be8825fd5bd5d278761.tar.gz openbsd-f7943a7d637c81a04f4e7be8825fd5bd5d278761.tar.bz2 openbsd-f7943a7d637c81a04f4e7be8825fd5bd5d278761.zip |
Add a const qualifier to the argument of EVP_PKEY_get0_asn1(3).
tested in a bulk build by sthen
ok beck (as part of a larger diff)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index b27d72af45..d1798cf4f6 100644 --- a/src/lib/libcrypto/asn1/ameth_lib.c +++ b/src/lib/libcrypto/asn1/ameth_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ameth_lib.c,v 1.16 2017/01/21 04:31:25 jsing Exp $ */ | 1 | /* $OpenBSD: ameth_lib.c,v 1.17 2018/05/13 06:40:55 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -299,7 +299,7 @@ EVP_PKEY_asn1_get0_info(int *ppkey_id, int *ppkey_base_id, int *ppkey_flags, | |||
299 | } | 299 | } |
300 | 300 | ||
301 | const EVP_PKEY_ASN1_METHOD* | 301 | const EVP_PKEY_ASN1_METHOD* |
302 | EVP_PKEY_get0_asn1(EVP_PKEY *pkey) | 302 | EVP_PKEY_get0_asn1(const EVP_PKEY *pkey) |
303 | { | 303 | { |
304 | return pkey->ameth; | 304 | return pkey->ameth; |
305 | } | 305 | } |
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 4f2c867196..4f1c5c5d81 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.62 2018/05/13 06:38:46 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.63 2018/05/13 06:40:55 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 | * |
@@ -996,7 +996,7 @@ int EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id, int *ppkey_flags, | |||
996 | const char **pinfo, const char **ppem_str, | 996 | const char **pinfo, const char **ppem_str, |
997 | const EVP_PKEY_ASN1_METHOD *ameth); | 997 | const EVP_PKEY_ASN1_METHOD *ameth); |
998 | 998 | ||
999 | const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(EVP_PKEY *pkey); | 999 | const EVP_PKEY_ASN1_METHOD* EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); |
1000 | EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, | 1000 | EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags, const char *pem_str, |
1001 | const char *info); | 1001 | const char *info); |
1002 | void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst, | 1002 | void EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst, |