summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiod <>2014-07-10 13:18:56 +0000
committermiod <>2014-07-10 13:18:56 +0000
commit281172858344f625c73e08f7af61073307e2d0b0 (patch)
tree1ca32c72b2853b6f92e7024a6eae9be2178ff2b9 /src
parent324d92fa7f658d01382ff72c596358f190772369 (diff)
downloadopenbsd-281172858344f625c73e08f7af61073307e2d0b0.tar.gz
openbsd-281172858344f625c73e08f7af61073307e2d0b0.tar.bz2
openbsd-281172858344f625c73e08f7af61073307e2d0b0.zip
Features introduce in OpenSSL 0.9.8 do not deserve their own section.
Instead, fold their description in the main documentation, and update the history section to mention them as well.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/doc/PKCS12_create.pod40
-rw-r--r--src/lib/libssl/src/doc/crypto/PKCS12_create.pod40
2 files changed, 38 insertions, 42 deletions
diff --git a/src/lib/libcrypto/doc/PKCS12_create.pod b/src/lib/libcrypto/doc/PKCS12_create.pod
index 382193ec95..12fbd20b8a 100644
--- a/src/lib/libcrypto/doc/PKCS12_create.pod
+++ b/src/lib/libcrypto/doc/PKCS12_create.pod
@@ -8,8 +8,9 @@ PKCS12_create - create a PKCS#12 structure
8 8
9 #include <openssl/pkcs12.h> 9 #include <openssl/pkcs12.h>
10 10
11 PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert, STACK_OF(X509) *ca, 11 PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey,
12 int nid_key, int nid_cert, int iter, int mac_iter, int keytype); 12 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
13 int iter, int mac_iter, int keytype);
13 14
14=head1 DESCRIPTION 15=head1 DESCRIPTION
15 16
@@ -17,12 +18,19 @@ PKCS12_create() creates a PKCS#12 structure.
17 18
18B<pass> is the passphrase to use. B<name> is the B<friendlyName> to use for 19B<pass> is the passphrase to use. B<name> is the B<friendlyName> to use for
19the supplied certifictate and key. B<pkey> is the private key to include in 20the supplied certifictate and key. B<pkey> is the private key to include in
20the structure and B<cert> its corresponding certificates. B<ca>, if not B<NULL> 21the structure and B<cert> its corresponding certificates. B<ca> is an optional
21is an optional set of certificates to also include in the structure. 22set of certificates to also include in the structure.
23Either B<pkey>, B<cert> or both can be B<NULL> to indicate that no key or
24certficate is required.
22 25
23B<nid_key> and B<nid_cert> are the encryption algorithms that should be used 26B<nid_key> and B<nid_cert> are the encryption algorithms that should be used
24for the key and certificate respectively. B<iter> is the encryption algorithm 27for the key and certificate respectively. If either B<nid_key> or B<nid_cert>
25iteration count to use and B<mac_iter> is the MAC iteration count to use. 28is set to -1, no encryption will be used.
29
30B<iter> is the encryption algorithm iteration count to use and B<mac_iter> is
31the MAC iteration count to use. If B<mac_iter> is set to -1, the MAC will be
32omitted entirely.
33
26B<keytype> is the type of key. 34B<keytype> is the type of key.
27 35
28=head1 NOTES 36=head1 NOTES
@@ -46,30 +54,20 @@ for old export grade software which could use signing only keys of arbitrary
46size but had restrictions on the permissible sizes of keys which could be used 54size but had restrictions on the permissible sizes of keys which could be used
47for encryption. 55for encryption.
48 56
49=head1 NEW FUNCTIONALITY IN OPENSSL 0.9.8
50
51Some additional functionality was added to PKCS12_create() in OpenSSL
520.9.8. These extensions are detailed below.
53
54If a certificate contains an B<alias> or B<keyid> then this will be 57If a certificate contains an B<alias> or B<keyid> then this will be
55used for the corresponding B<friendlyName> or B<localKeyID> in the 58used for the corresponding B<friendlyName> or B<localKeyID> in the
56PKCS12 structure. 59PKCS12 structure.
57 60
58Either B<pkey>, B<cert> or both can be B<NULL> to indicate that no key or
59certficate is required. In previous versions both had to be present or
60a fatal error is returned.
61
62B<nid_key> or B<nid_cert> can be set to -1 indicating that no encryption
63should be used.
64
65B<mac_iter> can be set to -1 and the MAC will then be omitted entirely.
66
67=head1 SEE ALSO 61=head1 SEE ALSO
68 62
69L<d2i_PKCS12(3)|d2i_PKCS12(3)> 63L<d2i_PKCS12(3)|d2i_PKCS12(3)>
70 64
71=head1 HISTORY 65=head1 HISTORY
72 66
73PKCS12_create was added in OpenSSL 0.9.3 67PKCS12_create was added in OpenSSL 0.9.3.
68
69Before OpenSSL 0.9.8, neither B<pkey> nor B<cert> were allowed to be B<NULL>,
70and a value of B<-1> was not allowed for B<nid_key>, B<nid_cert> and
71B<mac_iter>.
74 72
75=cut 73=cut
diff --git a/src/lib/libssl/src/doc/crypto/PKCS12_create.pod b/src/lib/libssl/src/doc/crypto/PKCS12_create.pod
index 382193ec95..12fbd20b8a 100644
--- a/src/lib/libssl/src/doc/crypto/PKCS12_create.pod
+++ b/src/lib/libssl/src/doc/crypto/PKCS12_create.pod
@@ -8,8 +8,9 @@ PKCS12_create - create a PKCS#12 structure
8 8
9 #include <openssl/pkcs12.h> 9 #include <openssl/pkcs12.h>
10 10
11 PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey, X509 *cert, STACK_OF(X509) *ca, 11 PKCS12 *PKCS12_create(char *pass, char *name, EVP_PKEY *pkey,
12 int nid_key, int nid_cert, int iter, int mac_iter, int keytype); 12 X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,
13 int iter, int mac_iter, int keytype);
13 14
14=head1 DESCRIPTION 15=head1 DESCRIPTION
15 16
@@ -17,12 +18,19 @@ PKCS12_create() creates a PKCS#12 structure.
17 18
18B<pass> is the passphrase to use. B<name> is the B<friendlyName> to use for 19B<pass> is the passphrase to use. B<name> is the B<friendlyName> to use for
19the supplied certifictate and key. B<pkey> is the private key to include in 20the supplied certifictate and key. B<pkey> is the private key to include in
20the structure and B<cert> its corresponding certificates. B<ca>, if not B<NULL> 21the structure and B<cert> its corresponding certificates. B<ca> is an optional
21is an optional set of certificates to also include in the structure. 22set of certificates to also include in the structure.
23Either B<pkey>, B<cert> or both can be B<NULL> to indicate that no key or
24certficate is required.
22 25
23B<nid_key> and B<nid_cert> are the encryption algorithms that should be used 26B<nid_key> and B<nid_cert> are the encryption algorithms that should be used
24for the key and certificate respectively. B<iter> is the encryption algorithm 27for the key and certificate respectively. If either B<nid_key> or B<nid_cert>
25iteration count to use and B<mac_iter> is the MAC iteration count to use. 28is set to -1, no encryption will be used.
29
30B<iter> is the encryption algorithm iteration count to use and B<mac_iter> is
31the MAC iteration count to use. If B<mac_iter> is set to -1, the MAC will be
32omitted entirely.
33
26B<keytype> is the type of key. 34B<keytype> is the type of key.
27 35
28=head1 NOTES 36=head1 NOTES
@@ -46,30 +54,20 @@ for old export grade software which could use signing only keys of arbitrary
46size but had restrictions on the permissible sizes of keys which could be used 54size but had restrictions on the permissible sizes of keys which could be used
47for encryption. 55for encryption.
48 56
49=head1 NEW FUNCTIONALITY IN OPENSSL 0.9.8
50
51Some additional functionality was added to PKCS12_create() in OpenSSL
520.9.8. These extensions are detailed below.
53
54If a certificate contains an B<alias> or B<keyid> then this will be 57If a certificate contains an B<alias> or B<keyid> then this will be
55used for the corresponding B<friendlyName> or B<localKeyID> in the 58used for the corresponding B<friendlyName> or B<localKeyID> in the
56PKCS12 structure. 59PKCS12 structure.
57 60
58Either B<pkey>, B<cert> or both can be B<NULL> to indicate that no key or
59certficate is required. In previous versions both had to be present or
60a fatal error is returned.
61
62B<nid_key> or B<nid_cert> can be set to -1 indicating that no encryption
63should be used.
64
65B<mac_iter> can be set to -1 and the MAC will then be omitted entirely.
66
67=head1 SEE ALSO 61=head1 SEE ALSO
68 62
69L<d2i_PKCS12(3)|d2i_PKCS12(3)> 63L<d2i_PKCS12(3)|d2i_PKCS12(3)>
70 64
71=head1 HISTORY 65=head1 HISTORY
72 66
73PKCS12_create was added in OpenSSL 0.9.3 67PKCS12_create was added in OpenSSL 0.9.3.
68
69Before OpenSSL 0.9.8, neither B<pkey> nor B<cert> were allowed to be B<NULL>,
70and a value of B<-1> was not allowed for B<nid_key>, B<nid_cert> and
71B<mac_iter>.
74 72
75=cut 73=cut