diff options
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); |
