-/* $OpenBSD: tasn_typ.c,v 1.18 2023/07/05 21:23:37 beck Exp $ */
+/* $OpenBSD: tasn_typ.c,v 1.19 2024/07/08 14:52:31 beck Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
.utype = V_ASN1_NULL,
.sname = "ASN1_NULL",
};
+LCRYPTO_ALIAS(ASN1_NULL_it);
ASN1_NULL *
d2i_ASN1_NULL(ASN1_NULL **a, const unsigned char **in, long len)
.utype = V_ASN1_UTF8STRING,
.sname = "ASN1_UTF8STRING",
};
+LCRYPTO_ALIAS(ASN1_UTF8STRING_it);
ASN1_UTF8STRING *
d2i_ASN1_UTF8STRING(ASN1_UTF8STRING **a, const unsigned char **in, long len)
.utype = V_ASN1_PRINTABLESTRING,
.sname = "ASN1_PRINTABLESTRING",
};
+LCRYPTO_ALIAS(ASN1_PRINTABLESTRING_it);
ASN1_PRINTABLESTRING *
d2i_ASN1_PRINTABLESTRING(ASN1_PRINTABLESTRING **a, const unsigned char **in,
.utype = V_ASN1_T61STRING,
.sname = "ASN1_T61STRING",
};
+LCRYPTO_ALIAS(ASN1_T61STRING_it);
ASN1_T61STRING *
d2i_ASN1_T61STRING(ASN1_T61STRING **a, const unsigned char **in, long len)
.utype = V_ASN1_IA5STRING,
.sname = "ASN1_IA5STRING",
};
+LCRYPTO_ALIAS(ASN1_IA5STRING_it);
ASN1_IA5STRING *
d2i_ASN1_IA5STRING(ASN1_IA5STRING **a, const unsigned char **in, long len)
.utype = V_ASN1_GENERALSTRING,
.sname = "ASN1_GENERALSTRING",
};
+LCRYPTO_ALIAS(ASN1_GENERALSTRING_it);
ASN1_GENERALSTRING *
d2i_ASN1_GENERALSTRING(ASN1_GENERALSTRING **a, const unsigned char **in,
.utype = V_ASN1_UTCTIME,
.sname = "ASN1_UTCTIME",
};
+LCRYPTO_ALIAS(ASN1_UTCTIME_it);
ASN1_UTCTIME *
d2i_ASN1_UTCTIME(ASN1_UTCTIME **a, const unsigned char **in, long len)
.utype = V_ASN1_GENERALIZEDTIME,
.sname = "ASN1_GENERALIZEDTIME",
};
+LCRYPTO_ALIAS(ASN1_GENERALIZEDTIME_it);
ASN1_GENERALIZEDTIME *
d2i_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME **a, const unsigned char **in,
.utype = V_ASN1_VISIBLESTRING,
.sname = "ASN1_VISIBLESTRING",
};
+LCRYPTO_ALIAS(ASN1_VISIBLESTRING_it);
ASN1_VISIBLESTRING *
d2i_ASN1_VISIBLESTRING(ASN1_VISIBLESTRING **a, const unsigned char **in,
.utype = V_ASN1_UNIVERSALSTRING,
.sname = "ASN1_UNIVERSALSTRING",
};
+LCRYPTO_ALIAS(ASN1_UNIVERSALSTRING_it);
ASN1_UNIVERSALSTRING *
d2i_ASN1_UNIVERSALSTRING(ASN1_UNIVERSALSTRING **a, const unsigned char **in,
.utype = V_ASN1_BMPSTRING,
.sname = "ASN1_BMPSTRING",
};
+LCRYPTO_ALIAS(ASN1_BMPSTRING_it);
ASN1_BMPSTRING *
d2i_ASN1_BMPSTRING(ASN1_BMPSTRING **a, const unsigned char **in, long len)
.utype = V_ASN1_ANY,
.sname = "ASN1_ANY",
};
+LCRYPTO_ALIAS(ASN1_ANY_it);
/* Just swallow an ASN1_SEQUENCE in an ASN1_STRING */
.size = sizeof(ASN1_STRING),
.sname = "ASN1_PRINTABLE",
};
+LCRYPTO_ALIAS(ASN1_PRINTABLE_it);
ASN1_STRING *
d2i_ASN1_PRINTABLE(ASN1_STRING **a, const unsigned char **in, long len)
.size = sizeof(ASN1_STRING),
.sname = "DISPLAYTEXT",
};
+LCRYPTO_ALIAS(DISPLAYTEXT_it);
ASN1_STRING *
d2i_DISPLAYTEXT(ASN1_STRING **a, const unsigned char **in, long len)
.size = sizeof(ASN1_STRING),
.sname = "DIRECTORYSTRING",
};
+LCRYPTO_ALIAS(DIRECTORYSTRING_it);
ASN1_STRING *
d2i_DIRECTORYSTRING(ASN1_STRING **a, const unsigned char **in, long len)
.size = 0,
.sname = "ASN1_SEQUENCE_ANY",
};
+LCRYPTO_ALIAS(ASN1_SEQUENCE_ANY_it);
static const ASN1_TEMPLATE ASN1_SET_ANY_item_tt = {
.flags = ASN1_TFLG_SET_OF,
.size = 0,
.sname = "ASN1_SET_ANY",
};
+LCRYPTO_ALIAS(ASN1_SET_ANY_it);
ASN1_SEQUENCE_ANY *
-/* $OpenBSD: asn1.h,v 1.13 2024/04/10 14:55:12 beck Exp $ */
+/* $OpenBSD: asn1.h,v 1.14 2024/07/08 14:52:31 beck Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
LCRYPTO_USED(ERR_load_ASN1_strings);
LCRYPTO_UNUSED(ASN1_UTCTIME_cmp_time_t);
LCRYPTO_UNUSED(ASN1_dup);
+extern LCRYPTO_USED(ASN1_SEQUENCE_ANY_it);
+extern LCRYPTO_USED(ASN1_SET_ANY_it);
+extern LCRYPTO_USED(ASN1_ANY_it);
+extern LCRYPTO_USED(ASN1_OBJECT_it);
+extern LCRYPTO_USED(ASN1_BIT_STRING_it);
+extern LCRYPTO_USED(ASN1_INTEGER_it);
+extern LCRYPTO_USED(ASN1_ENUMERATED_it);
+extern LCRYPTO_USED(ASN1_OCTET_STRING_it);
+extern LCRYPTO_USED(ASN1_VISIBLESTRING_it);
+extern LCRYPTO_USED(ASN1_UNIVERSALSTRING_it);
+extern LCRYPTO_USED(ASN1_UTF8STRING_it);
+extern LCRYPTO_USED(ASN1_NULL_it);
+extern LCRYPTO_USED(ASN1_BMPSTRING_it);
+extern LCRYPTO_USED(ASN1_PRINTABLE_it);
+extern LCRYPTO_USED(DIRECTORYSTRING_it);
+extern LCRYPTO_USED(DISPLAYTEXT_it);
+extern LCRYPTO_USED(ASN1_PRINTABLESTRING_it);
+extern LCRYPTO_USED(ASN1_T61STRING_it);
+extern LCRYPTO_USED(ASN1_IA5STRING_it);
+extern LCRYPTO_USED(ASN1_GENERALSTRING_it);
+extern LCRYPTO_USED(ASN1_UTCTIME_it);
+extern LCRYPTO_USED(ASN1_GENERALIZEDTIME_it);
+extern LCRYPTO_USED(ASN1_TIME_it);
#endif /* _LIBCRYPTO_ASN1_H */