Go to the documentation of this file.
66 #include "../internal.h"
111 int *pclass,
long omax)
115 const unsigned char *
p = *
pp;
134 if (
l > (INT_MAX >> 7
L))
158 if (*plength > (omax - (
p - *
pp))) {
171 const unsigned char *
p = *
pp;
172 unsigned long ret = 0;
184 if (
i >
sizeof(
ret) ||
max < (
long)
i)
197 if (
ret > INT_MAX / 2)
210 unsigned char *
p = *
pp;
219 for (
i = 0, ttag =
tag; ttag > 0;
i++)
230 if (constructed == 2)
241 unsigned char *
p = *
pp;
250 unsigned char *
p = *
pp;
253 *(
p++) = (
unsigned char)
length;
256 for (
i = 0;
l > 0;
i++)
280 if (constructed == 2) {
326 const char *
data = _data;
334 if ((
str->length <=
len) || (
str->data == NULL)) {
341 if (
str->data == NULL) {
395 int a_length =
a->length, b_length =
b->length;
396 uint8_t a_padding = 0, b_padding = 0;
404 if (a_length < b_length) {
407 if (a_length > b_length) {
412 if (a_padding > b_padding) {
415 if (a_padding < b_padding) {
425 if (
a->type <
b->type) {
428 if (
a->type >
b->type) {
void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len)
void ASN1_put_object(unsigned char **pp, int constructed, int length, int tag, int xclass)
const unsigned char * ASN1_STRING_get0_data(const ASN1_STRING *str)
static int OPENSSL_memcmp(const void *s1, const void *s2, size_t n)
ASN1_STRING * ASN1_STRING_type_new(int type)
int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
#define OPENSSL_PUT_ERROR(library, reason)
int ASN1_STRING_length(const ASN1_STRING *str)
#define V_ASN1_MAX_UNIVERSAL
#define V_ASN1_OCTET_STRING
ASN1_STRING * ASN1_STRING_new(void)
int ASN1_STRING_type(const ASN1_STRING *str)
ASN1_STRING * ASN1_STRING_dup(const ASN1_STRING *str)
int ASN1_object_size(int constructed, int length, int tag)
int ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str)
int ASN1_put_eoc(unsigned char **pp)
#define ASN1_R_HEADER_TOO_LONG
#define asn1_bit_string_length
static void * tag(intptr_t t)
static void asn1_put_length(unsigned char **pp, int length)
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
#define V_ASN1_BIT_STRING
#define OPENSSL_DECLARE_ERROR_REASON(lib, reason)
static int asn1_get_length(const unsigned char **pp, long *rl, long max)
void ASN1_STRING_free(ASN1_STRING *str)
#define V_ASN1_CONSTRUCTED
#define V_ASN1_PRIMITIVE_TAG
UniquePtr< SSL_SESSION > ret
unsigned char * ASN1_STRING_data(ASN1_STRING *str)
int ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b)
int ASN1_get_object(const unsigned char **pp, long *plength, int *ptag, int *pclass, long omax)
#define ERR_R_MALLOC_FAILURE
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:44