diff options
| author | tb <> | 2018-04-25 11:48:21 +0000 |
|---|---|---|
| committer | tb <> | 2018-04-25 11:48:21 +0000 |
| commit | 8092d4e5908838632c7363f83d8b8f13fd30cfaf (patch) | |
| tree | 2706fdfa25b0fa2dc71fc06b437d687057013dcc /src/lib/libcrypto/asn1/a_object.c | |
| parent | 84c943ca0b3c30b47e6f704f3348268b374693f6 (diff) | |
| download | openbsd-8092d4e5908838632c7363f83d8b8f13fd30cfaf.tar.gz openbsd-8092d4e5908838632c7363f83d8b8f13fd30cfaf.tar.bz2 openbsd-8092d4e5908838632c7363f83d8b8f13fd30cfaf.zip | |
Add const to functions in asn1/asn1.h as they did in OpenSSL.
BIO_f_asn1() will be taken care of later.
Tested in a bulk by sthen
ok bcook jca jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/a_object.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_object.c b/src/lib/libcrypto/asn1/a_object.c index e10af97d36..16c3a1c0fd 100644 --- a/src/lib/libcrypto/asn1/a_object.c +++ b/src/lib/libcrypto/asn1/a_object.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_object.c,v 1.30 2017/05/02 03:59:44 deraadt Exp $ */ | 1 | /* $OpenBSD: a_object.c,v 1.31 2018/04/25 11:48:21 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 | * |
| @@ -67,7 +67,7 @@ | |||
| 67 | #include <openssl/objects.h> | 67 | #include <openssl/objects.h> |
| 68 | 68 | ||
| 69 | int | 69 | int |
| 70 | i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp) | 70 | i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp) |
| 71 | { | 71 | { |
| 72 | unsigned char *p; | 72 | unsigned char *p; |
| 73 | int objsize; | 73 | int objsize; |
| @@ -213,13 +213,13 @@ err: | |||
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | int | 215 | int |
| 216 | i2t_ASN1_OBJECT(char *buf, int buf_len, ASN1_OBJECT *a) | 216 | i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a) |
| 217 | { | 217 | { |
| 218 | return OBJ_obj2txt(buf, buf_len, a, 0); | 218 | return OBJ_obj2txt(buf, buf_len, a, 0); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | int | 221 | int |
| 222 | i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a) | 222 | i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a) |
| 223 | { | 223 | { |
| 224 | char *tmp = NULL; | 224 | char *tmp = NULL; |
| 225 | size_t tlen = 256; | 225 | size_t tlen = 256; |
