diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_SIG_new.3 | 59 |
2 files changed, 61 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 8a5e9419a9..39f9da3779 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.87 2016/12/22 13:05:59 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.88 2016/12/22 14:06:51 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -192,6 +192,7 @@ MAN= \ | |||
| 192 | X509_PUBKEY_new.3 \ | 192 | X509_PUBKEY_new.3 \ |
| 193 | X509_REQ_new.3 \ | 193 | X509_REQ_new.3 \ |
| 194 | X509_REVOKED_new.3 \ | 194 | X509_REVOKED_new.3 \ |
| 195 | X509_SIG_new.3 \ | ||
| 195 | X509_STORE_CTX_get_error.3 \ | 196 | X509_STORE_CTX_get_error.3 \ |
| 196 | X509_STORE_CTX_get_ex_new_index.3 \ | 197 | X509_STORE_CTX_get_ex_new_index.3 \ |
| 197 | X509_STORE_CTX_new.3 \ | 198 | X509_STORE_CTX_new.3 \ |
diff --git a/src/lib/libcrypto/man/X509_SIG_new.3 b/src/lib/libcrypto/man/X509_SIG_new.3 new file mode 100644 index 0000000000..e4ad5b0085 --- /dev/null +++ b/src/lib/libcrypto/man/X509_SIG_new.3 | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | .\" $OpenBSD: X509_SIG_new.3,v 1.1 2016/12/22 14:06:51 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 22 2016 $ | ||
| 18 | .Dt X509_SIG_NEW 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm X509_SIG_new , | ||
| 22 | .Nm X509_SIG_free | ||
| 23 | .Nd PKCS#7 digest information | ||
| 24 | .Sh SYNOPSIS | ||
| 25 | .In openssl/x509.h | ||
| 26 | .Ft X509_SIG * | ||
| 27 | .Fn X509_SIG_new void | ||
| 28 | .Ft void | ||
| 29 | .Fn X509_SIG_free "X509_SIG *sig" | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | .Fn X509_SIG_new | ||
| 32 | allocates and initializes an empty | ||
| 33 | .Vt X509_SIG | ||
| 34 | object, representing an ASN.1 DigestInfo structure defined | ||
| 35 | in RFC 2315 section 9.4 and equivalently in RFC 8017 section 9.2. | ||
| 36 | It can hold a message digest together with information about | ||
| 37 | the algorithm used. | ||
| 38 | .Pp | ||
| 39 | .Fn X509_SIG_free | ||
| 40 | frees | ||
| 41 | .Fa sig . | ||
| 42 | .Sh RETURN VALUES | ||
| 43 | .Fn X509_SIG_new | ||
| 44 | returns the new | ||
| 45 | .Vt X509_SIG | ||
| 46 | object or | ||
| 47 | .Dv NULL | ||
| 48 | if an error occurs. | ||
| 49 | .Sh SEE ALSO | ||
| 50 | .Xr d2i_X509_SIG 3 , | ||
| 51 | .Xr PEM_read_PKCS8 3 , | ||
| 52 | .Xr RSA_sign 3 , | ||
| 53 | .Xr X509_new 3 | ||
| 54 | .Sh STANDARDS | ||
| 55 | RFC 2315: PKCS #7: Cryptographic Message Syntax, | ||
| 56 | section 9: Signed-data content type | ||
| 57 | .Pp | ||
| 58 | RFC 8017: PKCS #1: RSA Cryptography Specifications, | ||
| 59 | section 9: Encoding Methods for Signatures | ||
