diff options
Diffstat (limited to 'src/lib/libssl/man/SSL_get_certificate.3')
| -rw-r--r-- | src/lib/libssl/man/SSL_get_certificate.3 | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_get_certificate.3 b/src/lib/libssl/man/SSL_get_certificate.3 new file mode 100644 index 0000000000..35650c75b1 --- /dev/null +++ b/src/lib/libssl/man/SSL_get_certificate.3 | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | .\" $OpenBSD: SSL_get_certificate.3,v 1.1 2016/12/10 13:54:32 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 10 2016 $ | ||
| 18 | .Dt SSL_GET_CERTIFICATE 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm SSL_get_certificate , | ||
| 22 | .Nm SSL_get_privatekey | ||
| 23 | .Nd get SSL certificate and private key | ||
| 24 | .Sh SYNOPSIS | ||
| 25 | .In openssl/ssl.h | ||
| 26 | .Ft X509 * | ||
| 27 | .Fo SSL_get_certificate | ||
| 28 | .Fa "const SSL *ssl" | ||
| 29 | .Fc | ||
| 30 | .Ft EVP_PKEY * | ||
| 31 | .Fo SSL_get_privatekey | ||
| 32 | .Fa "SSL *ssl" | ||
| 33 | .Fc | ||
| 34 | .Sh DESCRIPTION | ||
| 35 | These functions retrieve certificate and key data from an | ||
| 36 | .Vt SSL | ||
| 37 | object. | ||
| 38 | They return internal pointers that must not be freed by the application | ||
| 39 | program. | ||
| 40 | .Sh RETURN VALUES | ||
| 41 | .Fn SSL_get_certificate | ||
| 42 | returns the active X.509 certificate currently used by | ||
| 43 | .Fa ssl | ||
| 44 | or | ||
| 45 | .Dv NULL | ||
| 46 | if none is active. | ||
| 47 | .Pp | ||
| 48 | .Fn SSL_get_privatekey | ||
| 49 | returns the active private key currently used by | ||
| 50 | .Fa ssl | ||
| 51 | or | ||
| 52 | .Dv NULL | ||
| 53 | if none is active. | ||
| 54 | .Sh SEE ALSO | ||
| 55 | .Xr SSL_check_private_key 3 , | ||
| 56 | .Xr SSL_use_certificate 3 | ||
| 57 | .Sh HISTORY | ||
| 58 | .Fn SSL_get_certificate | ||
| 59 | and | ||
| 60 | .Fn SSL_get_privatekey | ||
| 61 | are available in all versions of OpenSSL. | ||
