Skip to content

Commit

Permalink
Fix typo 'is an error occurred' in documentation
Browse files Browse the repository at this point in the history
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from openssl#6231)
  • Loading branch information
mspncp committed May 11, 2018
1 parent 7b6cfcd commit 0602a14
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/crypto/BIO_s_fd.pod
Expand Up @@ -60,7 +60,7 @@ BIO_s_fd() returns the file descriptor BIO method.

BIO_reset() returns zero for success and -1 if an error occurred.
BIO_seek() and BIO_tell() return the current file position or -1
is an error occurred. These values reflect the underlying lseek()
if an error occurred. These values reflect the underlying lseek()
behaviour.

BIO_set_fd() always returns 1.
Expand Down
2 changes: 1 addition & 1 deletion doc/crypto/CMS_get0_SignerInfos.pod
Expand Up @@ -51,7 +51,7 @@ CMS_SignerInfo_set1_signer_cert().

Once all signer certificates have been set CMS_verify() can be used.

Although CMS_get0_SignerInfos() can return NULL is an error occur B<or> if
Although CMS_get0_SignerInfos() can return NULL if an error occurs B<or> if
there are no signers this is not a problem in practice because the only
error which can occur is if the B<cms> structure is not of type signedData
due to application error.
Expand Down
2 changes: 1 addition & 1 deletion doc/crypto/CMS_get1_ReceiptRequest.pod
Expand Up @@ -48,7 +48,7 @@ CMS_verify().
CMS_ReceiptRequest_create0() returns a signed receipt request structure or
NULL if an error occurred.

CMS_add1_ReceiptRequest() returns 1 for success or 0 is an error occurred.
CMS_add1_ReceiptRequest() returns 1 for success or 0 if an error occurred.

CMS_get1_ReceiptRequest() returns 1 is a signed receipt request is found and
decoded. It returns 0 if a signed receipt request is not present and -1 if
Expand Down
2 changes: 1 addition & 1 deletion doc/crypto/OBJ_nid2obj.pod
Expand Up @@ -42,7 +42,7 @@ constants.

OBJ_nid2obj(), OBJ_nid2ln() and OBJ_nid2sn() convert the NID B<n> to
an ASN1_OBJECT structure, its long name and its short name respectively,
or B<NULL> is an error occurred.
or B<NULL> if an error occurred.

OBJ_obj2nid(), OBJ_ln2nid(), OBJ_sn2nid() return the corresponding NID
for the object B<o>, the long name <ln> or the short name <sn> respectively
Expand Down
2 changes: 1 addition & 1 deletion doc/crypto/SMIME_read_PKCS7.pod
Expand Up @@ -57,7 +57,7 @@ streaming single pass option should be available.
=head1 RETURN VALUES

SMIME_read_PKCS7() returns a valid B<PKCS7> structure or B<NULL>
is an error occurred. The error can be obtained from ERR_get_error(3).
if an error occurred. The error can be obtained from ERR_get_error(3).

=head1 SEE ALSO

Expand Down

0 comments on commit 0602a14

Please sign in to comment.