-.\" $OpenBSD: X509_get_pubkey.3,v 1.9 2021/06/30 10:06:43 schwarze Exp $
+.\" $OpenBSD: X509_get_pubkey.3,v 1.10 2021/10/26 18:01:00 tb Exp $
.\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
.\" X509_REQ_get0_pubkey and X509_REQ_get_X509_PUBKEY not yet in LibreSSL
.\"
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 30 2021 $
+.Dd $Mdocdate: October 26 2021 $
.Dt X509_GET_PUBKEY 3
.Os
.Sh NAME
.Fc
.Ft X509_PUBKEY *
.Fo X509_get_X509_PUBKEY
-.Fa "X509 *x"
+.Fa "const X509 *x"
.Fc
.Ft ASN1_BIT_STRING *
.Fo X509_get0_pubkey_bitstr
structure contained in
.Fa x .
The returned value must not be freed up after use.
-.Fn X509_get_X509_PUBKEY
-is implemented as a macro.
.Pp
.Fn X509_get0_pubkey_bitstr
returns an internal pointer to just the public key contained in this