diff options
author | tb <> | 2018-05-01 13:29:10 +0000 |
---|---|---|
committer | tb <> | 2018-05-01 13:29:10 +0000 |
commit | 82267b005082127062ce8593ce4963d09c361e2e (patch) | |
tree | 7876885f1d21e5b53f5a28cdd2d502808082a4fc /src/lib/libcrypto/asn1 | |
parent | 8b1e85eca7f06a392dbd8ae9b560599523c8de07 (diff) | |
download | openbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.gz openbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.bz2 openbsd-82267b005082127062ce8593ce4963d09c361e2e.zip |
const for BIO_{new,set}() and most of the BIO_{f,s}_*() family of
functions.
ok beck, jsing
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/bio_asn1.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 80923ad6e4..b1bf40dc63 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.47 2018/04/25 12:07:40 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.48 2018/05/01 13:29:09 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 | * |
@@ -1187,7 +1187,7 @@ void ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags); | |||
1187 | unsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p); | 1187 | unsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p); |
1188 | void ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags); | 1188 | void ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags); |
1189 | 1189 | ||
1190 | BIO_METHOD *BIO_f_asn1(void); | 1190 | const BIO_METHOD *BIO_f_asn1(void); |
1191 | 1191 | ||
1192 | BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it); | 1192 | BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it); |
1193 | 1193 | ||
diff --git a/src/lib/libcrypto/asn1/bio_asn1.c b/src/lib/libcrypto/asn1/bio_asn1.c index 02ad310639..93bcb33888 100644 --- a/src/lib/libcrypto/asn1/bio_asn1.c +++ b/src/lib/libcrypto/asn1/bio_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_asn1.c,v 1.12 2015/12/23 01:46:33 mmcc Exp $ */ | 1 | /* $OpenBSD: bio_asn1.c,v 1.13 2018/05/01 13:29:09 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -125,7 +125,7 @@ static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, | |||
125 | asn1_ps_func *setup, asn1_bio_state_t ex_state, | 125 | asn1_ps_func *setup, asn1_bio_state_t ex_state, |
126 | asn1_bio_state_t other_state); | 126 | asn1_bio_state_t other_state); |
127 | 127 | ||
128 | static BIO_METHOD methods_asn1 = { | 128 | static const BIO_METHOD methods_asn1 = { |
129 | .type = BIO_TYPE_ASN1, | 129 | .type = BIO_TYPE_ASN1, |
130 | .name = "asn1", | 130 | .name = "asn1", |
131 | .bwrite = asn1_bio_write, | 131 | .bwrite = asn1_bio_write, |
@@ -138,7 +138,7 @@ static BIO_METHOD methods_asn1 = { | |||
138 | .callback_ctrl = asn1_bio_callback_ctrl | 138 | .callback_ctrl = asn1_bio_callback_ctrl |
139 | }; | 139 | }; |
140 | 140 | ||
141 | BIO_METHOD * | 141 | const BIO_METHOD * |
142 | BIO_f_asn1(void) | 142 | BIO_f_asn1(void) |
143 | { | 143 | { |
144 | return (&methods_asn1); | 144 | return (&methods_asn1); |