diff options
| author | tb <> | 2022-09-11 17:22:52 +0000 |
|---|---|---|
| committer | tb <> | 2022-09-11 17:22:52 +0000 |
| commit | 07270f9a29f82d959f50200c6abdf09a80bb1f71 (patch) | |
| tree | dbffb416b8db618fb604c4fd0f64aab83fafd2a7 /src | |
| parent | d6210f1e2ea8916607a09fb7d33a74b9d6848267 (diff) | |
| download | openbsd-07270f9a29f82d959f50200c6abdf09a80bb1f71.tar.gz openbsd-07270f9a29f82d959f50200c6abdf09a80bb1f71.tar.bz2 openbsd-07270f9a29f82d959f50200c6abdf09a80bb1f71.zip | |
Remove c2i_* and i2c_* from public visibility
This removes c2i_ASN1_OBJECT(), {c2i,i2c}_ASN1_BIT_STRING() and
{c2i,i2c}_ASN1_INTEGER(). These are not part of the OpenSSL 1.1
API and should never have been exposed in the first place.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_locl.h | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 6782549886..ff42e45676 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.69 2022/08/29 06:48:58 jsing Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.70 2022/09/11 17:22:52 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 | * |
| @@ -547,8 +547,6 @@ int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b); | |||
| 547 | ASN1_OBJECT *ASN1_OBJECT_new(void); | 547 | ASN1_OBJECT *ASN1_OBJECT_new(void); |
| 548 | void ASN1_OBJECT_free(ASN1_OBJECT *a); | 548 | void ASN1_OBJECT_free(ASN1_OBJECT *a); |
| 549 | int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp); | 549 | int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp); |
| 550 | ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, | ||
| 551 | long length); | ||
| 552 | ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, | 550 | ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, |
| 553 | long length); | 551 | long length); |
| 554 | 552 | ||
| @@ -577,9 +575,6 @@ void ASN1_BIT_STRING_free(ASN1_BIT_STRING *a); | |||
| 577 | ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **in, long len); | 575 | ASN1_BIT_STRING *d2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, const unsigned char **in, long len); |
| 578 | int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **out); | 576 | int i2d_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **out); |
| 579 | extern const ASN1_ITEM ASN1_BIT_STRING_it; | 577 | extern const ASN1_ITEM ASN1_BIT_STRING_it; |
| 580 | int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp); | ||
| 581 | ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, | ||
| 582 | const unsigned char **pp, long length); | ||
| 583 | int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length); | 578 | int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length); |
| 584 | int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); | 579 | int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); |
| 585 | int ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n); | 580 | int ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n); |
| @@ -599,9 +594,6 @@ void ASN1_INTEGER_free(ASN1_INTEGER *a); | |||
| 599 | ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **in, long len); | 594 | ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **in, long len); |
| 600 | int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **out); | 595 | int i2d_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **out); |
| 601 | extern const ASN1_ITEM ASN1_INTEGER_it; | 596 | extern const ASN1_ITEM ASN1_INTEGER_it; |
| 602 | int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp); | ||
| 603 | ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, | ||
| 604 | long length); | ||
| 605 | ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp, | 597 | ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp, |
| 606 | long length); | 598 | long length); |
| 607 | ASN1_INTEGER * ASN1_INTEGER_dup(const ASN1_INTEGER *x); | 599 | ASN1_INTEGER * ASN1_INTEGER_dup(const ASN1_INTEGER *x); |
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h index aa3b50bbab..ca0b7d7d6e 100644 --- a/src/lib/libcrypto/asn1/asn1_locl.h +++ b/src/lib/libcrypto/asn1/asn1_locl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_locl.h,v 1.38 2022/09/03 18:59:09 jsing Exp $ */ | 1 | /* $OpenBSD: asn1_locl.h,v 1.39 2022/09/11 17:22:52 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 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -225,4 +225,13 @@ ASN1_OBJECT *t2i_ASN1_OBJECT_internal(const char *oid); | |||
| 225 | 225 | ||
| 226 | int asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm); | 226 | int asn1_time_parse_cbs(const CBS *cbs, int is_gentime, struct tm *out_tm); |
| 227 | 227 | ||
| 228 | ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, | ||
| 229 | long length); | ||
| 230 | int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp); | ||
| 231 | ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, | ||
| 232 | const unsigned char **pp, long length); | ||
| 233 | int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp); | ||
| 234 | ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, | ||
| 235 | long length); | ||
| 236 | |||
| 228 | __END_HIDDEN_DECLS | 237 | __END_HIDDEN_DECLS |
