-.\" $OpenBSD: X509_get0_signature.3,v 1.1 2018/02/19 08:20:26 schwarze Exp $
+.\" $OpenBSD: X509_get0_signature.3,v 1.2 2018/02/22 16:26:27 schwarze Exp $
.\" selective merge up to:
.\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100
.\"
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 19 2018 $
+.Dd $Mdocdate: February 22 2018 $
.Dt X509_GET0_SIGNATURE 3
.Os
.Sh NAME
.Nm X509_get0_signature ,
+.Nm X509_REQ_get0_signature ,
+.Nm X509_CRL_get0_signature ,
.Nm X509_get_signature_nid
.Nd signature information
.Sh SYNOPSIS
.Fa "const X509_ALGOR **palg"
.Fa "const X509 *x"
.Fc
+.Ft void
+.Fo X509_REQ_get0_signature
+.Fa "const X509_REQ *req"
+.Fa "const ASN1_BIT_STRING **psig"
+.Fa "const X509_ALGOR **palg"
+.Fc
+.Ft void
+.Fo X509_CRL_get0_signature
+.Fa "const X509_CRL *crl"
+.Fa "const ASN1_BIT_STRING **psig"
+.Fa "const X509_ALGOR **palg"
+.Fc
.Ft int
.Fo X509_get_signature_nid
.Fa "const X509 *x"
.Fc
.Sh DESCRIPTION
-.Fn X509_get0_signature
-sets
-.Pf * Fa psig
-to the signature of
-.Fa x
+.Fn X509_get0_signature ,
+.Fn X509_REQ_get0_signature ,
and
+.Fn X509_CRL_get0_signature
+set
+.Pf * Fa psig
+to the signature and
.Pf * Fa palg
to the signature algorithm of
-.Fa x .
+.Fa x ,
+.Fa req ,
+or
+.Fa crl ,
+respectively.
The values returned are internal pointers
that must not be freed by the caller.
.Pp
is not appropriate, for example in a non-standard or unsupported format.
.Sh SEE ALSO
.Xr OBJ_obj2nid 3 ,
+.Xr X509_CRL_get0_by_serial 3 ,
+.Xr X509_CRL_new 3 ,
.Xr X509_get_pubkey 3 ,
.Xr X509_get_subject_name 3 ,
.Xr X509_get_version 3 ,
.Xr X509_new 3 ,
+.Xr X509_REQ_new 3 ,
.Xr X509_sign 3 ,
.Xr X509_verify_cert 3
.Sh HISTORY