aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-18 16:48:33 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-18 17:20:36 +0100
commit095d2f0f8a11f8785eb8451dd8eeee60bebece20 (patch)
treee2088640247b60e2fedc0a0688fa3a3b1de4a287 /include
parenta3a0b4105709c1312d55906e5f3ee9b69d4af1d6 (diff)
downloadopenssl-095d2f0f8a11f8785eb8451dd8eeee60bebece20.zip
openssl-095d2f0f8a11f8785eb8451dd8eeee60bebece20.tar.gz
openssl-095d2f0f8a11f8785eb8451dd8eeee60bebece20.tar.bz2
Constify i2a*
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/asn1.h4
-rw-r--r--include/openssl/x509v3.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index afd3b1c..0315091 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -631,11 +631,11 @@ int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
int i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);
-int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a);
+int i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a);
int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);
int i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a);
int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);
-int i2a_ASN1_STRING(BIO *bp, ASN1_STRING *a, int type);
+int i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);
int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);
int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);
diff --git a/include/openssl/x509v3.h b/include/openssl/x509v3.h
index 5ca76a0..c6960f2 100644
--- a/include/openssl/x509v3.h
+++ b/include/openssl/x509v3.h
@@ -506,7 +506,7 @@ ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
X509V3_CTX *ctx, char *str);
DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE)
-int i2a_ACCESS_DESCRIPTION(BIO *bp, ACCESS_DESCRIPTION *a);
+int i2a_ACCESS_DESCRIPTION(BIO *bp, const ACCESS_DESCRIPTION *a);
DECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE)