summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-05-23 12:41:14 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-05-23 12:41:14 +0000
commitd45fba381314babc5859ea1afd6442a9001798cc (patch)
tree4c0bd718fa31ae238a0c3cc4dd1635d381d18e75 /lib
parent0971682bc607c3e69faf663bf3b21bf27a56d858 (diff)
- typos
- whitespace at EOL - new sentence, new line
Diffstat (limited to 'lib')
-rw-r--r--lib/libdes/des_crypt.346
-rw-r--r--lib/libedit/editline.38
-rw-r--r--lib/libevent/event.332
3 files changed, 43 insertions, 43 deletions
diff --git a/lib/libdes/des_crypt.3 b/lib/libdes/des_crypt.3
index 9715b739c7c..2bd7a6e6719 100644
--- a/lib/libdes/des_crypt.3
+++ b/lib/libdes/des_crypt.3
@@ -4,21 +4,21 @@
.\" This package is an SSL implementation written
.\" by Eric Young (eay@cryptsoft.com).
.\" The implementation was written so as to conform with Netscapes SSL.
-.\"
+.\"
.\" This library is free for commercial and non-commercial use as long as
.\" the following conditions are aheared to. The following conditions
.\" apply to all code found in this distribution, be it the RC4, RSA,
.\" lhash, DES, etc., code; not just the SSL code. The SSL documentation
.\" included with this distribution is covered by the same copyright terms
.\" except that the holder is Tim Hudson (tjh@cryptsoft.com).
-.\"
+.\"
.\" Copyright remains Eric Young's, and as such any Copyright notices in
.\" the code are not to be removed.
.\" If this package is used in a product, Eric Young should be given attribution
.\" as the author of the parts of the library used.
.\" This can be in the form of a textual message at program startup or
.\" in documentation (online or textual) provided with the package.
-.\"
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -33,12 +33,12 @@
.\" Eric Young (eay@cryptsoft.com)"
.\" The word 'cryptographic' can be left out if the rouines from the library
.\" being used are not cryptographic related :-).
-.\" 4. If you include any Windows specific code (or a derivative thereof) from
+.\" 4. If you include any Windows specific code (or a derivative thereof) from
.\" the apps directory (application code) you must include an
.\" acknowledgement:
.\" "This product includes software written by Tim Hudson
.\" (tjh@cryptsoft.com)"
-.\"
+.\"
.\" THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -50,13 +50,13 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.\"
+.\"
.\" The licence and distribution terms for any publically available version or
.\" derivative of this code cannot be changed. i.e. this code cannot simply be
.\" copied and put under another distribution licence
.\" [including the GNU Public Licence.]
-.\"
-.TH DES_CRYPT 3
+.\"
+.TH DES_CRYPT 3
.SH NAME
des_read_password, des_read_2password,
des_string_to_key, des_string_to_2key, des_read_pw_string,
@@ -263,7 +263,7 @@ converts a string into a valid des key.
.PP
.I des_string_to_2key
converts a string into 2 valid des keys.
-This routine is best suited for used to generate keys for use with
+This routine is best suited for use to generate keys for use with
.I des_3ecb_encrypt.
.PP
.I des_random_key
@@ -279,7 +279,7 @@ If the
.I des_check_key
flag is non-zero,
.I des_set_key
-will check that the key passed is of odd parity and is not a week or
+will check that the key passed is of odd parity and is not a weak or
semi-weak key.
If the parity is wrong,
then -1 is returned.
@@ -336,7 +336,7 @@ No meaningful value is returned.
encrypts/decrypts the
.I input
block by using triple ecb DES encryption.
-This involves encrypting the input with
+This involves encrypting the input with
.I ks1,
decryption with the key schedule
.I ks2,
@@ -370,12 +370,12 @@ and initialisation vector provided by the
argument.
If the
.I length
-argument is not an integral multiple of eight bytes,
+argument is not an integral multiple of eight bytes,
the last block is copied to a temporary area and zero filled.
The output is always
an integral multiple of eight bytes.
To make multiple cbc encrypt calls on a large amount of data appear to
-be one
+be one
.I des_cbc_encrypt
call, the
.I ivec
@@ -413,7 +413,7 @@ encryption.
.PP
.I des_cfb_encrypt
encrypt/decrypts using cipher feedback mode. This method takes an
-array of characters as input and outputs and array of characters. It
+array of characters as input and outputs an array of characters. It
does not require any padding to 8 character groups. Note: the ivec
variable is changed and the new changed value needs to be passed to
the next call to this function. Since this function runs a complete
@@ -421,8 +421,8 @@ DES ecb encryption per numbits, this function is only suggested for
use when sending small numbers of characters.
.PP
.I des_ofb_encrypt
-encrypt using output feedback mode. This method takes an
-array of characters as input and outputs and array of characters. It
+encrypts using output feedback mode. This method takes an
+array of characters as input and outputs an array of characters. It
does not require any padding to 8 character groups. Note: the ivec
variable is changed and the new changed value needs to be passed to
the next call to this function. Since this function runs a complete
@@ -462,7 +462,7 @@ The data is encrypted via
for the key and
.I iv
as a starting vector.
-The actual data send down
+The actual data sent down
.I fd
consists of 4 bytes (in network byte order) containing the length of the
following encrypted data. The encrypted data then follows, padded with random
@@ -492,9 +492,9 @@ I have used them in implementing a version of rlogin in which all
data is encrypted.
.PP
.I des_rw_mode
-is used to specify the encryption mode to use with
+is used to specify the encryption mode to use with
.I des_enc_read
-and
+and
.I des_end_write.
If set to
.I DES_PCBC_MODE
@@ -510,7 +510,7 @@ sets the parity of the passed
to odd. This routine is not part of the standard MIT library.
.PP
.I des_is_weak_key
-returns 1 is the passed key is a weak key (pick again :-),
+returns 1 if the passed key is a weak key (pick again :-),
0 if it is ok.
This routine is not part of the standard MIT library.
.PP
@@ -541,7 +541,7 @@ input byte and the low half of the second input byte. The second 12
bits will have the low 8 bits taken from the 3rd input byte and the
top 4 bits taken from the 4th input byte. The same holds for output.
This function has been implemented this way because most people will
-be using a multiple of 8 and because once you get into pulling bytes input
+be using a multiple of 8 and because once you get into pulling input
bytes apart things get ugly!
.PP
.I des_read_pw_string
@@ -559,8 +559,8 @@ NOTE: extensive work has been done on this library since this document
was originally written. Please try to read des.doc from the libdes
distribution since it is far more up to date and documents more of the
functions. Libdes is now also being shipped as part of SSLeay, a
-general cryptographic library that amonst other things implements
-netscapes SSL protocol. The most recent version can be found in
+general cryptographic library that amongst other things implements
+Netscape's SSL protocol. The most recent version can be found in
SSLeay distributions.
.SH AUTHOR
Eric Young (eay@mincom.oz.au or eay@psych.psy.uq.oz.au)
diff --git a/lib/libedit/editline.3 b/lib/libedit/editline.3
index 682f6eb2cac..9300a1341fa 100644
--- a/lib/libedit/editline.3
+++ b/lib/libedit/editline.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: editline.3,v 1.10 2000/04/15 02:15:27 aaron Exp $
+.\" $OpenBSD: editline.3,v 1.11 2003/05/23 12:41:13 jmc Exp $
.\" $NetBSD: editline.3,v 1.4 1997/01/14 04:17:23 lukem Exp $
.\"
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -189,7 +189,7 @@ Refer to
.Xr editrc 5
for more information.
.Pp
-.Em NOTE:
+.Em NOTE :
.Va argv[0]
may be modified by
.Fn el_parse .
@@ -308,7 +308,7 @@ for more information.
.It Dv EL_ADDFN , Xo
.Fa "const char *name" ,
.Fa "const char *help" ,
-.Fa "unsigned char (*func)(EditLine *e, int ch)
+.Fa "unsigned char (*func)(EditLine *e, int ch)"
.Xc
Add a user defined function,
.Fn func ,
@@ -530,4 +530,4 @@ should not modify the supplied
.Va argv[0] .
.Pp
The tokenization functions are not publically defined in
-.Fd <histedit.h>
+.Aq Pa histedit.h .
diff --git a/lib/libevent/event.3 b/lib/libevent/event.3
index fbd889efe7f..75bb5e9be96 100644
--- a/lib/libevent/event.3
+++ b/lib/libevent/event.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: event.3,v 1.6 2002/11/10 03:21:48 fgsch Exp $
+.\" $OpenBSD: event.3,v 1.7 2003/05/23 12:41:13 jmc Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -40,12 +40,12 @@
.Nm event_initialized ,
.Nm evtimer_set ,
.Nm evtimer_add ,
-.Nm evtimer_del
+.Nm evtimer_del ,
.Nm evtimer_pending ,
.Nm evtimer_initialized ,
.Nm signal_set ,
.Nm signal_add ,
-.Nm signal_del
+.Nm signal_del ,
.Nm signal_pending ,
.Nm signal_initialized
.Nd execute a function when a specific event occurs
@@ -121,24 +121,26 @@ sets
to indicate that a signal has been received.
The application sets
.Va event_sigcb
-to a callback function. After the signal handler sets
+to a callback function.
+After the signal handler sets
.Va event_gotsig ,
.Nm event_dispatch
-will execute the callback function to process received signals. The
-callback returns 1 when no events are registered any more. It can
-return -1 to indicate an error to the
+will execute the callback function to process received signals.
+The callback returns 1 when no events are registered any more.
+It can return -1 to indicate an error to the
.Nm event
library, causing
.Fn event_dispatch
to terminate with
.Va errno
set to
-.Er EINTR.
+.Er EINTR .
.Pp
The
.Nm event_loop
function provides an interface for single pass execution of pending
-events. The flags
+events.
+The flags
.Va EVLOOP_ONCE
and
.Va EVLOOP_NONBLOCK
@@ -166,14 +168,14 @@ argument indicating the type of event, and a
argument given in the
.Fa arg
argument.
-The
+The
.Fa fd
indicates the file descriptor that should be monitored for events.
The events can be either
.Va EV_READ ,
.Va EV_WRITE ,
-or both.
-Indicating that an application can read or write from the file descriptor
+or both,
+indicating that an application can read or write from the file descriptor
respectively without blocking.
.Pp
The function
@@ -206,7 +208,7 @@ The function
.Fn event_add
schedules the execution of the
.Fa ev
-event when the event specified in
+event when the event specified in
.Fn event_set
occurs or in at least the time specified in the
.Fa tv .
@@ -241,7 +243,7 @@ function can be used to check if the event specified by
is pending to run.
If
.Va EV_TIMEOUT
-was specified and
+was specified and
.Fa tv
is not
.Va NULL ,
@@ -263,7 +265,6 @@ are abbreviations for common situations where only a timeout is required.
The file descriptor passed will be 0, and the event type will be
.Va EV_TIMEOUT .
.Pp
-.Pp
The functions
.Fn signal_set ,
.Fn signal_add ,
@@ -283,7 +284,6 @@ It is possible to disable support for
.Va kqueue
by setting the environment variable
.Va EVENT_NOKQUEUE .
-.Pp
.Sh RETURN VALUES
Upon successful completion
.Fn event_add