diff options
author | tb <> | 2022-01-14 08:53:53 +0000 |
---|---|---|
committer | tb <> | 2022-01-14 08:53:53 +0000 |
commit | 1a06a078976a3bdd85f1457f17c06357e6a94edf (patch) | |
tree | 20525d38d6c46bf99425911a903e89e0a3305318 | |
parent | 96279762aaeb88be0927fae5ee7c985dfa9246c2 (diff) | |
download | openbsd-1a06a078976a3bdd85f1457f17c06357e6a94edf.tar.gz openbsd-1a06a078976a3bdd85f1457f17c06357e6a94edf.tar.bz2 openbsd-1a06a078976a3bdd85f1457f17c06357e6a94edf.zip |
Move ASN1_BOOLEAN to internal only.
This moves {d2i,i2d}_ASN1_BOOLEAN() to internal only. They are unused,
but help us testing the encoding.
ok jsing
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_locl.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 3f587fe5a0..e569e875c2 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.61 2022/01/14 08:12:31 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.62 2022/01/14 08:53:53 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 | * |
@@ -594,9 +594,6 @@ int ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl); | |||
594 | int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, | 594 | int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, |
595 | BIT_STRING_BITNAME *tbl); | 595 | BIT_STRING_BITNAME *tbl); |
596 | 596 | ||
597 | int i2d_ASN1_BOOLEAN(int a, unsigned char **pp); | ||
598 | int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length); | ||
599 | |||
600 | ASN1_INTEGER *ASN1_INTEGER_new(void); | 597 | ASN1_INTEGER *ASN1_INTEGER_new(void); |
601 | void ASN1_INTEGER_free(ASN1_INTEGER *a); | 598 | void ASN1_INTEGER_free(ASN1_INTEGER *a); |
602 | ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **in, long len); | 599 | ASN1_INTEGER *d2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **in, long len); |
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h index b9b4f6196b..7d34d7c17a 100644 --- a/src/lib/libcrypto/asn1/asn1_locl.h +++ b/src/lib/libcrypto/asn1/asn1_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_locl.h,v 1.19 2022/01/14 08:43:06 tb Exp $ */ | 1 | /* $OpenBSD: asn1_locl.h,v 1.20 2022/01/14 08:53:53 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -177,6 +177,9 @@ void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it); | |||
177 | int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, const ASN1_ITEM *it); | 177 | int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, const ASN1_ITEM *it); |
178 | int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it); | 178 | int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it); |
179 | 179 | ||
180 | int i2d_ASN1_BOOLEAN(int a, unsigned char **pp); | ||
181 | int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length); | ||
182 | |||
180 | /* | 183 | /* |
181 | * Unicode codepoint constants | 184 | * Unicode codepoint constants |
182 | */ | 185 | */ |