diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_strex.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_strex.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c index f60a70d94d..c0f0d7634d 100644 --- a/src/lib/libcrypto/asn1/a_strex.c +++ b/src/lib/libcrypto/asn1/a_strex.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_strex.c,v 1.25 2015/02/07 13:19:15 doug Exp $ */ | 1 | /* $OpenBSD: a_strex.c,v 1.26 2018/04/25 11:48:21 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -289,7 +289,7 @@ do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen) | |||
| 289 | */ | 289 | */ |
| 290 | 290 | ||
| 291 | static int | 291 | static int |
| 292 | do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str) | 292 | do_dump(unsigned long lflags, char_io *io_ch, void *arg, const ASN1_STRING *str) |
| 293 | { | 293 | { |
| 294 | /* Placing the ASN1_STRING in a temp ASN1_TYPE allows | 294 | /* Placing the ASN1_STRING in a temp ASN1_TYPE allows |
| 295 | * the DER encoding to readily obtained | 295 | * the DER encoding to readily obtained |
| @@ -346,7 +346,8 @@ static const signed char tag2nbyte[] = { | |||
| 346 | */ | 346 | */ |
| 347 | 347 | ||
| 348 | static int | 348 | static int |
| 349 | do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, ASN1_STRING *str) | 349 | do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, |
| 350 | const ASN1_STRING *str) | ||
| 350 | { | 351 | { |
| 351 | int outlen, len; | 352 | int outlen, len; |
| 352 | int type; | 353 | int type; |
| @@ -605,13 +606,13 @@ X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | |||
| 605 | } | 606 | } |
| 606 | 607 | ||
| 607 | int | 608 | int |
| 608 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | 609 | ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags) |
| 609 | { | 610 | { |
| 610 | return do_print_ex(send_bio_chars, out, flags, str); | 611 | return do_print_ex(send_bio_chars, out, flags, str); |
| 611 | } | 612 | } |
| 612 | 613 | ||
| 613 | int | 614 | int |
| 614 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) | 615 | ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags) |
| 615 | { | 616 | { |
| 616 | return do_print_ex(send_fp_chars, fp, flags, str); | 617 | return do_print_ex(send_fp_chars, fp, flags, str); |
| 617 | } | 618 | } |
