diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-10-21 22:36:17 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-10-21 22:36:17 +0000 |
commit | be518e4e1859e7cd97d5d48daa5d3febffa67354 (patch) | |
tree | 4ccdeb5965876fc8ebf409ef5a34d9ba98421b5f | |
parent | 8fb3dcb323cfe50787239777e9846ca88a95997d (diff) |
Simplify the description of RETURN VALUES.
After tb@'s commit x509/x509_lu.c rev. 1.33, it is no longer necessary
to talk about X509_LU_* constants as return values from these functions.
Feedback and OK from tb@.
-rw-r--r-- | lib/libcrypto/man/X509_LOOKUP_new.3 | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/libcrypto/man/X509_LOOKUP_new.3 b/lib/libcrypto/man/X509_LOOKUP_new.3 index 02420d664b5..5a0c3b4a194 100644 --- a/lib/libcrypto/man/X509_LOOKUP_new.3 +++ b/lib/libcrypto/man/X509_LOOKUP_new.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509_LOOKUP_new.3,v 1.4 2021/08/06 19:09:56 schwarze Exp $ +.\" $OpenBSD: X509_LOOKUP_new.3,v 1.5 2021/10/21 22:36:16 schwarze Exp $ .\" .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 6 2021 $ +.Dd $Mdocdate: October 21 2021 $ .Dt X509_LOOKUP_NEW 3 .Os .Sh NAME @@ -370,11 +370,7 @@ uses a user-defined object, it might also return \-1 for internal errors. .Pp .Fn X509_LOOKUP_by_subject -returns -.Dv X509_LU_X509 -for success or -.Dv X509_LU_FAIL -for failure. +returns 1 for success or 0 for failure. In particular, it fails if .Fa lookup uses @@ -410,9 +406,7 @@ objects, they always return 1. .Fn X509_LOOKUP_by_fingerprint , and .Fn X509_LOOKUP_by_alias -always return -.Dv X509_LU_FAIL -when using the built-in +always return 0 when using the built-in .Vt X509_LOOKUP_METHOD objects. .Pp |