summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/X509_new.pod
diff options
context:
space:
mode:
authormmcc <>2016-03-12 21:31:22 +0000
committermmcc <>2016-03-12 21:31:22 +0000
commitd7e23979f786be3c146be16ec4363c6da83c906e (patch)
tree41d48a54c09f49f4e37617cd4f79d217bf4250a8 /src/lib/libcrypto/doc/X509_new.pod
parent7dcc5e245914ca63e2d707bd58bb281cadf8e648 (diff)
downloadopenbsd-d7e23979f786be3c146be16ec4363c6da83c906e.tar.gz
openbsd-d7e23979f786be3c146be16ec4363c6da83c906e.tar.bz2
openbsd-d7e23979f786be3c146be16ec4363c6da83c906e.zip
Remove sentences in RETURN VALUES sections saying that functions with
void return types 'return no value'. This is obvious and therefore unneccessary to mention. We spare rewind(3)'s sentence because espie@ pointed out that it's a warning - the function masks a potential error. This commit also adds a sentence to X509_free clarifying that it's NULL-safe. This bit was discussed with doug@. ok martijn@, sentiment supported by schwarze@
Diffstat (limited to 'src/lib/libcrypto/doc/X509_new.pod')
-rw-r--r--src/lib/libcrypto/doc/X509_new.pod3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/doc/X509_new.pod b/src/lib/libcrypto/doc/X509_new.pod
index d38872335f..a36808b825 100644
--- a/src/lib/libcrypto/doc/X509_new.pod
+++ b/src/lib/libcrypto/doc/X509_new.pod
@@ -19,6 +19,7 @@ X509 structure, which represents an X509 certificate.
19X509_new() allocates and initializes a X509 structure. 19X509_new() allocates and initializes a X509 structure.
20 20
21X509_free() frees up the B<X509> structure B<a>. 21X509_free() frees up the B<X509> structure B<a>.
22If B<a> is a B<NULL> pointer, no action occurs.
22 23
23=head1 RETURN VALUES 24=head1 RETURN VALUES
24 25
@@ -26,8 +27,6 @@ If the allocation fails, X509_new() returns B<NULL> and sets an error
26code that can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>. 27code that can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>.
27Otherwise it returns a pointer to the newly allocated structure. 28Otherwise it returns a pointer to the newly allocated structure.
28 29
29X509_free() returns no value.
30
31=head1 SEE ALSO 30=head1 SEE ALSO
32 31
33L<ERR_get_error(3)|ERR_get_error(3)>, L<d2i_X509(3)|d2i_X509(3)> 32L<ERR_get_error(3)|ERR_get_error(3)>, L<d2i_X509(3)|d2i_X509(3)>