diff options
| author | schwarze <> | 2020-06-12 11:37:42 +0000 |
|---|---|---|
| committer | schwarze <> | 2020-06-12 11:37:42 +0000 |
| commit | 659d778f00f90e06b07821591363c486d6af6bde (patch) | |
| tree | 4a14a7bce99ded95ff18678d951d99cd5a455738 /src/lib/libcrypto/man/PEM_bytes_read_bio.3 | |
| parent | 88523fe76e081519a3baf586cb9bb30d0d965bd6 (diff) | |
| download | openbsd-659d778f00f90e06b07821591363c486d6af6bde.tar.gz openbsd-659d778f00f90e06b07821591363c486d6af6bde.tar.bz2 openbsd-659d778f00f90e06b07821591363c486d6af6bde.zip | |
document PEM_ASN1_read(3) and PEM_ASN1_read_bio(3);
tweaks and OK tb@
Diffstat (limited to 'src/lib/libcrypto/man/PEM_bytes_read_bio.3')
| -rw-r--r-- | src/lib/libcrypto/man/PEM_bytes_read_bio.3 | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/src/lib/libcrypto/man/PEM_bytes_read_bio.3 b/src/lib/libcrypto/man/PEM_bytes_read_bio.3 index b3cb143cf6..63b8a58d90 100644 --- a/src/lib/libcrypto/man/PEM_bytes_read_bio.3 +++ b/src/lib/libcrypto/man/PEM_bytes_read_bio.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: PEM_bytes_read_bio.3,v 1.2 2018/03/22 21:08:22 schwarze Exp $ | 1 | .\" $OpenBSD: PEM_bytes_read_bio.3,v 1.3 2020/06/12 11:37:42 schwarze Exp $ |
| 2 | .\" OpenSSL PEM_bytes_read_bio.pod 7671342e Feb 29 15:47:12 2016 -0600 | 2 | .\" OpenSSL PEM_bytes_read_bio.pod 7671342e Feb 29 15:47:12 2016 -0600 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Benjamin Kaduk <bkaduk at akamai dot com>. | 4 | .\" This file was written by Benjamin Kaduk <bkaduk at akamai dot com>. |
| @@ -48,7 +48,7 @@ | |||
| 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 50 | .\" | 50 | .\" |
| 51 | .Dd $Mdocdate: March 22 2018 $ | 51 | .Dd $Mdocdate: June 12 2020 $ |
| 52 | .Dt PEM_BYTES_READ_BIO 3 | 52 | .Dt PEM_BYTES_READ_BIO 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -86,6 +86,8 @@ The password callback | |||
| 86 | and rock | 86 | and rock |
| 87 | .Fa u | 87 | .Fa u |
| 88 | are used to obtain the decryption passphrase, if applicable. | 88 | are used to obtain the decryption passphrase, if applicable. |
| 89 | For more details, see | ||
| 90 | .Xr pem_password_cb 3 . | ||
| 89 | .Pp | 91 | .Pp |
| 90 | Some data types have compatibility aliases, such as a file containing | 92 | Some data types have compatibility aliases, such as a file containing |
| 91 | X509 CERTIFICATE matching a request for the deprecated type CERTIFICATE. | 93 | X509 CERTIFICATE matching a request for the deprecated type CERTIFICATE. |
| @@ -107,7 +109,53 @@ The caller must free the storage pointed to by | |||
| 107 | .Sh RETURN VALUES | 109 | .Sh RETURN VALUES |
| 108 | .Fn PEM_bytes_read_bio | 110 | .Fn PEM_bytes_read_bio |
| 109 | returns 1 for success or 0 for failure. | 111 | returns 1 for success or 0 for failure. |
| 112 | .Sh ERRORS | ||
| 113 | Diagnostics that can be retrieved with | ||
| 114 | .Xr ERR_get_error 3 , | ||
| 115 | .Xr ERR_GET_REASON 3 , | ||
| 116 | and | ||
| 117 | .Xr ERR_reason_error_string 3 | ||
| 118 | include: | ||
| 119 | .Bl -tag -width Ds | ||
| 120 | .It Dv PEM_R_NO_START_LINE Qq no start line | ||
| 121 | No more PEM objects were found in the input. | ||
| 122 | This can happen when the input contains no PEM objects at all, | ||
| 123 | or only objects that do not match the type | ||
| 124 | .Fa name . | ||
| 125 | .It Dv PEM_R_NOT_PROC_TYPE Qq not proc type | ||
| 126 | The first PEM header does not start with | ||
| 127 | .Qq "Proc-Type: " . | ||
| 128 | .It Dv PEM_R_NOT_ENCRYPTED Qq not encrypted | ||
| 129 | The Proc-Type header differs from | ||
| 130 | .Qq 4,ENCRYPTED . | ||
| 131 | .It Dv PEM_R_SHORT_HEADER Qq short header | ||
| 132 | The Proc-Type header is the last header line. | ||
| 133 | .It Dv PEM_R_NOT_DEK_INFO Qq not dek info | ||
| 134 | The second PEM header does not start with | ||
| 135 | .Qq "DEK-Info: " . | ||
| 136 | .It Dv PEM_R_UNSUPPORTED_ENCRYPTION Qq unsupported encryption | ||
| 137 | The cipher name given in the DEK-Info header is unknown to | ||
| 138 | .Xr EVP_get_cipherbyname 3 . | ||
| 139 | .It Dv PEM_R_BAD_IV_CHARS Qq "bad iv chars" | ||
| 140 | The word following the cipher name in the DEK-Info header | ||
| 141 | contains bytes that are not hexadecimal digits. | ||
| 142 | This also happens when the initialization vector is missing or too short. | ||
| 143 | .It Dv PEM_R_BAD_PASSWORD_READ Qq bad password read | ||
| 144 | .Fa cb | ||
| 145 | reported failure. | ||
| 146 | This may for example happen when the user mistypes the password. | ||
| 147 | .It Dv PEM_R_BAD_DECRYPT Qq bad decrypt | ||
| 148 | .Xr EVP_DecryptInit_ex 3 , | ||
| 149 | .Xr EVP_DecryptUpdate 3 , | ||
| 150 | or | ||
| 151 | .Xr EVP_DecryptFinal_ex 3 | ||
| 152 | failed. | ||
| 153 | .El | ||
| 154 | .Pp | ||
| 155 | Additional types of errors can result from | ||
| 156 | .Xr PEM_read_bio 3 . | ||
| 110 | .Sh SEE ALSO | 157 | .Sh SEE ALSO |
| 158 | .Xr PEM_ASN1_read 3 , | ||
| 111 | .Xr PEM_read 3 , | 159 | .Xr PEM_read 3 , |
| 112 | .Xr PEM_read_bio_PrivateKey 3 | 160 | .Xr PEM_read_bio_PrivateKey 3 |
| 113 | .Sh HISTORY | 161 | .Sh HISTORY |
