Export |CBS_get_any_ber_asn1_element|.
We have need of it internally. Change-Id: I564af468728b22245e8eab384ea7018b7e88cc86 Reviewed-on: https://boringssl-review.googlesource.com/5022 Reviewed-by: Matt Braithwaite <mab@google.com> Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
dd45e3b236
commit
521d4b805a
@ -38,14 +38,6 @@ extern "C" {
|
||||
* It returns one on success and zero otherwise. */
|
||||
OPENSSL_EXPORT int CBS_asn1_ber_to_der(CBS *in, uint8_t **out, size_t *out_len);
|
||||
|
||||
/* CBS_get_any_ber_asn1_element acts the same as |CBS_get_any_asn1_element| but
|
||||
* also allows indefinite-length elements to be returned. In that case,
|
||||
* |*out_header_len| and |CBS_len(out)| will both be two as only the header is
|
||||
* returned. */
|
||||
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
|
||||
unsigned *out_tag,
|
||||
size_t *out_header_len);
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} /* extern C */
|
||||
|
@ -160,6 +160,14 @@ OPENSSL_EXPORT int CBS_get_any_asn1_element(CBS *cbs, CBS *out,
|
||||
unsigned *out_tag,
|
||||
size_t *out_header_len);
|
||||
|
||||
/* CBS_get_any_ber_asn1_element acts the same as |CBS_get_any_asn1_element| but
|
||||
* also allows indefinite-length elements to be returned. In that case,
|
||||
* |*out_header_len| and |CBS_len(out)| will both be two as only the header is
|
||||
* returned, otherwise it behaves the same as the previous function. */
|
||||
OPENSSL_EXPORT int CBS_get_any_ber_asn1_element(CBS *cbs, CBS *out,
|
||||
unsigned *out_tag,
|
||||
size_t *out_header_len);
|
||||
|
||||
/* CBS_get_asn1_uint64 gets an ASN.1 INTEGER from |cbs| using |CBS_get_asn1|
|
||||
* and sets |*out| to its value. It returns one on success and zero on error,
|
||||
* where error includes the integer being negative, or too large to represent
|
||||
|
Loading…
Reference in New Issue
Block a user