diff options
Diffstat (limited to 'src/lib/libcrypto/man/X509_get0_signature.3')
| -rw-r--r-- | src/lib/libcrypto/man/X509_get0_signature.3 | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/X509_get0_signature.3 b/src/lib/libcrypto/man/X509_get0_signature.3 new file mode 100644 index 0000000000..4c6c3f1e4f --- /dev/null +++ b/src/lib/libcrypto/man/X509_get0_signature.3 | |||
| @@ -0,0 +1,105 @@ | |||
| 1 | .\" $OpenBSD: X509_get0_signature.3,v 1.1 2018/02/19 08:20:26 schwarze Exp $ | ||
| 2 | .\" selective merge up to: | ||
| 3 | .\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100 | ||
| 4 | .\" | ||
| 5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
| 6 | .\" Copyright (c) 2015 The OpenSSL Project. All rights reserved. | ||
| 7 | .\" | ||
| 8 | .\" Redistribution and use in source and binary forms, with or without | ||
| 9 | .\" modification, are permitted provided that the following conditions | ||
| 10 | .\" are met: | ||
| 11 | .\" | ||
| 12 | .\" 1. Redistributions of source code must retain the above copyright | ||
| 13 | .\" notice, this list of conditions and the following disclaimer. | ||
| 14 | .\" | ||
| 15 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | .\" notice, this list of conditions and the following disclaimer in | ||
| 17 | .\" the documentation and/or other materials provided with the | ||
| 18 | .\" distribution. | ||
| 19 | .\" | ||
| 20 | .\" 3. All advertising materials mentioning features or use of this | ||
| 21 | .\" software must display the following acknowledgment: | ||
| 22 | .\" "This product includes software developed by the OpenSSL Project | ||
| 23 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | .\" | ||
| 25 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | .\" endorse or promote products derived from this software without | ||
| 27 | .\" prior written permission. For written permission, please contact | ||
| 28 | .\" openssl-core@openssl.org. | ||
| 29 | .\" | ||
| 30 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | .\" nor may "OpenSSL" appear in their names without prior written | ||
| 32 | .\" permission of the OpenSSL Project. | ||
| 33 | .\" | ||
| 34 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | .\" acknowledgment: | ||
| 36 | .\" "This product includes software developed by the OpenSSL Project | ||
| 37 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | .\" | ||
| 39 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | .\" | ||
| 52 | .Dd $Mdocdate: February 19 2018 $ | ||
| 53 | .Dt X509_GET0_SIGNATURE 3 | ||
| 54 | .Os | ||
| 55 | .Sh NAME | ||
| 56 | .Nm X509_get0_signature , | ||
| 57 | .Nm X509_get_signature_nid | ||
| 58 | .Nd signature information | ||
| 59 | .Sh SYNOPSIS | ||
| 60 | .In openssl/x509.h | ||
| 61 | .Ft void | ||
| 62 | .Fo X509_get0_signature | ||
| 63 | .Fa "const ASN1_BIT_STRING **psig" | ||
| 64 | .Fa "const X509_ALGOR **palg" | ||
| 65 | .Fa "const X509 *x" | ||
| 66 | .Fc | ||
| 67 | .Ft int | ||
| 68 | .Fo X509_get_signature_nid | ||
| 69 | .Fa "const X509 *x" | ||
| 70 | .Fc | ||
| 71 | .Sh DESCRIPTION | ||
| 72 | .Fn X509_get0_signature | ||
| 73 | sets | ||
| 74 | .Pf * Fa psig | ||
| 75 | to the signature of | ||
| 76 | .Fa x | ||
| 77 | and | ||
| 78 | .Pf * Fa palg | ||
| 79 | to the signature algorithm of | ||
| 80 | .Fa x . | ||
| 81 | The values returned are internal pointers | ||
| 82 | that must not be freed by the caller. | ||
| 83 | .Pp | ||
| 84 | .Fn X509_get_signature_nid | ||
| 85 | returns the NID corresponding to the signature algorithm of | ||
| 86 | .Fa x . | ||
| 87 | .Pp | ||
| 88 | These functions provide lower level access to the signature | ||
| 89 | for cases where an application wishes to analyse or generate a | ||
| 90 | signature in a form where | ||
| 91 | .Xr X509_sign 3 | ||
| 92 | is not appropriate, for example in a non-standard or unsupported format. | ||
| 93 | .Sh SEE ALSO | ||
| 94 | .Xr OBJ_obj2nid 3 , | ||
| 95 | .Xr X509_get_pubkey 3 , | ||
| 96 | .Xr X509_get_subject_name 3 , | ||
| 97 | .Xr X509_get_version 3 , | ||
| 98 | .Xr X509_new 3 , | ||
| 99 | .Xr X509_sign 3 , | ||
| 100 | .Xr X509_verify_cert 3 | ||
| 101 | .Sh HISTORY | ||
| 102 | .Fn X509_get0_signature | ||
| 103 | and | ||
| 104 | .Fn X509_get_signature_nid | ||
| 105 | first appeared in OpenSSL 1.0.2. | ||
