From 1388945f0d2f625d1c87eaf177eac6df15c80082 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Wed, 3 Jul 2024 18:32:28 +0900 Subject: [PATCH] [ruby/openssl] asn1: make ossl_asn1_get_asn1type() private The function is not used anywhere outside of ossl_asn1.c. https://github.com/ruby/openssl/commit/5392b79941 --- ext/openssl/ossl_asn1.c | 2 +- ext/openssl/ossl_asn1.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c index 502be1019f..1676defd0e 100644 --- a/ext/openssl/ossl_asn1.c +++ b/ext/openssl/ossl_asn1.c @@ -497,7 +497,7 @@ static VALUE class_tag_map; static int ossl_asn1_default_tag(VALUE obj); -ASN1_TYPE* +static ASN1_TYPE * ossl_asn1_get_asn1type(VALUE obj) { ASN1_TYPE *ret; diff --git a/ext/openssl/ossl_asn1.h b/ext/openssl/ossl_asn1.h index fae8762200..3a99400e18 100644 --- a/ext/openssl/ossl_asn1.h +++ b/ext/openssl/ossl_asn1.h @@ -57,8 +57,6 @@ extern VALUE cASN1Sequence, cASN1Set; /* CONSTRUCTIVE */ extern VALUE cASN1EndOfContent; /* END OF CONTENT */ -ASN1_TYPE *ossl_asn1_get_asn1type(VALUE); - void Init_ossl_asn1(void); #endif