diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1.h')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 3f9645a139..00634a6e82 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.66 2022/07/04 14:39:43 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.67 2022/07/07 13:01:28 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 | * |
@@ -719,13 +719,11 @@ ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len); | |||
719 | int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out); | 719 | int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out); |
720 | extern const ASN1_ITEM ASN1_TIME_it; | 720 | extern const ASN1_ITEM ASN1_TIME_it; |
721 | 721 | ||
722 | #ifdef LIBRESSL_INTERNAL | ||
723 | int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm); | 722 | int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm); |
724 | int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2); | 723 | int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2); |
725 | int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2); | 724 | int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2); |
726 | int ASN1_TIME_normalize(ASN1_TIME *t); | 725 | int ASN1_TIME_normalize(ASN1_TIME *t); |
727 | int ASN1_TIME_set_string_X509(ASN1_TIME *time, const char *str); | 726 | int ASN1_TIME_set_string_X509(ASN1_TIME *time, const char *str); |
728 | #endif | ||
729 | int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, | 727 | int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, |
730 | const ASN1_TIME *to); | 728 | const ASN1_TIME *to); |
731 | 729 | ||
@@ -755,21 +753,17 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num); | |||
755 | ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, | 753 | ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, |
756 | const char *sn, const char *ln); | 754 | const char *sn, const char *ln); |
757 | 755 | ||
758 | #ifdef LIBRESSL_INTERNAL | ||
759 | int ASN1_INTEGER_get_uint64(uint64_t *out_val, const ASN1_INTEGER *aint); | 756 | int ASN1_INTEGER_get_uint64(uint64_t *out_val, const ASN1_INTEGER *aint); |
760 | int ASN1_INTEGER_set_uint64(ASN1_INTEGER *aint, uint64_t val); | 757 | int ASN1_INTEGER_set_uint64(ASN1_INTEGER *aint, uint64_t val); |
761 | int ASN1_INTEGER_get_int64(int64_t *out_val, const ASN1_INTEGER *aint); | 758 | int ASN1_INTEGER_get_int64(int64_t *out_val, const ASN1_INTEGER *aint); |
762 | int ASN1_INTEGER_set_int64(ASN1_INTEGER *aint, int64_t val); | 759 | int ASN1_INTEGER_set_int64(ASN1_INTEGER *aint, int64_t val); |
763 | #endif | ||
764 | int ASN1_INTEGER_set(ASN1_INTEGER *a, long v); | 760 | int ASN1_INTEGER_set(ASN1_INTEGER *a, long v); |
765 | long ASN1_INTEGER_get(const ASN1_INTEGER *a); | 761 | long ASN1_INTEGER_get(const ASN1_INTEGER *a); |
766 | ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai); | 762 | ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai); |
767 | BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); | 763 | BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn); |
768 | 764 | ||
769 | #ifdef LIBRESSL_INTERNAL | ||
770 | int ASN1_ENUMERATED_get_int64(int64_t *out_val, const ASN1_ENUMERATED *aenum); | 765 | int ASN1_ENUMERATED_get_int64(int64_t *out_val, const ASN1_ENUMERATED *aenum); |
771 | int ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *aenum, int64_t val); | 766 | int ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *aenum, int64_t val); |
772 | #endif | ||
773 | int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); | 767 | int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); |
774 | long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); | 768 | long ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a); |
775 | ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai); | 769 | ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai); |