diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/X509_PUBKEY_new.3 | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3 index 7ed923ac21..cd178a1ee0 100644 --- a/src/lib/libcrypto/man/X509_PUBKEY_new.3 +++ b/src/lib/libcrypto/man/X509_PUBKEY_new.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_PUBKEY_new.3,v 1.2 2016/12/05 16:38:24 jmc Exp $ | 1 | .\" $OpenBSD: X509_PUBKEY_new.3,v 1.3 2016/12/15 22:24:45 schwarze Exp $ |
| 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -48,7 +48,7 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 50 | .\" |
| 51 | .Dd $Mdocdate: December 5 2016 $ | 51 | .Dd $Mdocdate: December 15 2016 $ |
| 52 | .Dt X509_PUBKEY_NEW 3 | 52 | .Dt X509_PUBKEY_NEW 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -133,9 +133,8 @@ | |||
| 133 | .Sh DESCRIPTION | 133 | .Sh DESCRIPTION |
| 134 | The | 134 | The |
| 135 | .Vt X509_PUBKEY | 135 | .Vt X509_PUBKEY |
| 136 | structure represents the ASN.1 | 136 | structure represents the ASN.1 SubjectPublicKeyInfo structure defined |
| 137 | .Sy SubjectPublicKeyInfo | 137 | in RFC 5280 section 4.1 and used in certificates and certificate |
| 138 | structure defined in RFC 5280 and used in certificates and certificate | ||
| 139 | requests. | 138 | requests. |
| 140 | .Pp | 139 | .Pp |
| 141 | .Fn X509_PUBKEY_new | 140 | .Fn X509_PUBKEY_new |
| @@ -180,9 +179,7 @@ and | |||
| 180 | .Fn i2d_PUBKEY | 179 | .Fn i2d_PUBKEY |
| 181 | decode and encode an | 180 | decode and encode an |
| 182 | .Vt EVP_PKEY | 181 | .Vt EVP_PKEY |
| 183 | structure using | 182 | structure using SubjectPublicKeyInfo format. |
| 184 | .Sy SubjectPublicKeyInfo | ||
| 185 | format. | ||
| 186 | They otherwise follow the conventions of other ASN.1 functions such as | 183 | They otherwise follow the conventions of other ASN.1 functions such as |
| 187 | .Xr d2i_X509 3 . | 184 | .Xr d2i_X509 3 . |
| 188 | .Pp | 185 | .Pp |
| @@ -234,16 +231,6 @@ it can be set to | |||
| 234 | .Dv NULL . | 231 | .Dv NULL . |
| 235 | All of the retrieved pointers are internal and must not be freed after | 232 | All of the retrieved pointers are internal and must not be freed after |
| 236 | the call. | 233 | the call. |
| 237 | .Pp | ||
| 238 | The | ||
| 239 | .Vt X509_PUBKEY | ||
| 240 | functions can be used to encode and decode public keys in a standard | ||
| 241 | format. | ||
| 242 | .Pp | ||
| 243 | In many cases applications will not call the | ||
| 244 | .Vt X509_PUBKEY | ||
| 245 | functions directly: they will instead call wrapper functions such as | ||
| 246 | .Xr X509_get0_pubkey 3 . | ||
| 247 | .Sh RETURN VALUES | 234 | .Sh RETURN VALUES |
| 248 | If the allocation fails, | 235 | If the allocation fails, |
| 249 | .Fn X509_PUBKEY_new | 236 | .Fn X509_PUBKEY_new |
| @@ -271,4 +258,8 @@ return 1 for success and 0 if an error occurred. | |||
| 271 | .Sh SEE ALSO | 258 | .Sh SEE ALSO |
| 272 | .Xr d2i_X509 3 , | 259 | .Xr d2i_X509 3 , |
| 273 | .Xr ERR_get_error 3 , | 260 | .Xr ERR_get_error 3 , |
| 261 | .Xr X509_ALGOR_new 3 , | ||
| 274 | .Xr X509_get_pubkey 3 | 262 | .Xr X509_get_pubkey 3 |
| 263 | .Sh STANDARDS | ||
| 264 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
| 265 | Certificate Revocation List (CRL) Profile | ||
