diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_get0_signature.3 (renamed from src/lib/libcrypto/man/X509_get_signature_nid.3) | 33 |
2 files changed, 32 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 431285c7e0..8d15d6121c 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.131 2018/02/17 23:24:38 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.132 2018/02/19 08:20:26 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -241,10 +241,10 @@ MAN= \ | |||
241 | X509_digest.3 \ | 241 | X509_digest.3 \ |
242 | X509_get_pubkey.3 \ | 242 | X509_get_pubkey.3 \ |
243 | X509_get_serialNumber.3 \ | 243 | X509_get_serialNumber.3 \ |
244 | X509_get_signature_nid.3 \ | ||
245 | X509_get_subject_name.3 \ | 244 | X509_get_subject_name.3 \ |
246 | X509_get_version.3 \ | 245 | X509_get_version.3 \ |
247 | X509_get0_notBefore.3 \ | 246 | X509_get0_notBefore.3 \ |
247 | X509_get0_signature.3 \ | ||
248 | X509_new.3 \ | 248 | X509_new.3 \ |
249 | X509_sign.3 \ | 249 | X509_sign.3 \ |
250 | X509_verify_cert.3 \ | 250 | X509_verify_cert.3 \ |
diff --git a/src/lib/libcrypto/man/X509_get_signature_nid.3 b/src/lib/libcrypto/man/X509_get0_signature.3 index 837b392bcc..4c6c3f1e4f 100644 --- a/src/lib/libcrypto/man/X509_get_signature_nid.3 +++ b/src/lib/libcrypto/man/X509_get0_signature.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_get_signature_nid.3,v 1.1 2018/02/14 18:50:47 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get0_signature.3,v 1.1 2018/02/19 08:20:26 schwarze Exp $ |
2 | .\" selective merge up to: | 2 | .\" selective merge up to: |
3 | .\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100 | 3 | .\" OpenSSL man3/X509_get0_signature 2f7a2520 Apr 25 17:28:08 2017 +0100 |
4 | .\" | 4 | .\" |
@@ -49,22 +49,47 @@ | |||
49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 51 | .\" |
52 | .Dd $Mdocdate: February 14 2018 $ | 52 | .Dd $Mdocdate: February 19 2018 $ |
53 | .Dt X509_GET_SIGNATURE_NID 3 | 53 | .Dt X509_GET0_SIGNATURE 3 |
54 | .Os | 54 | .Os |
55 | .Sh NAME | 55 | .Sh NAME |
56 | .Nm X509_get0_signature , | ||
56 | .Nm X509_get_signature_nid | 57 | .Nm X509_get_signature_nid |
57 | .Nd signature information | 58 | .Nd signature information |
58 | .Sh SYNOPSIS | 59 | .Sh SYNOPSIS |
59 | .In openssl/x509.h | 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 | ||
60 | .Ft int | 67 | .Ft int |
61 | .Fo X509_get_signature_nid | 68 | .Fo X509_get_signature_nid |
62 | .Fa "const X509 *x" | 69 | .Fa "const X509 *x" |
63 | .Fc | 70 | .Fc |
64 | .Sh DESCRIPTION | 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 | ||
65 | .Fn X509_get_signature_nid | 84 | .Fn X509_get_signature_nid |
66 | returns the NID corresponding to the signature algorithm of | 85 | returns the NID corresponding to the signature algorithm of |
67 | .Fa x . | 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. | ||
68 | .Sh SEE ALSO | 93 | .Sh SEE ALSO |
69 | .Xr OBJ_obj2nid 3 , | 94 | .Xr OBJ_obj2nid 3 , |
70 | .Xr X509_get_pubkey 3 , | 95 | .Xr X509_get_pubkey 3 , |
@@ -74,5 +99,7 @@ returns the NID corresponding to the signature algorithm of | |||
74 | .Xr X509_sign 3 , | 99 | .Xr X509_sign 3 , |
75 | .Xr X509_verify_cert 3 | 100 | .Xr X509_verify_cert 3 |
76 | .Sh HISTORY | 101 | .Sh HISTORY |
102 | .Fn X509_get0_signature | ||
103 | and | ||
77 | .Fn X509_get_signature_nid | 104 | .Fn X509_get_signature_nid |
78 | first appeared in OpenSSL 1.0.2. | 105 | first appeared in OpenSSL 1.0.2. |