dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / lib / libcrypto / man / PKEY_USAGE_PERIOD_new.3
blob888859b1e6a03d1d325c91c028b90c85da2fa867
1 .\"     $OpenBSD: PKEY_USAGE_PERIOD_new.3,v 1.3 2016/12/25 22:15:10 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 25 2016 $
18 .Dt PKEY_USAGE_PERIOD_NEW 3
19 .Os
20 .Sh NAME
21 .Nm PKEY_USAGE_PERIOD_new ,
22 .Nm PKEY_USAGE_PERIOD_free
23 .Nd X.509 certificate private key usage period extension
24 .Sh SYNOPSIS
25 .In openssl/x509v3.h
26 .Ft PKEY_USAGE_PERIOD *
27 .Fn PKEY_USAGE_PERIOD_new void
28 .Ft void
29 .Fn PKEY_USAGE_PERIOD_free "PKEY_USAGE_PERIOD *period"
30 .Sh DESCRIPTION
31 .Fn PKEY_USAGE_PERIOD_new
32 allocates and initializes an empty
33 .Vt PKEY_USAGE_PERIOD
34 object, representing an ASN.1
35 .Vt PrivateKeyUsagePeriod
36 structure defined in RFC 3280 section 4.2.1.4.
37 It could be used in
38 .Vt X509
39 certificates to specify a validity period for the private key
40 that differed from the validity period of the certificate.
41 .Pp
42 .Fn PKEY_USAGE_PERIOD_free
43 frees
44 .Fa period .
45 .Sh RETURN VALUES
46 .Fn PKEY_USAGE_PERIOD_new
47 returns the new
48 .Vt PKEY_USAGE_PERIOD
49 object or
50 .Dv NULL
51 if an error occurs.
52 .Sh SEE ALSO
53 .Xr EXTENDED_KEY_USAGE_new 3 ,
54 .Xr X509_CINF_new 3 ,
55 .Xr X509_EXTENSION_new 3 ,
56 .Xr X509_new 3
57 .Sh STANDARDS
58 RFC 3280: Internet X.509 Public Key Infrastructure Certificate and
59 Certificate Revocation List (CRL) Profile,
60 section 4.2.1.4: Private Key Usage Period
61 .Pp
62 RFC 3280 was obsoleted by RFC 5280, which says: "Section 4.2.1.4
63 in RFC 3280, which specified the
64 .Vt PrivateKeyUsagePeriod
65 certificate extension but deprecated its use, was removed.
66 Use of this ISO standard extension is neither deprecated
67 nor recommended for use in the Internet PKI."