summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/asn1/asn1.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index e569e875c2..d6adb0d22e 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.62 2022/01/14 08:53:53 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.63 2022/06/25 15:39:12 jsing 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 *
@@ -748,6 +748,12 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);
748ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, 748ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,
749 const char *sn, const char *ln); 749 const char *sn, const char *ln);
750 750
751#ifdef LIBRESSL_INTERNAL
752int ASN1_INTEGER_get_uint64(uint64_t *out_val, const ASN1_INTEGER *aint);
753int ASN1_INTEGER_set_uint64(ASN1_INTEGER *aint, uint64_t val);
754int ASN1_INTEGER_get_int64(int64_t *out_val, const ASN1_INTEGER *aint);
755int ASN1_INTEGER_set_int64(ASN1_INTEGER *aint, int64_t val);
756#endif
751int ASN1_INTEGER_set(ASN1_INTEGER *a, long v); 757int ASN1_INTEGER_set(ASN1_INTEGER *a, long v);
752long ASN1_INTEGER_get(const ASN1_INTEGER *a); 758long ASN1_INTEGER_get(const ASN1_INTEGER *a);
753ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai); 759ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);
@@ -1109,6 +1115,7 @@ void ERR_load_ASN1_strings(void);
1109#define ASN1_R_ILLEGAL_HEX 178 1115#define ASN1_R_ILLEGAL_HEX 178
1110#define ASN1_R_ILLEGAL_IMPLICIT_TAG 179 1116#define ASN1_R_ILLEGAL_IMPLICIT_TAG 179
1111#define ASN1_R_ILLEGAL_INTEGER 180 1117#define ASN1_R_ILLEGAL_INTEGER 180
1118#define ASN1_R_ILLEGAL_NEGATIVE_VALUE 226
1112#define ASN1_R_ILLEGAL_NESTED_TAGGING 181 1119#define ASN1_R_ILLEGAL_NESTED_TAGGING 181
1113#define ASN1_R_ILLEGAL_NULL 125 1120#define ASN1_R_ILLEGAL_NULL 125
1114#define ASN1_R_ILLEGAL_NULL_VALUE 182 1121#define ASN1_R_ILLEGAL_NULL_VALUE 182
@@ -1168,7 +1175,9 @@ void ERR_load_ASN1_strings(void);
1168#define ASN1_R_TAG_VALUE_TOO_HIGH 153 1175#define ASN1_R_TAG_VALUE_TOO_HIGH 153
1169#define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154 1176#define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154
1170#define ASN1_R_TIME_NOT_ASCII_FORMAT 193 1177#define ASN1_R_TIME_NOT_ASCII_FORMAT 193
1178#define ASN1_R_TOO_LARGE 223
1171#define ASN1_R_TOO_LONG 155 1179#define ASN1_R_TOO_LONG 155
1180#define ASN1_R_TOO_SMALL 224
1172#define ASN1_R_TYPE_NOT_CONSTRUCTED 156 1181#define ASN1_R_TYPE_NOT_CONSTRUCTED 156
1173#define ASN1_R_UNABLE_TO_DECODE_RSA_KEY 157 1182#define ASN1_R_UNABLE_TO_DECODE_RSA_KEY 157
1174#define ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY 158 1183#define ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY 158
@@ -1186,11 +1195,11 @@ void ERR_load_ASN1_strings(void);
1186#define ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM 166 1195#define ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM 166
1187#define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE 167 1196#define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE 167
1188#define ASN1_R_UNSUPPORTED_TYPE 196 1197#define ASN1_R_UNSUPPORTED_TYPE 196
1198#define ASN1_R_WRONG_INTEGER_TYPE 225
1189#define ASN1_R_WRONG_PUBLIC_KEY_TYPE 200 1199#define ASN1_R_WRONG_PUBLIC_KEY_TYPE 200
1190#define ASN1_R_WRONG_TAG 168 1200#define ASN1_R_WRONG_TAG 168
1191#define ASN1_R_WRONG_TYPE 169 1201#define ASN1_R_WRONG_TYPE 169
1192 1202
1193
1194int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode); 1203int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode);
1195int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2); 1204int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2);
1196#ifdef __cplusplus 1205#ifdef __cplusplus