]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
UI docs: Rephrase the UI method function return value description
authorRichard Levitte <levitte@openssl.org>
Sat, 11 Mar 2017 09:51:04 +0000 (10:51 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 11 Mar 2017 09:53:17 +0000 (10:53 +0100)
It seems the =item isn't supposed to have pure numbers, or so tells me
perldoc.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2906)

doc/man3/UI_create_method.pod

index c1d3088296144f45dd6f970687fd7723bb5ec2d1..1c40153a3fb90dc881d5d718bfd080a70207b751 100644 (file)
@@ -85,28 +85,13 @@ by closing the channel to the tty, maybe by destroying a dialog box.
 
 =back
 
-All of these functions are expected to return one of these values:
-
-=over 4
-
-=item 0
-
-on error.
-
-=item 1
-
-on success.
-
-=item -1
-
-on out-off-band events, for example if some prompting has been
-cancelled (by pressing Ctrl-C, for example).
-This is only expected to be returned by the flusher or the reader.
+All of these functions are expected to return 0 on error, 1 on
+success, or -1 on out-off-band events, for example if some prompting
+has been cancelled (by pressing Ctrl-C, for example).
+Only the flusher or the reader are expected to return -1.
 If returned by another of the functions, it's treated as if 0 was
 returned.
 
-=back
-
 Regarding the writer and the reader, don't assume the former should
 only write and don't assume the latter should only read.
 This depends on the needs of the method.