diff options
| author | cvs2svn <admin@example.com> | 2021-08-18 16:06:57 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2021-08-18 16:06:57 +0000 |
| commit | d56c8fa8260d226f98b26f017b45b9c2b135f38d (patch) | |
| tree | 348178b41617813cc93787187984a734ef8379ca /src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3 | |
| parent | 18b9c1bcab7c37d8c5bd05b8e0d14d0c59d96650 (diff) | |
| download | openbsd-tb_20210818.tar.gz openbsd-tb_20210818.tar.bz2 openbsd-tb_20210818.zip | |
This commit was manufactured by cvs2git to create tag 'tb_20210818'.tb_20210818
Diffstat (limited to 'src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3')
| -rw-r--r-- | src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3 | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3 b/src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3 deleted file mode 100644 index 869f538c6f..0000000000 --- a/src/lib/libcrypto/man/EXTENDED_KEY_USAGE_new.3 +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | .\" $OpenBSD: EXTENDED_KEY_USAGE_new.3,v 1.5 2019/08/22 15:15:35 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: August 22 2019 $ | ||
| 18 | .Dt EXTENDED_KEY_USAGE_NEW 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm EXTENDED_KEY_USAGE_new , | ||
| 22 | .Nm EXTENDED_KEY_USAGE_free | ||
| 23 | .Nd X.509 key usage restrictions | ||
| 24 | .Sh SYNOPSIS | ||
| 25 | .In openssl/x509v3.h | ||
| 26 | .Ft EXTENDED_KEY_USAGE | ||
| 27 | .Fn EXTENDED_KEY_USAGE_new void | ||
| 28 | .Ft void | ||
| 29 | .Fn EXTENDED_KEY_USAGE_free "EXTENDED_KEY_USAGE *eku" | ||
| 30 | .Sh DESCRIPTION | ||
| 31 | By using the key usage extension, the extended key usage extension, | ||
| 32 | or both of them, | ||
| 33 | .Vt X509 | ||
| 34 | end entity certificates may indicate that the key contained in them | ||
| 35 | is only intended to be used for the specified purposes. | ||
| 36 | If both extensions are present, only uses compatible with both | ||
| 37 | extensions are intended. | ||
| 38 | .Pp | ||
| 39 | .Fn EXTENDED_KEY_USAGE_new | ||
| 40 | allocates and initializes an empty | ||
| 41 | .Vt EXTENDED_KEY_USAGE | ||
| 42 | object, which is a | ||
| 43 | .Vt STACK_OF(ASN1_OBJECT) | ||
| 44 | and represents an ASN.1 | ||
| 45 | .Vt ExtKeyUsageSyntax | ||
| 46 | structure defined in RFC 5280 section 4.2.1.12. | ||
| 47 | It can hold key purpose identifiers. | ||
| 48 | .Pp | ||
| 49 | .Fn EXTENDED_KEY_USAGE_free | ||
| 50 | frees | ||
| 51 | .Fa eku . | ||
| 52 | .Pp | ||
| 53 | The key usage extension uses the ASN.1 BIT STRING data type | ||
| 54 | and doesn't require any dedicated object. | ||
| 55 | .Sh RETURN VALUES | ||
| 56 | .Fn EXTENDED_KEY_USAGE_new | ||
| 57 | returns the new | ||
| 58 | .Vt EXTENDED_KEY_USAGE | ||
| 59 | object or | ||
| 60 | .Dv NULL | ||
| 61 | if an error occurs. | ||
| 62 | .Sh SEE ALSO | ||
| 63 | .Xr BASIC_CONSTRAINTS_new 3 , | ||
| 64 | .Xr d2i_EXTENDED_KEY_USAGE 3 , | ||
| 65 | .Xr POLICYINFO_new 3 , | ||
| 66 | .Xr X509_check_purpose 3 , | ||
| 67 | .Xr X509_EXTENSION_new 3 , | ||
| 68 | .Xr X509_new 3 | ||
| 69 | .Sh STANDARDS | ||
| 70 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
| 71 | Certificate Revocation List (CRL) Profile: | ||
| 72 | .Bl -dash -compact | ||
| 73 | .It | ||
| 74 | section 4.2.1.3: Key Usage | ||
| 75 | .It | ||
| 76 | section 4.2.1.12: Extended Key Usage | ||
| 77 | .El | ||
| 78 | .Sh HISTORY | ||
| 79 | .Fn EXTENDED_KEY_USAGE_new | ||
| 80 | and | ||
| 81 | .Fn EXTENDED_KEY_USAGE_free | ||
| 82 | first appeared in OpenSSL 0.9.7 and have been available since | ||
| 83 | .Ox 3.2 . | ||
