aboutsummaryrefslogtreecommitdiffstats
path: root/include/openssl/x509.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-08-13 13:40:05 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-16 23:36:27 +0100
commitb2e57e094db5f516cffa6f2749615a7287a7681d (patch)
tree3ab6aeb081e13354f00e89731c44e955059d9e3f /include/openssl/x509.h
parentbb2f62bababe1e735efe828bc9a467b967c8cd20 (diff)
downloadopenssl-b2e57e094db5f516cffa6f2749615a7287a7681d.tar.gz
Convert PKCS8* functions to use const getters
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org>
Diffstat (limited to 'include/openssl/x509.h')
-rw-r--r--include/openssl/x509.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index 5cb15b0d60..4ccf2eccd3 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -971,7 +971,8 @@ int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg,
const unsigned char **pk, int *ppklen,
X509_ALGOR **pa, PKCS8_PRIV_KEY_INFO *p8);
-STACK_OF(X509_ATTRIBUTE) *PKCS8_pkey_get0_attrs(PKCS8_PRIV_KEY_INFO *p8);
+const STACK_OF(X509_ATTRIBUTE) *
+PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);
int PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,
const unsigned char *bytes, int len);