summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-01-14 08:43:06 +0000
committertb <>2022-01-14 08:43:06 +0000
commit032151a842acb79c7192dbf692ab9bb31ec79f30 (patch)
tree5a7024fbeba1d7f7f6a7f5b0735ae672c42f2588
parent7de4d3a68913b50be213d1f95ad168ee17570641 (diff)
downloadopenbsd-032151a842acb79c7192dbf692ab9bb31ec79f30.tar.gz
openbsd-032151a842acb79c7192dbf692ab9bb31ec79f30.tar.bz2
openbsd-032151a842acb79c7192dbf692ab9bb31ec79f30.zip
Remove all asn1_* symbols from public visibility
ok inoguchi jsing
-rw-r--r--src/lib/libcrypto/asn1/asn1_locl.h18
-rw-r--r--src/lib/libcrypto/asn1/asn1t.h18
2 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h
index cca92aa686..b9b4f6196b 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.18 2022/01/14 08:09:18 tb Exp $ */ 1/* $OpenBSD: asn1_locl.h,v 1.19 2022/01/14 08:43:06 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 */
@@ -161,6 +161,22 @@ struct x509_crl_method_st {
161 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk); 161 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk);
162}; 162};
163 163
164int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it);
165
166int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
167int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it);
168
169ASN1_VALUE ** asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
170
171const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, int nullerr);
172
173int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
174
175void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
176void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
177int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, const ASN1_ITEM *it);
178int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it);
179
164/* 180/*
165 * Unicode codepoint constants 181 * Unicode codepoint constants
166 */ 182 */
diff --git a/src/lib/libcrypto/asn1/asn1t.h b/src/lib/libcrypto/asn1/asn1t.h
index 82369d3de2..892c8b70c3 100644
--- a/src/lib/libcrypto/asn1/asn1t.h
+++ b/src/lib/libcrypto/asn1/asn1t.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1t.h,v 1.18 2022/01/14 08:16:13 tb Exp $ */ 1/* $OpenBSD: asn1t.h,v 1.19 2022/01/14 08:43:06 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 2000. 3 * project 2000.
4 */ 4 */
@@ -929,22 +929,6 @@ int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_ITEM *it
929int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_TEMPLATE *tt); 929int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_TEMPLATE *tt);
930void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it); 930void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
931 931
932int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it);
933
934int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
935int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it);
936
937ASN1_VALUE ** asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
938
939const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, int nullerr);
940
941int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
942
943void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
944void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
945int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, const ASN1_ITEM *it);
946int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, const ASN1_ITEM *it);
947
948#ifdef __cplusplus 932#ifdef __cplusplus
949} 933}
950#endif 934#endif