diff options
author | schwarze <> | 2016-12-28 14:06:06 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-28 14:06:06 +0000 |
commit | 67e6d06a9ebf2b15210170404d90e40af3a4aa05 (patch) | |
tree | e1be41c310e3749c0df01a47507304055b194cc0 | |
parent | a422a45452769d10a4d4249e8e8f1d7561972dd0 (diff) | |
download | openbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.tar.gz openbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.tar.bz2 openbsd-67e6d06a9ebf2b15210170404d90e40af3a4aa05.zip |
Minor cleanup:
Improve the one-line description.
Use the standard wordings in some places.
Complete the RETURN VALUES section.
-rw-r--r-- | src/lib/libcrypto/man/X509_PUBKEY_new.3 | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/lib/libcrypto/man/X509_PUBKEY_new.3 b/src/lib/libcrypto/man/X509_PUBKEY_new.3 index 0475fe65b2..7ed3e68b2e 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.4 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: X509_PUBKEY_new.3,v 1.5 2016/12/28 14:06:06 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 25 2016 $ | 51 | .Dd $Mdocdate: December 28 2016 $ |
52 | .Dt X509_PUBKEY_NEW 3 | 52 | .Dt X509_PUBKEY_NEW 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -64,7 +64,7 @@ | |||
64 | .Nm i2d_PUBKEY_bio , | 64 | .Nm i2d_PUBKEY_bio , |
65 | .Nm X509_PUBKEY_set0_param , | 65 | .Nm X509_PUBKEY_set0_param , |
66 | .Nm X509_PUBKEY_get0_param | 66 | .Nm X509_PUBKEY_get0_param |
67 | .Nd SubjectPublicKeyInfo public key functions | 67 | .Nd X.509 SubjectPublicKeyInfo structure |
68 | .Sh SYNOPSIS | 68 | .Sh SYNOPSIS |
69 | .In openssl/x509.h | 69 | .In openssl/x509.h |
70 | .Ft X509_PUBKEY * | 70 | .Ft X509_PUBKEY * |
@@ -152,7 +152,7 @@ If | |||
152 | .Fa a | 152 | .Fa a |
153 | is a | 153 | is a |
154 | .Dv NULL | 154 | .Dv NULL |
155 | pointer, nothing is done. | 155 | pointer, no action occurs. |
156 | .Pp | 156 | .Pp |
157 | .Fn X509_PUBKEY_set | 157 | .Fn X509_PUBKEY_set |
158 | sets the public key in | 158 | sets the public key in |
@@ -183,19 +183,14 @@ decode and encode an | |||
183 | structure using | 183 | structure using |
184 | .Vt SubjectPublicKeyInfo | 184 | .Vt SubjectPublicKeyInfo |
185 | format. | 185 | format. |
186 | They otherwise follow the conventions of other ASN.1 functions such as | 186 | For details about the semantics, examples, caveats, and bugs, see |
187 | .Xr d2i_X509 3 . | 187 | .Xr ASN1_item_d2i 3 . |
188 | .Pp | ||
189 | .Fn d2i_PUBKEY_bio , | 188 | .Fn d2i_PUBKEY_bio , |
190 | .Fn d2i_PUBKEY_fp , | 189 | .Fn d2i_PUBKEY_fp , |
191 | .Fn i2d_PUBKEY_bio | 190 | .Fn i2d_PUBKEY_bio |
192 | and | 191 | and |
193 | .Fn i2d_PUBKEY_fp | 192 | .Fn i2d_PUBKEY_fp |
194 | are similar to | 193 | are similar except they decode or encode using a |
195 | .Fn d2i_PUBKEY | ||
196 | and | ||
197 | .Fn i2d_PUBKEY | ||
198 | except they decode or encode using a | ||
199 | .Vt BIO | 194 | .Vt BIO |
200 | or | 195 | or |
201 | .Vt FILE | 196 | .Vt FILE |
@@ -243,22 +238,29 @@ returns | |||
243 | .Dv NULL | 238 | .Dv NULL |
244 | and sets an error code that can be obtained by | 239 | and sets an error code that can be obtained by |
245 | .Xr ERR_get_error 3 . | 240 | .Xr ERR_get_error 3 . |
246 | .Pp | ||
247 | Otherwise it returns a pointer to the newly allocated structure. | 241 | Otherwise it returns a pointer to the newly allocated structure. |
248 | .Pp | 242 | .Pp |
249 | .Fn X509_PUBKEY_get0 | 243 | .Fn X509_PUBKEY_get , |
244 | .Fn d2i_PUBKEY , | ||
245 | .Fn d2i_PUBKEY_bio , | ||
250 | and | 246 | and |
251 | .Fn X509_PUBKEY_get | 247 | .Fn d2i_PUBKEY_fp |
252 | return a pointer to an | 248 | return a pointer to an |
253 | .Vt EVP_PKEY | 249 | .Vt EVP_PKEY |
254 | structure or | 250 | structure or |
255 | .Dv NULL | 251 | .Dv NULL |
256 | if an error occurs. | 252 | if an error occurs. |
257 | .Pp | 253 | .Pp |
254 | .Fn i2d_PUBKEY | ||
255 | returns the number of bytes successfully encoded or a negative value | ||
256 | if an error occurs. | ||
257 | .Pp | ||
258 | .Fn X509_PUBKEY_set , | 258 | .Fn X509_PUBKEY_set , |
259 | .Fn X509_PUBKEY_set0_param | 259 | .Fn X509_PUBKEY_set0_param , |
260 | .Fn X509_PUBKEY_get0_param , | ||
261 | .Fn i2d_PUBKEY_fp , | ||
260 | and | 262 | and |
261 | .Fn X509_PUBKEY_get0_param | 263 | .Fn i2d_PUBKEY_bio |
262 | return 1 for success and 0 if an error occurred. | 264 | return 1 for success and 0 if an error occurred. |
263 | .Sh SEE ALSO | 265 | .Sh SEE ALSO |
264 | .Xr d2i_X509 3 , | 266 | .Xr d2i_X509 3 , |